Skip to main content

IBlockPropertyAction<T> Interface

Definition​

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

Action that operates on block-level properties (Paragraph, Section, etc.).

public interface IBlockPropertyAction<T>

Implements: IBlockPropertyAction, IEditorAction, IPropertyAction, IPropertyAction<>

Remarks​

Block-level actions differ from inline actions in several ways:

  • They operate on container elements (Block) rather than text runs (RichInline)
  • They can affect multiple blocks in a selection
  • They need to handle mixed values when multiple blocks have different property values

Common block properties include: TextAlignment, LineHeight, Margin, Padding, Background, BorderThickness, BorderBrush

On this page