Search Results for

    Show / Hide Table of Contents

    Class SvgElementCollection

    Represents a collection of SvgElements.

    Inheritance
    Object
    SvgElementCollection
    Implements
    IList<SvgElement>
    ICollection<SvgElement>
    IEnumerable<SvgElement>
    System.Collections.IEnumerable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Svg
    Assembly: Svg.dll
    Syntax
    public sealed class SvgElementCollection : IList<SvgElement>, ICollection<SvgElement>, IEnumerable<SvgElement>, IEnumerable

    Properties

    | Improve this Doc View Source

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    IsReadOnly

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Item[Int32]

    Declaration
    public SvgElement this[int index] { get; set; }
    Parameters
    Type Name Description
    Int32 index
    Property Value
    Type Description
    SvgElement

    Methods

    | Improve this Doc View Source

    Add(SvgElement)

    Declaration
    public void Add(SvgElement item)
    Parameters
    Type Name Description
    SvgElement item
    | Improve this Doc View Source

    AddAndForceUniqueID(SvgElement, Boolean, Boolean, Action<SvgElement, String, String>)

    Declaration
    public void AddAndForceUniqueID(SvgElement item, bool autoForceUniqueID = true, bool autoFixChildrenID = true, Action<SvgElement, string, string> logElementOldIDNewID = null)
    Parameters
    Type Name Description
    SvgElement item
    Boolean autoForceUniqueID
    Boolean autoFixChildrenID
    System.Action<SvgElement, System.String, System.String> logElementOldIDNewID
    | Improve this Doc View Source

    Clear()

    Declaration
    public void Clear()
    | Improve this Doc View Source

    Contains(SvgElement)

    Declaration
    public bool Contains(SvgElement item)
    Parameters
    Type Name Description
    SvgElement item
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    CopyTo(SvgElement[], Int32)

    Declaration
    public void CopyTo(SvgElement[] array, int arrayIndex)
    Parameters
    Type Name Description
    SvgElement[] array
    Int32 arrayIndex
    | Improve this Doc View Source

    FindSvgElementOf<T>()

    expensive recursive search for first node of type T

    Declaration
    public T FindSvgElementOf<T>()
        where T : SvgElement
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    FindSvgElementsOf<T>()

    expensive recursive search for nodes of type T

    Declaration
    public IEnumerable<T> FindSvgElementsOf<T>()
        where T : SvgElement
    Returns
    Type Description
    IEnumerable<T>
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    GetEnumerator()

    Declaration
    public IEnumerator<SvgElement> GetEnumerator()
    Returns
    Type Description
    IEnumerator<SvgElement>
    | Improve this Doc View Source

    GetSvgElementOf<T>()

    Declaration
    public T GetSvgElementOf<T>()
        where T : SvgElement
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    IndexOf(SvgElement)

    Returns the index of the specified SvgElement in the collection.

    Declaration
    public int IndexOf(SvgElement item)
    Parameters
    Type Name Description
    SvgElement item

    The SvgElement to search for.

    Returns
    Type Description
    Int32

    The index of the element if it is present; otherwise -1.

    | Improve this Doc View Source

    Insert(Int32, SvgElement)

    Inserts the given SvgElement to the collection at the specified index.

    Declaration
    public void Insert(int index, SvgElement item)
    Parameters
    Type Name Description
    Int32 index

    The index that the item should be added at.

    SvgElement item

    The SvgElement to be added.

    | Improve this Doc View Source

    InsertAndForceUniqueID(Int32, SvgElement, Boolean, Boolean, Action<SvgElement, String, String>)

    Declaration
    public void InsertAndForceUniqueID(int index, SvgElement item, bool autoForceUniqueID = true, bool autoFixChildrenID = true, Action<SvgElement, string, string> logElementOldIDNewID = null)
    Parameters
    Type Name Description
    Int32 index
    SvgElement item
    Boolean autoForceUniqueID
    Boolean autoFixChildrenID
    System.Action<SvgElement, System.String, System.String> logElementOldIDNewID
    | Improve this Doc View Source

    Remove(SvgElement)

    Declaration
    public bool Remove(SvgElement item)
    Parameters
    Type Name Description
    SvgElement item
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    RemoveAt(Int32)

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    Int32 index

    Explicit Interface Implementations

    | Improve this Doc View Source

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    Implements

    System.Collections.Generic.IList<T>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable

    Extension Methods

    Extensions.Descendants<T>(IEnumerable<T>)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX