Class vdTextstyle
- Namespace
- VectorDraw.Professional.vdPrimaries
- Assembly
- VectorDraw.Professional.dll
Represents a specific set parameters such as FontFile, Height, etc. used to display vdText and vdMText entities. Instances of vdTextstyle are intended to be stored in a document's vdTextstyles table and referenced by text entities.
public sealed class vdTextstyle : vdPrimary, IDisposable, IVDSerialise, IBaseObject, IComparable
- Inheritance
-
vdTextstyle
- Implements
- Inherited Members
Examples
Example: Add a new textstyle and a new text that referencing this style
vdTextstyle textstyle = document.TextStyles.Add("MyTextStyle");
textstyle.FontFile = "Arial";
vdText text = new vdText(document, "VectorDraw", new gPoint(0, 0, 0), 1.0);
text.Style = textstyle;
document.Model.Entities.AddItem(text);
document.Redraw(false);
Constructors
- vdTextstyle()
Initializes the vdTextstyle object.
- vdTextstyle(vdDocument)
Initializes the vdTextstyle object and registers it to the passed Document.
- vdTextstyle(vdDocument, string)
Initializes the vdTextstyle object and registers it to the passed Document.
Properties
- BackGroundMask
Get/Set a boolean value that represents if the backgroundmask color will be used.
- BackGroundMaskBorderColor
Get/Set the vdColor that the border of the mtext will be drawn.
- BackGroundMaskBorderPenWidth
Get/Set the object's backgroundMaskBorder pen width in drawing units.
- BackGroundMaskColor
Get/Set the vdColor that will fill the box of the mtext.
- BackGroundMaskOffset
Get/Set the object's backgroundMask offset.
- BackgroundMaskBorder
Get/Set a boolean value that represents if the BackgroundMaskBorder color will be used.
- BigFontFile
Get/Set the Big font file of the textstyle.
- CodePage
Get/Set the CodePage used from this Textstyle.If this property has value "DrawingDefault" then the Textstyle gets the Document's codepage.
- Deleted
Get/Set a property that marks the object as Deleted or not.
- DrawOutline
Get/Set if the DrawOutline property is enabled.
- Extra
Get/Set some extra drawing properties for the textstyle.
- Flag
Get/Set extra draw properties for the textstyle.
- FontFile
Get/Set the font file of the textstyle.
- GrTextStyle
Get the geometrical information of the Textstyle's font file.
- Height
Get/Set the Height for the textstyle.
- IsOverLine
Get/Set if the IsOverLine property is enabled.
- IsStrikeOut
Get/Set if the IsStrikeOut property is enabled.
- IsUnderLine
Get/Set if the IsUnderLine property is enabled.
- Name
Get/Set the name of the textstyle.
- ObliqueAngle
Oblique angle for all text in this style in degrees.
- VisibleOnForms
Get/Set a boolean value representing if the vdTextstyle will be viewed in Vectordraw forms.
- WidthFactor
Get/Set a value used to stretch the vdText object by changing it's width.
Methods
- CompareTo(object)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
- DeSerialize(DeSerializer, string, object)
This Function is called foreach field name of the vdTextstyle object when opening in vdml format.
- Dispose()
Disposes the object.
- GetCompareHashCode()
Returns a 32-bit signed integer hash code for this object instance.
- GetTableDependecies(vdTableDependeciesArgs)
Fills the passed vdTableDependeciesArgs args with all the table references of this object (vdLayer, vdBlock, vdDimstyle, vdLineType, vdTextstyle, vdImageDef, vdHatchPattern etc).
- InitializeProperties()
Resets the properties of the vdTextstyle object to the Default values.
- MatchProperties(vdPrimary, vdDocument)
Matches all the common properties from an object and sets them to this object.
- OnOwnerChanged()
Overrides the OnOwnerChanged()
- Serialize(Serializer)
This Function is called when saving the vdTextstyle object to vdml format.
- ToString()
Gets a System.String that represents the name of the vdTextstyle Object.
- Update()
Updates the object after change of properties.