Show / Hide Table of Contents

Class AttributeDefinitionDictionary

Represents a dictionary of AttributeDefinition.

Inheritance
System.Object
AttributeDefinitionDictionary
Implements
System.Collections.Generic.IDictionary<System.String, AttributeDefinition>
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, AttributeDefinition>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, AttributeDefinition>>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: netDxf.Collections
Assembly: CADability.dll
Syntax
public sealed class AttributeDefinitionDictionary : IDictionary<string, AttributeDefinition>, ICollection<KeyValuePair<string, AttributeDefinition>>, IEnumerable<KeyValuePair<string, AttributeDefinition>>, IEnumerable

Constructors

| Improve this Doc View Source

AttributeDefinitionDictionary()

Initializes a new instance of AttributeDefinitionDictionary.

Declaration
public AttributeDefinitionDictionary()
| Improve this Doc View Source

AttributeDefinitionDictionary(Int32)

Initializes a new instance of AttributeDefinitionDictionary and has the specified initial capacity.

Declaration
public AttributeDefinitionDictionary(int capacity)
Parameters
Type Name Description
System.Int32 capacity

The number of items the collection can initially store.

Properties

| Improve this Doc View Source

Count

Gets the number of AttributeDefinition contained in the current dictionary.

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

IsReadOnly

Gets a value indicating whether the actual dictionary is read-only.

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

Item[String]

Gets or sets the AttributeDefinition with the specified tag.

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

The tag of the attribute definition to get or set.

Property Value
Type Description
AttributeDefinition

The AttributeDefinition with the specified tag.

| Improve this Doc View Source

Tags

Gets an ICollection containing the tags of the current dictionary.

