Skip to main content

InsertTableColumnAction Class

Definition​

Assembly:Avalonia.Controls.RichTextEditor
Package:Avalonia.Controls.RichTextEditor

Action for inserting a new column before or after the current cell's column in a Avalonia.Controls.Documents.Table.

public class InsertTableColumnAction

Inheritance: object -> EditorAction -> InsertTableColumnAction

Remarks​

Reachable as Avalonia.Controls.Documents.Primitives.Actions.EditorActions.InsertColumnBefore and Avalonia.Controls.Documents.Primitives.Actions.EditorActions.InsertColumnAfter. Each inserts a Avalonia.Controls.Documents.TableColumn and an empty Avalonia.Controls.Documents.TableCell in every row at the corresponding index, keeping the table rectangular.

Methods​

NameDescription
CanExecuteNo summary available.
ExecuteNo summary available.
ExecuteAsyncExecutes the action asynchronously. Inherited from EditorAction.
GetStateGets the current state of the action. Inherited from EditorAction.

CanExecute Method​

public bool CanExecute(Avalonia.Controls.Documents.Primitives.ITextEditorHost host)

Parameters​

host Avalonia.Controls.Documents.Primitives.ITextEditorHost

Returns​

bool

Execute Method​

public void Execute(Avalonia.Controls.Documents.Primitives.ITextEditorHost host)

Parameters​

host Avalonia.Controls.Documents.Primitives.ITextEditorHost

Properties​

NameDescription
DisplayNameNo summary available.
GestureGets the optional keyboard gesture for this action. Inherited from EditorAction.
IdNo summary available.

DisplayName Property​

public string DisplayName { get; set; }

Id Property​

public string Id { get; set; }

Fields​

NameDescription
AfterThe instance that inserts a column after the current one.
BeforeThe instance that inserts a column before the current one.

After Field​

The instance that inserts a column after the current one.

public Avalonia.Controls.Documents.Primitives.Actions.InsertTableColumnAction After

Remarks​

Reach it through Avalonia.Controls.Documents.Primitives.Actions.EditorActions.InsertColumnAfter.

Before Field​

The instance that inserts a column before the current one.

public Avalonia.Controls.Documents.Primitives.Actions.InsertTableColumnAction Before

Remarks​

Reach it through Avalonia.Controls.Documents.Primitives.Actions.EditorActions.InsertColumnBefore.