Table of Contents

Struct VirtualScrollRange

Namespace
Nalu
Assembly
Nalu.Maui.VirtualScroll.dll

Represents a range of visible items in a VirtualScroll.

public readonly record struct VirtualScrollRange : IEquatable<VirtualScrollRange>
Implements
Inherited Members

Constructors

VirtualScrollRange(int, int, int, int)

Initializes a new instance of the VirtualScrollRange struct.

public VirtualScrollRange(int startSectionIndex, int startItemIndex, int endSectionIndex, int endItemIndex)

Parameters

startSectionIndex int

The section index of the first visible item. Use GlobalHeaderSectionIndex for global header, GlobalFooterSectionIndex for global footer.

startItemIndex int

The item index within the start section of the first visible item. Use SectionHeaderItemIndex for section header, SectionFooterItemIndex for section footer.

endSectionIndex int

The section index of the last visible item. Use GlobalHeaderSectionIndex for global header, GlobalFooterSectionIndex for global footer.

endItemIndex int

The item index within the end section of the last visible item. Use SectionHeaderItemIndex for section header, SectionFooterItemIndex for section footer.

Fields

GlobalFooterSectionIndex

Special section index value indicating the global footer. Using MaxValue ensures it comes last in natural ordering.

public const int GlobalFooterSectionIndex = 2147483647

Field Value

int

GlobalHeaderSectionIndex

Special section index value indicating the global header. Using MinValue ensures it comes first in natural ordering.

public const int GlobalHeaderSectionIndex = -2147483648

Field Value

int

SectionFooterItemIndex

Special item index value indicating a section footer. Using MaxValue ensures it comes last within a section in natural ordering.

public const int SectionFooterItemIndex = 2147483647

Field Value

int

SectionHeaderItemIndex

Special item index value indicating a section header. Using MinValue ensures it comes first within a section in natural ordering.

public const int SectionHeaderItemIndex = -2147483648

Field Value

int

Properties

EndItemIndex

Gets the item index within the end section of the last visible item.

public int EndItemIndex { get; }

Property Value

int

EndSectionIndex

Gets the section index of the last visible item.

public int EndSectionIndex { get; }

Property Value

int

StartItemIndex

Gets the item index within the start section of the first visible item.

public int StartItemIndex { get; }

Property Value

int

StartSectionIndex

Gets the section index of the first visible item.

public int StartSectionIndex { get; }

Property Value

int