[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.ReadOnlyStructList-1

ReadOnlyStructList<T> Class

Represents a strongly typed read-only list of structs that can be effectively accessed by index.

Inheritance
ReadOnlyStructList<T>
Namespace: GrapeCity.Documents.Common
Assembly: DS.Documents.Imaging.dll
Syntax
public class ReadOnlyStructList<T> where T : struct
Public Class ReadOnlyStructList(Of T As Structure)
Type Parameters
Name Description
T

The type of structs in the list.

Constructors

Name Description
ReadOnlyStructList(StructList<T>)

Initializes a new instance of the ReadOnlyStructList<T> class from a given instance of StructList<T>.

Properties

Name Description
Count

Gets the number of elements actually contained in the ReadOnlyStructList<T>.

this[int]

Gets a reference to the struct at the specified index.

SyncRoot

Gets an object that can be used to synchronize access to the ReadOnlyStructList<T>.

Methods

Name Description
BinarySearch(int, int, in T, IStructComparer<T>)

Searches a range of elements in the sorted ReadOnlyStructList<T> for an element using the specified comparer and returns the zero-based index of the element.

BinarySearch(int, int, in T, StructComparison<T>)

Searches a range of elements in the sorted ReadOnlyStructList<T> for an element using the specified StructComparison<T> and returns the zero-based index of the element.

ConvertAll<TOutput>(StructConverter<T, TOutput>)

Converts the elements in the current ReadOnlyStructList<T> to another type, and returns a list containing the converted elements.

CopyTo(int, T[], int, int)

Copies a range of elements from the ReadOnlyStructList<T> to a compatible one-dimensional array, starting at the specified index of the target array.

CopyTo(T[], int)

Copies the entire ReadOnlyStructList<T> to a compatible one-dimensional array, starting at the specified index of the target array.

CountAll(StructPredicate<T>)

Gets the number of elements in the ReadOnlyStructList<T> that match the conditions defined by the specified predicate.

Exists(StructPredicate<T>)

Determines whether the ReadOnlyStructList<T> contains elements that match the conditions defined by the specified predicate.

FindAll(StructPredicate<T>)

Retrieves all the elements that match the conditions defined by the specified predicate.

FindIndex(StructPredicate<T>)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire ReadOnlyStructList<T>.

FindIndex(int, StructPredicate<T>)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the ReadOnlyStructList<T> that extends from the specified index to the last element.

FindIndex(int, int, StructPredicate<T>)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the ReadOnlyStructList<T> that starts at the specified index and contains the specified number of elements.

FindLastIndex(StructPredicate<T>)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire ReadOnlyStructList<T>.

FindLastIndex(int, StructPredicate<T>)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the ReadOnlyStructList<T> that extends from the first element to the specified index.

FindLastIndex(int, int, StructPredicate<T>)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the ReadOnlyStructList<T> that contains the specified number of elements and ends at the specified index.

ForEach(StructAction<T>)

Performs the specified action on each element of the ReadOnlyStructList<T>.

GetRange(int, int)

Creates a shallow copy of a range of elements in the source ReadOnlyStructList<T>.

ToArray()

Copies the elements of the ReadOnlyStructList<T> to a new array.

TrueForAll(StructPredicate<T>)

Determines whether every element in the ReadOnlyStructList<T> matches the conditions defined by the specified predicate.