Skip to main content

BlockCollection Class

Definition​

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

The blocks of a document, section, cell or list item. A document's collection is its body; the notes live in Avalonia.Controls.Documents.FlowDocument.Footnotes and the bands in Avalonia.Controls.Documents.FlowDocument.PageBands, nested documents of their own.

public class BlockCollection

Inheritance: RichTextElementCollection<Block> -> BlockCollection

Constructors​

NameDescription
BlockCollectionInitializes a new instance for owner.

BlockCollection Constructor​

Initializes a new instance for owner.

public BlockCollection(Avalonia.AvaloniaObject owner)

Parameters​

owner Avalonia.AvaloniaObject

Remarks​

Reach the collection through its owner rather than building one: an owner caches exactly one instance, and a second over the same owner splits pending content between them.