InlineCollection Class
A collection of Inlines.
Definition
Namespace: Avalonia.Controls.Documents
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
[WhitespaceSignificantCollectionAttribute]
public class InlineCollection : AvaloniaList<Inline>
<WhitespaceSignificantCollectionAttribute>
Public Class InlineCollection
Inherits AvaloniaList(Of Inline)
[<WhitespaceSignificantCollectionAttribute>]
type InlineCollection =
class
inherit AvaloniaList<Inline>
end
Inheritance | Object → AvaloniaList(Inline) → InlineCollection |
Constructors
InlineCollection() | Initializes a new instance of the InlineCollection class. |
Properties
Capacity | Gets or sets the total number of elements the internal data structure can hold without resizing. (Inherited from AvaloniaList(T)) |
Count | Gets the number of items in the collection. (Inherited from AvaloniaList(T)) |
Item(Int32) | Gets or sets the item at the specified index. (Inherited from AvaloniaList(T)) |
ResetBehavior | Gets or sets the reset behavior of the list. (Inherited from AvaloniaList(T)) |
Text | Gets or adds the text held by the inlines collection. Remarks: Can be null for complex content. |
Validate | Gets or sets a validation routine that can be used to validate items before they are added. (Inherited from AvaloniaList(T)) |
Methods
Add(Control) | Adds a control wrapped inside a InlineUIContainer to the collection. |
Add(Inline) | (Overrides AvaloniaList(T).Add(T)) |
Add(String) | Adds a text segment to the collection. Remarks: 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. |
AddRange(IEnumerable(T)) | Adds multiple items to the collection. (Inherited from AvaloniaList(T)) |
Clear() | Removes all items from the collection. (Inherited from AvaloniaList(T)) |
Contains(T) | Tests if the collection contains the specified item. (Inherited from AvaloniaList(T)) |
CopyTo(T[], Int32) | Copies the collection's contents to an array. (Inherited from AvaloniaList(T)) |
EnsureCapacity(Int32) | Ensures that the capacity of the list is at least Capacity. (Inherited from AvaloniaList(T)) |
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetEnumerator() | (Inherited from AvaloniaList(T)) |
GetHashCode() | Serves as the default hash function. (Inherited from Object) |
GetRange(Int32, Int32) | Gets a range of items from the collection. (Inherited from AvaloniaList(T)) |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
IndexOf(T) | Gets the index of the specified item in the collection. (Inherited from AvaloniaList(T)) |
Insert(Int32, T) | Inserts an item at the specified index. (Inherited from AvaloniaList(T)) |
InsertRange(Int32, IEnumerable(T)) | Inserts multiple items at the specified index. (Inherited from AvaloniaList(T)) |
Invalidate() | Raises the Invalidated event. |
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object) |
Move(Int32, Int32) | Moves an item to a new index. (Inherited from AvaloniaList(T)) |
MoveRange(Int32, Int32, Int32) | Moves multiple items to a new index. (Inherited from AvaloniaList(T)) |
Remove(T) | Removes an item from the collection. (Inherited from AvaloniaList(T)) |
RemoveAll(IEnumerable(T)) | Removes multiple items from the collection. (Inherited from AvaloniaList(T)) |
RemoveAt(Int32) | Removes the item at the specified index. (Inherited from AvaloniaList(T)) |
RemoveRange(Int32, Int32) | Removes a range of elements from the collection. (Inherited from AvaloniaList(T)) |
ToString() | Returns a string that represents the current object. (Inherited from Object) |
Events
CollectionChanged | Raised when a change is made to the collection's items. (Inherited from AvaloniaList(T)) |
Invalidated | Raised when an inline in the collection changes. |
PropertyChanged | Raised when a property on the collection changes. (Inherited from AvaloniaList(T)) |