List
<
any
>
A list of objects
Class
CompareDelegate
A type that represents a reference to a method with a parameter list and return type
CompareFieldDelegate
A type that represents a reference to a method with a parameter list and return type
FindDelegate
A type that represents a reference to a method with a parameter list and return type
Method
public
List
.
Constructor
(
int
capacity
, []
init
=
null
)
public
void
List
.
Add
(
value
)
Add an item to the list
public
void
List
.
AddEach
(
value
)
Add each item in values to the list
public
void
List
.
Clear
Remove all elements
public
virtual
int
object
.
Compare
(
value
)
Compares this object with another and returns (-1, 0, or 1)
public
bool
List
.
Contains
(
value
)
Returns true if the element is present in the container
public
object
List
.
FindCount
(
delegate
bool
FindDelegate
(
value
)
predicate
,
int
maxcount
=
null
)
Find the number of matching items
public
int
List
.
FindElementIndex
(
value
)
Returns the index of the first matching element (-1 if none)
public
List
.
FindFirst
(
delegate
bool
FindDelegate
(
value
)
predicate
)
Returns the first matching element or null if not found
public
int
List
.
FindFirstIndex
(
delegate
bool
FindDelegate
(
value
)
predicate
)
Returns the index of first matching element or -1 if no match
public
object
List
.
FindIndex
(
delegate
bool
FindDelegate
(
value
)
predicate
,
int
maxcount
=
null
)
Returns a range list of matching elements
public
List
.
FindMax
Returns the maximum value or null
public
List
.
FindMin
Returns the minimum value or null
public
[]
List
.
FindSlice
(
delegate
bool
FindDelegate
(
value
)
predicate
,
int
maxcount
=
null
)
Returns an array comprising matching elements
public
List
.
FirstElement
Returns the first element or null
public
Attribute
List
.
GetEachType
Get the iterated type
public
virtual
Icon
object
.
GetIcon
Return a icon for this object
public
virtual
object
.
GetLayoutBlock
Return a layout inside a block
public
virtual
object
.
GetLayoutSpan
Return a layout inside a span
public
virtual
object
.
GetLayoutTip
Return a layout for the hint popup
public
virtual
object
.
GetSourceReference
Return a source reference for this object
public
virtual
void
object
.
GetTexSource
(
source
)
LaTeX source code for this object
public
List
.
LastElement
Returns the last element or null
public
void
List
.
Remove
(
index
)
Remove an item from the list
public
void
List
.
SetAllValues
(
value
)
Set all elements to a single value
public
void
List
.
SetValue
(
index
,
value
)
Modify the ith element
public
void
List
.
Sort
(
bool
descending
=
false
,
delegate
int
CompareDelegate
(
v1
,
v2
)
comparedelegate
=
null
)
Sorts the list in place
public
void
List
.
SortField
(
bool
descending
,
delegate
CompareFieldDelegate
(
value
)
comparedelegatefield
)
Sorts the list in place
public
[]
List
.
ToArray
Returns the current values to an array
public
[]
List
.
ToSortedArray
(
bool
descending
=
false
,
delegate
int
CompareDelegate
(
v1
,
v2
)
comparedelegate
=
null
)
Returns a new array in sorted order
public
[]
List
.
ToSortedArrayField
(
bool
descending
,
delegate
CompareFieldDelegate
(
value
)
comparedelegatefield
)
Returns a new array in sorted order