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
startSectionIndexintThe section index of the first visible item. Use GlobalHeaderSectionIndex for global header, GlobalFooterSectionIndex for global footer.
startItemIndexintThe item index within the start section of the first visible item. Use SectionHeaderItemIndex for section header, SectionFooterItemIndex for section footer.
endSectionIndexintThe section index of the last visible item. Use GlobalHeaderSectionIndex for global header, GlobalFooterSectionIndex for global footer.
endItemIndexintThe 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
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
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
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
Properties
EndItemIndex
Gets the item index within the end section of the last visible item.
public int EndItemIndex { get; }
Property Value
EndSectionIndex
Gets the section index of the last visible item.
public int EndSectionIndex { get; }
Property Value
StartItemIndex
Gets the item index within the start section of the first visible item.
public int StartItemIndex { get; }
Property Value
StartSectionIndex
Gets the section index of the first visible item.
public int StartSectionIndex { get; }