Skip to main content

InlineCollection Class

Definition

Assembly:Avalonia.Controls
Package:Avalonia
public class InlineCollection

Inheritance: AvaloniaList<Inline> -> InlineCollection

Constructors

NameDescription
InlineCollectionInitializes a new instance of the Avalonia.Controls.Documents.InlineCollection class.

InlineCollection Constructor

Initializes a new instance of the Avalonia.Controls.Documents.InlineCollection class.

public InlineCollection()

Methods

NameDescription
Add (3 overloads)Adds a control wrapped inside a Avalonia.Controls.Documents.InlineUIContainer to the collection.

Add overloads

Add Method

Adds a control wrapped inside a Avalonia.Controls.Documents.InlineUIContainer to the collection.

public void Add(Avalonia.Controls.Control control)
Parameters

control Avalonia.Controls.Control

The to be added control.

Add Method

public void Add(Avalonia.Controls.Documents.Inline inline)
Parameters

inline Avalonia.Controls.Documents.Inline

Add Method

Adds a text segment to the collection.

For non-complex content this appends the text to the end of currently held text. For complex content this adds a Avalonia.Controls.Documents.Run to the collection.

public void Add(string text)
Parameters

text string

The to be added text.

Properties

NameDescription
TextGets or adds the text held by the inlines collection.

Text Property

Gets or adds the text held by the inlines collection.

Can be null for complex content.

public string Text { get; set; }

Events

NameDescription
InvalidatedRaised when an inline in the collection changes.

Invalidated Event

Raised when an inline in the collection changes.

public event EventHandler Invalidated