Construct a new section list.
The options for initializing the list.
Clamp a size to the minimum section size
The size to clamp.
The size or the section minimum size, whichever is larger
Find the extent of the section at the given index.
The index of the section of interest.
The extent of the section at the given index, or -1
if the index is out of range.
An index
which is non-integral.
Logarithmic on the number of resized sections.
Find the index of the section which covers the given offset.
The offset of the section of interest.
The index of the section which covers the given offset,
or -1
if the offset is out of range.
Logarithmic on the number of resized sections.
Insert sections into the list.
The index at which to insert the sections. This value will be clamped to the bounds of the list.
The number of sections to insert. This method
is a no-op if this value is <= 0
.
An index
or count
which is non-integral.
Linear on the number of resized sections.
Move sections within the list.
The index of the first section to move. This method is a no-op if this value is out of range.
The number of sections to move. This method is a
no-op if this value is <= 0
.
The destination index for the first section. This value will be clamped to the allowable range.
An index
, count
, or destination
which is non-integral.
Linear on the number of moved resized sections.
Find the offset of the section at the given index.
The index of the section of interest.
The offset of the section at the given index, or -1
if the index is out of range.
An index
which is non-integral.
Logarithmic on the number of resized sections.
Remove sections from the list.
The index of the first section to remove. This method is a no-op if this value is out of range.
The number of sections to remove. This method
is a no-op if this value is <= 0
.
An index
or count
which is non-integral.
Linear on the number of resized sections.
Resize a section in the list.
The index of the section to resize. This method is a no-op if this value is out of range.
The new size of the section. This value will be
clamped to an integer >= 0
.
An index
which is non-integral.
Linear on the number of resized sections.
Find the size of the section at the given index.
The index of the section of interest.
The size of the section at the given index, or -1
if the index is out of range.
An index
which is non-integral.
Logarithmic on the number of resized sections.
Generated using TypeDoc
An object which manages a collection of variable sized sections. The namespace for the
SectionList
class statics.Notes
This class is an implementation detail. It is designed to manage the variable row and column sizes for a data grid. User code will not interact with this class directly.