Table of Contents

Property ActiveTextVerJustify

Namespace
VectorDraw.Professional.vdObjects
Assembly
VectorDraw.Professional.dll

ActiveTextVerJustify

Get/Set the active text VdConstVerJust of the document.

public VdConstVerJust ActiveTextVerJustify { get; set; }

Property Value

VdConstVerJust

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: VdTextVerBaseLine

Raizes the OnBeforeModifyObject event and the OnAfterModifyObject event.