Class vdGroup
- Namespace
- VectorDraw.Professional.vdPrimaries
- Assembly
- VectorDraw.Professional.dll
Represents a collection-like group of vdFigure instances.
public class vdGroup : vdPrimary, IDisposable, IVDSerialise, IBaseObject, IEnumerable
- Inheritance
-
vdGroup
- Implements
- Inherited Members
Remarks
The vdGroup class maintains references to figures and provides operations to add, remove and enumerate contained vdFigure objects. It stores members in an internal list and dictionary for fast lookup by Id. Adding or removing a figure updates the membership on the contained figure (via VectorDraw.Professional.vdPrimaries.vdFigure.AddToGroup(VectorDraw.Professional.vdPrimaries.vdGroup) / VectorDraw.Professional.vdPrimaries.vdFigure.RemoveFromGroup(VectorDraw.Professional.vdPrimaries.vdGroup)) It used by vdSelection, when an entitity is selected and belogs to the same group with other entities, all entities are added to the selection. The class does not clone contained figures; membership is reference-based. Changes to contained figures are reflected immediately in the group.
Constructors
- vdGroup()
Initializes the vdGroup collection object.
- vdGroup(string)
Initializes the vdGroup collection object with the specified name.
- vdGroup(vdDocument)
Initializes a new instance of the vdGroup object and registers it to the passed Document.
- vdGroup(vdDocument, string)
Initializes a new instance of the vdGroup object and registers it to the passed Document.
Properties
- Count
Get the number of entities of the group.
- Description
Get/Set a Description string for the object
- HighLight
Get/Set the value indicating if the lines of the group's objects will be drawn as dashed
- this[int]
Gets an item from the collection from a specified index.
- ItemType
Returns the Type of Items in the collection
- Name
Get/Set the name of the vdGroup object
- Selectable
A boolean value representing if the group is selectable
- VisibleOnForms
Get/Set a boolean value representing if the vdGroup will be viewed in Vectordraw forms.
Methods
- Add(object)
Adds an object to the end of the collection.
- AddItem(object)
Adds an item to the collection.
- AddItem(vdFigure)
Adds a vdFigure object to the group.
- AddRange(vdEntities)
Adds all vdFigure objects from the passed collection to this group.
- AddRange(vdSelection)
Adds all vdFigure objects from the passed collection to this group.
- AddRange(vdGroup)
Adds all vdFigure objects from the passed group to this group.
- BoundingBox()
Gets the Bounding Box of all the entities that belong to the group in WorldCoordinate System.
- DeSerialize(DeSerializer, string, object)
This Function is called foreach field name of the vdGroup object when opening in vdml format.
- Dispose()
Releases all resources used by this object.
- FindItem(vdFigure)
Checks if an object exists in the collection.
- GetEnumerator()
Implements the "foreach" expression for the collection.
- InitializeProperties()
Resets the properties of the vdGroup object to the Default values.
- InternalSetOwner(vdBaseObject)
Internally used only.
Set the object owner
- MatchProperties(vdPrimary, vdDocument)
Matching properties between groups is not supported.
- RemoveAll()
Removes all items from the group.
- RemoveAt(int)
Removes an object from the specified index of the group.
- RemoveItem(vdFigure)
Removes a specific vdFigure object from the group.
- Serialize(Serializer)
This Function is called when saving the vdGroup object to vdml format.
- ToString()
Gets a System.String description of the vdGroup Object.