Property ActiveTextHorJustify
- Namespace
- VectorDraw.Professional.vdObjects
- Assembly
- VectorDraw.Professional.dll
ActiveTextHorJustify
Get/Set the active text VdConstHorJust of the document.
public VdConstHorJust ActiveTextHorJustify { get; set; }
Property Value
Examples
Changes the ActiveTextHorJustify and ActiveTextVerJustify to be VdConstVerJust.VdTextVerCen and VdConstVerJust.VdTextVerCen
doc.ActiveTextHorJustify = VectorDraw.Professional.Constants.VdConstHorJust.VdTextHorCenter;
doc.ActiveTextVerJustify = VectorDraw.Professional.Constants.VdConstVerJust.VdTextVerCen;
//Create a new vdText entity
vdText txt = new vdText();
//select the document that the text is reference to.
txt.SetUnRegisterDocument(doc);
//select the default active properties of the document object for the entity
txt.setDocumentDefaults();
txt.TextString = "CenterJustificationExample";
Console.WriteLine(txt.HorJustify.ToString() + "," + txt.VerJustify.ToString());// output will be "VdTextHorCenter,VdTextVerCen"
//add the text into default layout entities
doc.Model.Entities.AddItem(txt);
//Invalidates the object's Bounding Box and causes the rendering control window to be redrawn in this region.
txt.Invalidate();
Remarks
This property is used when setDocumentDefaults() is called from vdText and vdMText entities.
Default value: VdTextHorLeft
Raizes the OnBeforeModifyObject event and the OnAfterModifyObject event.