Class vdTextstyles
- Namespace
- VectorDraw.Professional.vdCollections
- Assembly
- VectorDraw.Professional.dll
Represents a collection of vdTextstyle objects and provides methods and helpers
to manage textstyle tables for a document.
Textstyles are used to define the text font, size and other properties of the text objects of a document, like vdText vdMText and other objects that have in their represantions text objects.
public sealed class vdTextstyles : vdBaseObject, IDisposable, IVDSerialise, IEnumerable, IBaseObject
- Inheritance
-
vdTextstyles
- Implements
- Inherited Members
Examples
see the code example of vdTextstyle class.
Constructors
- vdTextstyles()
Initializes the vdTextstyles collection object.
Properties
- Count
Get the item's count of the collection.
- this[int]
Get a vdTextstyle 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 textstyle for the collection. The standard textstyle uses the reserved name "STANDARD".
If a textstyle 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 vdTextstyle 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 vdTextstyle object to the collection with the specified name.
- AddItem(object)
Adds an object to the collection.
- AddItem(vdTextstyle)
Adds a vdTextstyle object to the collection.
- AddResolveProperty(object, string, string)
Adds the parameters to the resolve list of the collection.
- ChangeOrder(vdTextstyle, bool)
Changes the position of a vdTextstyle 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 vdTextstyles 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 vdTextstyle object.
- FindItem(object)
Checks if an object exists in the collection.
- FindItem(vdTextstyle)
Checks if an object exists in the collection.
- FindName(string)
Finds a vdTextstyle 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 vdTextstyle 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, vdTextstyle)
Insert a vdTextstyle object to a specified index of the collection.
- InsertCopyOf(vdTextstyle)
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 vdTextstyle object.
- MakeIndexDictionary()
Creates an Index of the Dictionary. Internally used to speed up Swap method.
- Purge()
Sets as Deleted all vdTextstyle 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(vdTextstyle)
Removes a specific vdTextstyle 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 vdTextstyles object to vdml format.
- ToString()
Gets a System.String that represents the count of the vdTextstyles collection Object.
- getUniqueTableName(string)
Creates a unique string for use as name to a vdTextstyle object.
- swap(vdTextstyle, vdTextstyle)
Swaps the position between two different vdTextstyle objects existing in the collection.