RuntimeDocumentDataTable
Collection of document runtime data. This is a good place to put non-serialized, per document data.
Inheritance Hierarchy
System.Object
System.Collections.Generic.Dictionary.Object, Object.
Rhino.DocObjects.Tables.RuntimeDocumentDataTable
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
public sealed class RuntimeDocumentDataTable : Dictionary<Object, Object>
The RuntimeDocumentDataTable type exposes the following members.
Properties
Name
Description
Public Property
Comparer
Gets the IEqualityComparer.T. that is used to determine equality of keys for the dictionary.
(Inherited from Dictionary.Object, Object..)
Public Property
Count
Gets the number of key/value pairs contained in the Dictionary.TKey, TValue..
(Inherited from Dictionary.Object, Object..)
Public Property
Document
Public Property
Item
Gets or sets the value associated with the specified key.
(Inherited from Dictionary.Object, Object..)
Public Property
Keys
Gets a collection containing the keys in the Dictionary.TKey, TValue..
(Inherited from Dictionary.Object, Object..)
Public Property
Values
Gets a collection containing the values in the Dictionary.TKey, TValue..
(Inherited from Dictionary.Object, Object..)
Methods
Name
Description
Public Method
Add
Adds the specified key and value to the dictionary.
(Inherited from Dictionary.Object, Object..)
Public Method
Clear
Removes all keys and values from the Dictionary.TKey, TValue..
(Inherited from Dictionary.Object, Object..)
Public Method
ContainsKey
Determines whether the Dictionary.TKey, TValue. contains the specified key.
(Inherited from Dictionary.Object, Object..)
Public Method
ContainsValue
Determines whether the Dictionary.TKey, TValue. contains a specific value.
(Inherited from Dictionary.Object, Object..)
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public Method
GetEnumerator
Returns an enumerator that iterates through the Dictionary.TKey, TValue..
(Inherited from Dictionary.Object, Object..)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public Method
GetObjectData
Implements the ISerializable interface and returns the data needed to serialize the Dictionary.TKey, TValue. instance.
(Inherited from Dictionary.Object, Object..)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public Method
Code Example
GetValue.T.
Checks the dictionary for the specified key, if found and the value is not null then the value is returned. If the key is not found or its value is null then newT(Document) is called to create a new value instance which is put in the dictionary and returned.
Public Method
OnDeserialization
Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.
(Inherited from Dictionary.Object, Object..)
Public Method
Remove
Removes the value with the specified key from the Dictionary.TKey, TValue..
(Inherited from Dictionary.Object, Object..)
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public Method
TryGetValue(TKey, TValue.)
Gets the value associated with the specified key.
(Inherited from Dictionary.Object, Object..)
Public Method
TryGetValue.T.(Object)
Check dictionary for value and return it properly cast if found.