Skip to main content

TextPageBandCollection Class

Definition​

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

The bands a text document owns. Adding a band makes the document its owner and joins the band's undo to the document's stack; removing it releases both. Ownership is exclusive, a band document owns no bands, and the first band with a given role and rule is the one the rule places.

public class TextPageBandCollection

Inheritance: Collection<TextPageBand> -> TextPageBandCollection

Methods​

NameDescription
Find (2 overloads)The first band with role and rule: the one the rule places.

Find overloads​

Find Method​

The first band with role and rule: the one the rule places.

public Avalonia.Controls.Documents.TextModel.TextPageBand Find(Avalonia.Controls.Documents.PageBandRole role, Avalonia.Controls.Documents.PageBandRule rule)
Parameters​

role Avalonia.Controls.Documents.PageBandRole

rule Avalonia.Controls.Documents.PageBandRule

Returns​

Avalonia.Controls.Documents.TextModel.TextPageBand

Find Method​

The band with id, or null: what a section's reference names.

public Avalonia.Controls.Documents.TextModel.TextPageBand Find(Guid id)
Parameters​

id Guid

Returns​

Avalonia.Controls.Documents.TextModel.TextPageBand