Property AltTTFFont
- Namespace
- VectorDraw.Professional.vdObjects
- Assembly
- VectorDraw.Professional.dll
AltTTFFont
Return or set the default Font that is used for style names when a vdTextstyle object first created.
public Font AltTTFFont { get; set; }
Property Value
Examples
Changes the AltTTFFont and create a new vdTextstyle that its FontFile property have this value.
//Changes the AltTTFFont to Verdana TrueTypeFont with Bold and Italic characters.
doc.AltTTFFont = new Font("Verdana",15.0f, FontStyle.Bold | FontStyle.Italic) ;
//Add a new text style object.
vdTextstyle txtstyle = doc.TextStyles.Add("MyNewTextStyle");
//select the default active properties of the document object for the style object
txtstyle.setDocumentDefaults();
//the created text style have FontFile name "Verdana"
Console.WriteLine(txtstyle.FontFile + "," + txtstyle.Extra.ToString());// output will be "Verdana,None,21,True,False"
Remarks
Default value is Arial TrueTypeFont