Skip to main content

TextViewComponentBase Class

Definition​

Assembly:Avalonia.Controls.Documents
Package:Avalonia.Controls.Documents

Base class for Avalonia.Controls.Documents.Primitives.Components.ITextViewComponent implementations that are not already derived from another type (e.g., Avalonia.Controls.Control).

public class TextViewComponentBase

Inheritance: object -> TextViewComponentBase

Remarks​

Provides automatic Avalonia.Controls.Documents.Primitives.Components.TextViewComponentBase.Host tracking, Avalonia.Controls.Documents.Primitives.Components.TextViewComponentBase.IsAttached state, and re-attach safety (detach-before-attach). Subclasses override Avalonia.Controls.Documents.Primitives.Components.TextViewComponentBase.OnAttached and Avalonia.Controls.Documents.Primitives.Components.TextViewComponentBase.OnDetached to subscribe and unsubscribe from host events.

Properties​

NameDescription
IsAttachedGets whether this component is currently attached to a host.

IsAttached Property​

Gets whether this component is currently attached to a host.

public bool IsAttached { get; set; }