InlineCollection Class
Definition
A collection of Avalonia.Controls.Documents.Inlines.
public class InlineCollection
Constructors
| Name | Description |
|---|---|
| InlineCollection | Initializes 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
| Name | Description |
|---|---|
| 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
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
| Name | Description |
|---|---|
| Text | Gets 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
| Name | Description |
|---|---|
| Invalidated | Raised when an inline in the collection changes. |
Invalidated Event
Raised when an inline in the collection changes.
public event EventHandler Invalidated