Class vdTables
- Namespace
- VectorDraw.Professional.Table
- Assembly
- VectorDraw.Professional.dll
Represents a collection of named vdTable objects.
public class vdTables : vdObject, IDisposable, IVDSerialise, IBaseObject, IEnumerable
- Inheritance
-
vdTables
- Implements
- Inherited Members
Examples
Basic usage:
//create an instance of document as vDocument
//add a new table in the UserTables collection with name "MyApplicationName" and set some categorized properties in the "MyPropertiesGroup" group.
document.UserTables["MyApplicationName"]["MyPropertiesGroup"]["Property1"] = "value1";
//get the property value
var mypropertyValue = document.UserTables["MyApplicationName"]["MyPropertiesGroup"]["Property1"];
Remarks
Instances of vdTables group related vdTable entries and provide convenience methods to create, find, enumerate and remove tables by name. Each table in the collection holds a set of vdTableRecord entries. Typically this kind of class is reference by UserTables
Constructors
- vdTables()
Initializes the vdTables object.
Properties
- Count
Get the item's count of the collection.
- this[int]
Get a vdTable object from the collection at a specified index.
- this[string]
Get a vdTable object from the collection with the specified name. If an object with the specified name does not exist then it is added to the collection.
- SupportUndoWrite
overrides the SupportUndoWrite. Always return false for this object.
Methods
- Add(object)
Adds an object to the end of the collection.
- Add(string)
Add a vdTable object with the specified name to the collection.
- AddTableRecord(string, string)
This is a helpfull method to easily add a table and also add a vdTableRecord to the added table.
- Contains(string)
Searches the collection for the specified named object.
- DeSerialize(DeSerializer, string, object)
This Function is called foreach field name of the vdTables object when opening in vdml format.
- Dispose()
Releases all resources used by this object.
- Find(string)
Searches the collection for the passed named object.
- GetEnumerator()
Implements the "foreach" expression for the collection.
- GetTableRecord(string, string)
This is a helpfull method to easily access a vdTablerecord of an existing vdTable object of this collection.
- InternalSetOwner(vdBaseObject)
Internally used only.
Set the object owner
- RemoveAll()
Remove all objects from the collection.
- RemoveItem(string)
Removes the vdTable object from the collection with the specified name.
- Serialize(Serializer)
This Function is called when saving the vdTables object to vdml format.
- ToString()
Gets a System.String that represents the count of the vdTables collection Object.