Skip to main content

PageContext Struct

Definition​

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

The page a band host presents: the one-based page number and the page count. Set on a host by the paged view and inherited by the views inside it, so page-number fields resolve per page.

public struct PageContext

Inheritance: ValueType -> PageContext

Implements: IEquatable<PageContext>

Constructors​

NameDescription
PageContextThe page a band host presents: the one-based page number and the page count. Set on a host by the paged view and inherited by the views inside it, so page-number fields resolve per page.

PageContext Constructor​

The page a band host presents: the one-based page number and the page count. Set on a host by the paged view and inherited by the views inside it, so page-number fields resolve per page.

public PageContext(int PageNumber, int PageCount)

Parameters​

PageNumber int

PageCount int

Methods​

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

Deconstruct Method​

public void Deconstruct(int& PageNumber, int& PageCount)

Parameters​

PageNumber int&

PageCount int&

Equals overloads​

Equals Method​

public bool Equals(Avalonia.Controls.Documents.Primitives.PageContext other)
Parameters​

other Avalonia.Controls.Documents.Primitives.PageContext

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
PageCountNo summary available.
PageNumberNo summary available.

PageCount Property​

public int PageCount { get; set; }

PageNumber Property​

public int PageNumber { get; set; }