InsertTableColumnAction Class
Definition
Action for inserting a new column before or after the current cell's column in a Avalonia.Controls.Documents.Table.
public class InsertTableColumnAction
Remarks
Two static instances (Avalonia.Controls.Documents.Primitives.Actions.InsertTableColumnAction.Before and Avalonia.Controls.Documents.Primitives.Actions.InsertTableColumnAction.After) are provided. 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
| Name | Description |
|---|---|
| CanExecute | No summary available. |
| Execute | No summary available. |
| ExecuteAsync | Executes the action asynchronously. Inherited from EditorAction. |
| GetState | Gets 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
Properties
| Name | Description |
|---|---|
| DisplayName | No summary available. |
| Id | No summary available. |
| Gesture | Gets the optional keyboard gesture for this action. Inherited from EditorAction. |
DisplayName Property
public string DisplayName { get; set; }
Id Property
public string Id { get; set; }
Fields
| Name | Description |
|---|---|
| After | Singleton instance that inserts a column after the current column. |
| Before | Singleton instance that inserts a column before the current column. |
After Field
Singleton instance that inserts a column after the current column.
public Avalonia.Controls.Documents.Primitives.Actions.InsertTableColumnAction After
Before Field
Singleton instance that inserts a column before the current column.
public Avalonia.Controls.Documents.Primitives.Actions.InsertTableColumnAction Before