[]
        
(Showing Draft Content)

GrapeCity.Documents.Svg.SvgElementCollection

SvgElementCollection Class

Represents a collection of elements derived from SvgElement.

Inheritance
SvgElementCollection
Namespace: GrapeCity.Documents.Svg
Assembly: DS.Documents.Imaging.dll
Syntax
public class SvgElementCollection : IList<SvgElement>, ICollection<SvgElement>, IEnumerable<SvgElement>, IEnumerable
Public Class SvgElementCollection
    Implements IList(Of SvgElement), ICollection(Of SvgElement), IEnumerable(Of SvgElement), IEnumerable

Properties

Name Description
Capacity

Gets the total number of elements the internal data structure can hold without resizing.

Count

Gets the number of elements contained in the SvgElementCollection.

this[int]

Gets or sets the element at the specified index.

Owner

Gets the owner SvgElement.

Methods

Name Description
Add(SvgElement)

Adds the specified element to the end of the SvgElementCollection.

AddRange(params SvgElement[])

Adds the elements to the end of the SvgElementCollection.

AddRange(IEnumerable<SvgElement>)

Adds the elements of the specified collection to the end of the SvgElementCollection.

Clear()

Removes all elements from the SvgElementCollection.

Contains(SvgElement)

Determines whether an element is in the SvgElementCollection.

CopyTo(SvgElement[], int)

Copies the entire SvgElementCollection to a compatible one-dimensional array, starting at the specified index of the target array.

EnsureCapacity(int)

Ensures that the capacity of this collection is at least the specified capacity.

GetEnumerator()

Returns an enumerator that iterates through the SvgElementCollection.

IndexOf(SvgElement)

Searches for the specified element and returns the zero-based index.

Insert(int, SvgElement)

Inserts an element into the SvgElementCollection at the specified index.

Move(int, int)

Moves the element at the fromIndex to the position of the toIndex.

Remove(SvgElement)

Removes the specific element from the SvgElementCollection.

RemoveAt(int)

Removes the element at the specified index of the SvgElementCollection.

RemoveRange(int, int)

Removes a range of elements from the SvgElementCollection.

Swap(int, int)

Swaps two elements at the index1 and index2.

TrimExcess()

Sets the capacity to the actual number of elements in the SvgElementCollection.