Class vdGroups
- Namespace
- VectorDraw.Professional.vdCollections
- Assembly
- VectorDraw.Professional.dll
Represents a collection of vdGroup objects.
public class vdGroups : vdBaseObject, IDisposable, IVDSerialise, IEnumerable, IBaseObject
- Inheritance
-
vdGroups
- Implements
- Inherited Members
Remarks
The vdGroups class manages creation, lookup and lifecycle of vdGroup instances. Typically accessed via the Groups property, which is used to organize figures into logical groups for collective manipulation with vdSelection. It maintains fast lookup dictionaries by name and by id, supports document registration and serialization, and exposes collection operations.
Ownership and document behavior:
- When an item is added the group's owner and document are set appropriately.
- The IgnoreGroups property controls whether group handling is ignored for the parent document.
Constructors
- vdGroups()
Initializes the vdGroups collection object.
Properties
- Count
Get the item's count of the collection.
- IgnoreGroups
A boolean value that represents if the groups are enabled for the Document.
- this[int]
Get a vdGroup object from the collection at a specified index.
- ItemType
Returns the Type of Items in the collection
Methods
- Add(object)
Adds an object to the end of the collection.
- Add(string)
Creates and adds a vdGroup object to the collection with the specified name.
- AddItem(vdGroup)
Adds a vdGroup object to the collection.
- BoundingBox()
Gets the Bounding Box of all the entities that belong to the group in WorldCoordinate System.
- ChangeOrder(vdGroup, bool)
Changes the position of a vdGroup object to the front or the end of the collection.
- DeSerialize(DeSerializer, string, object)
This Function is called foreach field name of the vdGroups object when opening in vdml format.
- Dispose()
Releases all resources used by this object.
- FindFigure(vdFigure)
Try to find a figure in which group it belongs.
- FindItem(vdGroup)
Checks if an object exists in the collection.
- FindName(string)
Finds a vdGroup object with the specified name in the collection.
- GetEnumerator()
Implements the "foreach" expression for the collection.
- InternalSetOwner(vdBaseObject)
Internally used only.
Set the object owner
- RemoveAll()
Removes all objects from the collection.
- RemoveItem(vdGroup)
Removes a specific vdGroup object from the collection.
- Serialize(Serializer)
This Function is called when saving the vdGroups object to vdml format.
- ToString()
Gets a System.String that represents the count of the vdGroups collection Object.
- getUniqueTableName(string)
Creates a unique string for use as name to a vdGroup object.
- swap(vdGroup, vdGroup)
Swaps the position between two different vdGroup objects existing in the collection.