Skip to main content

SectionPageSetup Struct

Definition​

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

Page geometry declared by a Avalonia.Controls.Documents.Section. Value type for zero-reference safety; carried on the section's snapshot node, not in Avalonia.Controls.Documents.TextModel.Formatting.BlockFormatting.

public struct SectionPageSetup

Inheritance: ValueType -> SectionPageSetup

Implements: IEquatable<SectionPageSetup>

Remarks​

Null members mean "not declared" and inherit the document-level page setup. A section that declares any member starts on a new page in paginated output and spans pages with this geometry; a section that declares none is a plain grouping container with no page semantics.

Methods​

NameDescription
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.
ToStringNo summary available.

Equals overloads​

Equals Method​

public bool Equals(Avalonia.Controls.Documents.TextModel.Formatting.SectionPageSetup other)
Parameters​

other Avalonia.Controls.Documents.TextModel.Formatting.SectionPageSetup

Returns​

bool

Equals Method​

public bool Equals(object obj)
Parameters​

obj object

Returns​

bool

GetHashCode Method​

public int GetHashCode()

Returns​

int

ToString Method​

public string ToString()

Returns​

string

Properties​

NameDescription
DefaultSetup with no declared values.
IsEmptyGets whether no geometry member is declared - the section carries no page semantics.
PageHeightThe page height in device-independent pixels for pages this section spans. Null inherits the document's page height.
PagePaddingThe page margins (distance from the paper edge to the content area) for pages this section spans. Null inherits the document's page padding.
PageWidthThe page width in device-independent pixels for pages this section spans. Null inherits the document's page width.

Default Property​

Setup with no declared values.

public Avalonia.Controls.Documents.TextModel.Formatting.SectionPageSetup Default { get; set; }

IsEmpty Property​

Gets whether no geometry member is declared - the section carries no page semantics.

public bool IsEmpty { get; set; }

PageHeight Property​

The page height in device-independent pixels for pages this section spans. Null inherits the document's page height.

public Nullable<double> PageHeight { get; set; }

PagePadding Property​

The page margins (distance from the paper edge to the content area) for pages this section spans. Null inherits the document's page padding.

public Nullable<Avalonia.Thickness> PagePadding { get; set; }

PageWidth Property​

The page width in device-independent pixels for pages this section spans. Null inherits the document's page width.

public Nullable<double> PageWidth { get; set; }