Search Results for

    Show / Hide Table of Contents

    Class SvgAttributeCollection

    A collection of Scalable Vector Attributes that can be inherited from the owner elements ancestors.

    Inheritance
    Object
    Dictionary<System.String, Object>
    SvgAttributeCollection
    Implements
    System.Collections.Generic.IDictionary<System.String, Object>
    ICollection<System.Collections.Generic.KeyValuePair<System.String, Object>>
    IReadOnlyDictionary<System.String, Object>
    IReadOnlyCollection<System.Collections.Generic.KeyValuePair<System.String, Object>>
    IEnumerable<System.Collections.Generic.KeyValuePair<System.String, Object>>
    IDictionary
    ICollection
    System.Collections.IEnumerable
    IDeserializationCallback
    ISerializable
    Inherited Members
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.get_Item(System.Object)
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
    Dictionary<String, Object>.Add(String, Object)
    Dictionary<String, Object>.Clear()
    Dictionary<String, Object>.ContainsKey(String)
    Dictionary<String, Object>.ContainsValue(Object)
    Dictionary<String, Object>.EnsureCapacity(Int32)
    System.Collections.Generic.Dictionary<System.String, System.Object>.GetEnumerator()
    Dictionary<String, Object>.OnDeserialization(Object)
    Dictionary<String, Object>.Remove(String)
    Dictionary<String, Object>.Remove(String, Object)
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.Add(System.Collections.Generic.KeyValuePair<System.String, System.Object>)
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.Contains(System.Collections.Generic.KeyValuePair<System.String, System.Object>)
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.CopyTo(System.Collections.Generic.KeyValuePair<System.String, System.Object>[], System.Int32)
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.Remove(System.Collections.Generic.KeyValuePair<System.String, System.Object>)
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.GetEnumerator()
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.Add(System.Object, System.Object)
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.Contains(System.Object)
    Dictionary<String, Object>.IDictionary.GetEnumerator()
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.Remove(System.Object)
    Dictionary<String, Object>.IEnumerable.GetEnumerator()
    Dictionary<String, Object>.TrimExcess()
    System.Collections.Generic.Dictionary<System.String, System.Object>.TrimExcess(System.Int32)
    Dictionary<String, Object>.TryAdd(String, Object)
    System.Collections.Generic.Dictionary<System.String, System.Object>.TryGetValue(System.String, System.Object)
    Dictionary<String, Object>.Comparer
    Dictionary<String, Object>.Count
    Dictionary<String, Object>.Item[String]
    Dictionary<String, Object>.Keys
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>.IsReadOnly
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IDictionary<System.String, System.Object>.Keys
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IDictionary<System.String, System.Object>.Values
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object>.Keys
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object>.Values
    Dictionary<String, Object>.ICollection.IsSynchronized
    Dictionary<String, Object>.ICollection.SyncRoot
    Dictionary<String, Object>.IDictionary.IsFixedSize
    Dictionary<String, Object>.IDictionary.IsReadOnly
    System.Collections.Generic.Dictionary<System.String, System.Object>.System.Collections.IDictionary.Item[System.Object]
    Dictionary<String, Object>.IDictionary.Keys
    Dictionary<String, Object>.IDictionary.Values
    Dictionary<String, Object>.Values
    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 SvgAttributeCollection : Dictionary<string, object>, IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IReadOnlyDictionary<string, object>, IReadOnlyCollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable

    Constructors

    | Improve this Doc View Source

    SvgAttributeCollection(SvgElement)

    Initialises a new instance of a SvgAttributeCollection with the given SvgElement as the owner.

    Declaration
    public SvgAttributeCollection(SvgElement owner)
    Parameters
    Type Name Description
    SvgElement owner

    The SvgElement owner of the collection.

    Properties

    | Improve this Doc View Source

    Item[String]

    Gets the attribute with the specified name.

    Declaration
    public object this[string attributeName] { get; set; }
    Parameters
    Type Name Description
    System.String attributeName

    A System.String containing the attribute name.

    Property Value
    Type Description
    Object

    The attribute value associated with the specified name; If there is no attribute the parent's value will be inherited.

    Methods

    | Improve this Doc View Source

    GetAttribute<TAttributeType>(String, TAttributeType)

    Gets the attribute with the specified name.

    Declaration
    public TAttributeType GetAttribute<TAttributeType>(string attributeName, TAttributeType defaultValue = null)
    Parameters
    Type Name Description
    System.String attributeName

    A System.String containing the name of the attribute.

    TAttributeType defaultValue

    The value to return if a value hasn't already been specified.

    Returns
    Type Description
    TAttributeType

    The attribute value if available; otherwise the default value of TAttributeType.

    Type Parameters
    Name Description
    TAttributeType

    The type of the attribute value.

    | Improve this Doc View Source

    GetInheritedAttribute<TAttributeType>(String, Boolean, TAttributeType)

    Gets the attribute with the specified name and inherits from ancestors if there is no attribute set.

    Declaration
    public TAttributeType GetInheritedAttribute<TAttributeType>(string attributeName, bool inherited, TAttributeType defaultValue = null)
    Parameters
    Type Name Description
    System.String attributeName

    A System.String containing the name of the attribute.

    Boolean inherited

    Used only if the attribute value is not available. If set to true, the inherited value is returned in this case, otherwise the default value.

    TAttributeType defaultValue

    The value to return if a value hasn't already been specified.

    Returns
    Type Description
    TAttributeType

    The attribute value if available and not set to "inherit"; the ancestors value for the same attribute if it exists and if either the attribute value is set to "inherit", or inherited is true; the default value otherwise.

    Type Parameters
    Name Description
    TAttributeType

    The type of the attribute value.

    Events

    | Improve this Doc View Source

    AttributeChanged

    Fired when an Atrribute has changed

    Declaration
    public event EventHandler<AttributeEventArgs> AttributeChanged
    Event Type
    Type Description
    System.EventHandler<AttributeEventArgs>

    Implements

    System.Collections.Generic.IDictionary<TKey, TValue>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>
    System.Collections.Generic.IReadOnlyCollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IDictionary
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.Runtime.Serialization.IDeserializationCallback
    System.Runtime.Serialization.ISerializable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX