Table of Contents

Class vdDimstyles

Namespace
VectorDraw.Professional.vdCollections
Assembly
VectorDraw.Professional.dll

Represents a collection of vdDimstyle objects and provides methods and helpers
to manage dimension style tables for a document.
Dimension Styles are used to define a large range of properties that used by vdDimension objects.

public sealed class vdDimstyles : vdBaseObject, IDisposable, IVDSerialise, IEnumerable, IBaseObject
Inheritance
vdDimstyles
Implements
Inherited Members

Examples

see vdDimstyle for an example of how to use the vdDimstyles collection to set the dimension style of a dimension object.

Constructors

vdDimstyles()

Initializes the vdDimstyles object.

Properties

Count

Get the item's count of the collection.

this[int]

Get a vdDimstyle object from the collection at a specified index.

ItemType

Returns the Type of Items in the collection

Last

Returns the last item in the collection.

Standard

Gets the standard dimension style for the collection. The standard textstyle uses the reserved name "STANDARD".
If a dimension style named "STANDARD" does not exist this property will create it, initialize it with the
document defaults and add it to the collection. Accessing this property guarantees a
non-null vdDimstyle instance owned by this collection; Standard table objects cannot be Deleted.

Methods

Add(object)

Adds an object to the end of the collection.

Add(string)

Creates and adds a vdDimstyle object to the collection with the specified name,if exists returns the existing.

AddItem(object)

Adds an object to the collection.

AddItem(vdDimstyle)

Adds a vdDimstyle object to the collection.

AddResolveProperty(object, string, string)

Adds the parameters to the resolve list of the collection.

ChangeOrder(vdDimstyle, bool)

Changes the position of a vdDimstyle object to the front or the end of the collection.

ClearIndexDictionary()

Clears the Index of the Dictionary. Internally used to speed up Swap method.

DeSerialize(DeSerializer, string, object)

This Function is called foreach field name of the vdDimstyles object when opening in vdml format.

Dispose()

Releases all resources used by this object.

EnsureDefaults()

Ensures the default values to the properties of the standard vdDimstyle object and it's vdFigure objects that contains.

FindItem(object)

Checks if an object exists in the collection.

FindItem(vdDimstyle)

Checks if an object exists in the collection.

FindName(string)

Finds a vdDimstyle object with the specified name in the collection.

GetEnumerator()

Implements the "foreach" expression for the collection.

GetNotDeletedItems()

Get all non deleted objects of the collection.

GetNotDeletedItemsAndVisibleOnForms()

Get all non deleted objects of the collection.

GetObjectRealPosition(object)

Find the index where a specified object is located in the list.

InitDefaults(vdDocument)

Ensures the existance of the standard vdDimstyle object and also sets the document parameter to be the document of the collection.

InsertAt(int, object)

Insert an object at a specified index.

InsertAt(int, vdDimstyle)

Insert a vdDimension object to a specified index of the collection.

InsertCopyOf(vdDimstyle)

Adds a clone of the obj in the collection if it is not exist.

InternalSetOwner(vdBaseObject)

Internally used only.

Set the object owner

IsDefault(vdPrimary)

Checks if the parameter passed is the standard vdDimstyle object.

MakeIndexDictionary()

Creates an Index of the Dictionary. Internally used to speed up Swap method.

ModifyDimTextHeight()

Change the TextHeight for all dimensions and dimstyles to zero(0) in order to follow the Height of TextStyles.

Purge()

Sets as Deleted all vdDimstyles that are not being used in the Collection's Document.

RemoveAll()

Removes all objects from the collection.

RemoveAt(int)

Removes an object from the specified index of the collection.

RemoveItem(object)

Removes an object from the collection.

RemoveItem(vdDimstyle)

Removes a specific vdDimstyle object from the collection.

ResolveProperties()

Resolves all the properties added with the AddResolveProperty(object, string, string) function.

Serialize(Serializer)

This Function is called when saving the vdDimstyles object to vdml format.

ToString()

Gets a System.String that represents the count of the vdDimstyles collection Object.

getUniqueTableName(string)

Creates a unique string for use as name to a vdDimstyle object.

swap(vdDimstyle, vdDimstyle)

Swaps the position between two different vdDimstyle objects existing in the collection.

See Also