Declaration
public ICollection<string> Tags { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<System.String>
| Improve this Doc View Source

Values

Gets an ICollection containing the AttributeDefinition list of the current dictionary.

Declaration
public ICollection<AttributeDefinition> Values { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<AttributeDefinition>

Methods

| Improve this Doc View Source

Add(AttributeDefinition)

Adds an AttributeDefinition to the dictionary.

Declaration
public void Add(AttributeDefinition item)
Parameters
Type Name Description
AttributeDefinition item

The AttributeDefinition to add.

| Improve this Doc View Source

AddRange(IEnumerable<AttributeDefinition>)

Adds an AttributeDefinition list to the dictionary.

Declaration
public void AddRange(IEnumerable<AttributeDefinition> collection)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<AttributeDefinition> collection

The collection whose elements should be added.

| Improve this Doc View Source

Clear()

Removes all AttributeDefinition from the current dictionary.

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

ContainsTag(String)

Determines whether current dictionary contains an AttributeDefinition with the specified tag.

Declaration
public bool ContainsTag(string tag)
Parameters
Type Name Description
System.String tag

The tag to locate in the current dictionary.

Returns
Type Description
System.Boolean

True if the current dictionary contains an AttributeDefinition with the tag; otherwise, false.

| Improve this Doc View Source

ContainsValue(AttributeDefinition)

Determines whether current dictionary contains a specified AttributeDefinition.

Declaration
public bool ContainsValue(AttributeDefinition value)
Parameters
Type Name Description
AttributeDefinition value

The AttributeDefinition to locate in the current dictionary.

Returns
Type Description
System.Boolean

True if the current dictionary contains the AttributeDefinition; otherwise, false.

| Improve this Doc View Source

GetEnumerator()

Returns an enumerator that iterates through the dictionary.

Declaration
public IEnumerator<KeyValuePair<string, AttributeDefinition>> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String, AttributeDefinition>>

An enumerator that can be used to iterate through the dictionary.

| Improve this Doc View Source

Remove(String)

Removes an AttributeDefinition with the specified tag from the current dictionary.

Declaration
public bool Remove(string tag)
Parameters
Type Name Description
System.String tag

The tag of the AttributeDefinition to remove.

Returns
Type Description
System.Boolean

True if the AttributeDefinition is successfully removed; otherwise, false.

| Improve this Doc View Source

TryGetValue(String, out AttributeDefinition)

Gets the AttributeDefinition associated with the specified tag.

Declaration
public bool TryGetValue(string tag, out AttributeDefinition value)
Parameters
Type Name Description
System.String tag

The tag whose value to get.

AttributeDefinition value

When this method returns, the AttributeDefinition associated with the specified tag, if the tag is found; otherwise, null. This parameter is passed uninitialized.

Returns
Type Description
System.Boolean

True if the current dictionary contains an AttributeDefinition with the specified tag; otherwise, false.

Events

| Improve this Doc View Source

AddItem

Declaration
public event AttributeDefinitionDictionary.AddItemEventHandler AddItem
Event Type
Type Description
AttributeDefinitionDictionary.AddItemEventHandler
| Improve this Doc View Source

BeforeAddItem

Declaration
public event AttributeDefinitionDictionary.BeforeAddItemEventHandler BeforeAddItem
Event Type
Type Description
AttributeDefinitionDictionary.BeforeAddItemEventHandler
| Improve this Doc View Source

BeforeRemoveItem

Declaration
public event AttributeDefinitionDictionary.BeforeRemoveItemEventHandler BeforeRemoveItem
Event Type
Type Description
AttributeDefinitionDictionary.BeforeRemoveItemEventHandler
| Improve this Doc View Source

RemoveItem

Declaration
public event AttributeDefinitionDictionary.RemoveItemEventHandler RemoveItem
Event Type
Type Description
AttributeDefinitionDictionary.RemoveItemEventHandler

Explicit Interface Implementations

| Improve this Doc View Source

ICollection<KeyValuePair<String, AttributeDefinition>>.Add(KeyValuePair<String, AttributeDefinition>)

Declaration
void ICollection<KeyValuePair<string, AttributeDefinition>>.Add(KeyValuePair<string, AttributeDefinition> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<System.String, AttributeDefinition> item
| Improve this Doc View Source

ICollection<KeyValuePair<String, AttributeDefinition>>.Contains(KeyValuePair<String, AttributeDefinition>)

Declaration
bool ICollection<KeyValuePair<string, AttributeDefinition>>.Contains(KeyValuePair<string, AttributeDefinition> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<System.String, AttributeDefinition> item
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ICollection<KeyValuePair<String, AttributeDefinition>>.CopyTo(KeyValuePair<String, AttributeDefinition>[], Int32)

Declaration
void ICollection<KeyValuePair<string, AttributeDefinition>>.CopyTo(KeyValuePair<string, AttributeDefinition>[] array, int arrayIndex)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<System.String, AttributeDefinition>[] array
System.Int32 arrayIndex
| Improve this Doc View Source

ICollection<KeyValuePair<String, AttributeDefinition>>.Remove(KeyValuePair<String, AttributeDefinition>)

Declaration
bool ICollection<KeyValuePair<string, AttributeDefinition>>.Remove(KeyValuePair<string, AttributeDefinition> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<System.String, AttributeDefinition> item
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IDictionary<String, AttributeDefinition>.Add(String, AttributeDefinition)

Declaration
void IDictionary<string, AttributeDefinition>.Add(string key, AttributeDefinition value)
Parameters
Type Name Description
System.String key
AttributeDefinition value
| Improve this Doc View Source

IDictionary<String, AttributeDefinition>.ContainsKey(String)

Declaration
bool IDictionary<string, AttributeDefinition>.ContainsKey(string tag)
Parameters
Type Name Description
System.String tag
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IDictionary<String, AttributeDefinition>.Keys

Declaration
ICollection<string> IDictionary<string, AttributeDefinition>.Keys { get; }
Returns
Type Description
System.Collections.Generic.ICollection<System.String>
| Improve this Doc View Source

IEnumerable.GetEnumerator()

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

Implements

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