IBlockPropertyAction Interface
Definition
Non-generic base interface for block property actions.
public interface IBlockPropertyAction
Remarks
This interface provides object-based access to block property values, allowing UI controls to work with block actions without knowing the specific type.
Methods
| Name | Description |
|---|---|
| HasConsistentValue | Gets whether all affected blocks have the same value for this property. |
HasConsistentValue Method
Gets whether all affected blocks have the same value for this property.
public bool HasConsistentValue(Avalonia.Controls.Documents.Primitives.ITextEditorHost host)
Parameters
host Avalonia.Controls.Documents.Primitives.ITextEditorHost
The editor host.
Returns
bool
True if all affected blocks have the same property value. False if blocks have different values (mixed state).
Remarks
UI controls should show a mixed/indeterminate state when this returns false. For example, a ComboBox might show "Mixed" placeholder text.
For collapsed selections, this always returns true (single block).