Table of Contents

Class InlineCollection

Namespace
Avalonia.Controls.Documents
Assembly
Avalonia.Controls.dll

A collection of Inlines.

[WhitespaceSignificantCollection]
public class InlineCollection : AvaloniaList<Inline>, IAvaloniaList<Inline>, IList<Inline>, ICollection<Inline>, IAvaloniaReadOnlyList<Inline>, IReadOnlyList<Inline>, IReadOnlyCollection<Inline>, IEnumerable<Inline>, INotifyCollectionChanged, INotifyPropertyChanged, IList, ICollection, IEnumerable
Inheritance
InlineCollection
Implements
Inherited Members

Constructors

InlineCollection()

Initializes a new instance of the InlineCollection class.

public InlineCollection()

Properties

Text

Gets or adds the text held by the inlines collection. Can be null for complex content.

public string? Text { get; }

Property Value

string

Methods

Add(Control)

Adds a control wrapped inside a InlineUIContainer to the collection.

public void Add(Control control)

Parameters

control Control

The to be added control.

Add(Inline)

Adds an item to the collection.

public override void Add(Inline inline)

Parameters

inline Inline

Add(string)

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 Run to the collection.

public void Add(string text)

Parameters

text string

The to be added text.

Invalidate()

Raises the Invalidated event.

protected void Invalidate()

Events

Invalidated

Raised when an inline in the collection changes.

public event EventHandler? Invalidated

Event Type

EventHandler