Click or drag to resize

UserDictionary Class

Defines the storage data class for a user dictionary.
Inheritance Hierarchy

Namespace:  Rhino.DocObjects.Custom
Assembly:  RhinoCommon (in RhinoCommon.dll)
public class UserDictionary : UserData

The UserDictionary type exposes the following members.

Public methodUserDictionary
Initializes a new instance of the UserDictionary class
Public propertyDescription
Gets the text "RhinoCommon UserDictionary".
(Overrides UserDataDescription.)
Public propertyDictionary
Gets the dictionary that is associated with this class.

This dictionary is unique.

Public propertyShouldWrite
Writes this entity if the count is larger than 0.
(Overrides UserDataShouldWrite.)
Public propertyTransform
Updated if user data is attached to a piece of geometry that is transformed and the virtual OnTransform() is not overridden. If you override OnTransform() and want Transform to be updated, then call the base class OnTransform() in your override. The default constructor sets Transform to the identity.
(Inherited from UserData.)
Public methodDispose
Actively reclaims unmanaged resources that this instance uses.
(Inherited from UserData.)
Protected methodDispose(Boolean)
For derived class implementers.

This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.

You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.

Also, you must call the base virtual method within your overriding method.

(Inherited from UserData.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
(Inherited from UserData.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnDuplicate
Clones the user data.
(Overrides UserDataOnDuplicate(UserData).)
Protected methodOnTransform
Is called when the object associated with this data is transformed. If you override this function, make sure to call the base class if you want the stored Transform to be updated.
(Inherited from UserData.)
Protected methodRead
Is called to read this entity.
(Overrides UserDataRead(BinaryArchiveReader).)
Public methodToString (Inherited from Object.)
Protected methodWrite
Is called to write this entity.
(Overrides UserDataWrite(BinaryArchiveWriter).)
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.2
See Also