InsertTableRowAction Class
Definition
Action for inserting a new row before or after the current row in a Avalonia.Controls.Documents.Table.
public class InsertTableRowAction
Remarks
Reachable as Avalonia.Controls.Documents.Primitives.Actions.EditorActions.InsertRowBefore and Avalonia.Controls.Documents.Primitives.Actions.EditorActions.InsertRowAfter.
Avalonia.Controls.Documents.Primitives.Actions.InsertTableRowAction.CanExecute(Avalonia.Controls.Documents.Primitives.ITextEditorHost) returns true only when the caret is inside a Avalonia.Controls.Documents.TableRow. The new row has the same number of cells as the reference row, each containing an empty paragraph.
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. |
| Gesture | Gets the optional keyboard gesture for this action. Inherited from EditorAction. |
| Id | No summary available. |
DisplayName Property
public string DisplayName { get; set; }
Id Property
public string Id { get; set; }
Fields
| Name | Description |
|---|---|
| After | The instance that inserts a row after the current one. |
| Before | The instance that inserts a row before the current one. |
After Field
The instance that inserts a row after the current one.
public Avalonia.Controls.Documents.Primitives.Actions.InsertTableRowAction After
Remarks
Reach it through Avalonia.Controls.Documents.Primitives.Actions.EditorActions.InsertRowAfter.
Before Field
The instance that inserts a row before the current one.
public Avalonia.Controls.Documents.Primitives.Actions.InsertTableRowAction Before
Remarks
Reach it through Avalonia.Controls.Documents.Primitives.Actions.EditorActions.InsertRowBefore.