XTextStyle Italic Property. Whether to apply a synthetic italic effect. ABCpdf .NET PDF Library.

ABCpdf .net

 
   

 

Type Default Read Only Description
[C#] bool

[Visual Basic]
Boolean
false No Whether to apply a synthetic italic effect.

 

   

Notes
 

This property determines whether a synthetic italic effect is applied to text.

It is generally better to specify an italic typeface rather than synthesize an italic effect using the current typeface. However, under some circumstances this may not be possible and you may prefer to apply a synthetic italic effect.

 

   

Example
 

In this example we add some italic text to a document.

[C#]
Doc theDoc = new Doc();
string theText;
theText = "Gallia est omnis divisa in partes tres, quarum unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli appellantur.";
theDoc.Rect.Inset(20, 40);
theDoc.TextStyle.Size = 96;
theDoc.TextStyle.Italic = true;
theDoc.AddText(theText);
theDoc.Save(Server.MapPath("styleitalic.pdf"));
theDoc.Clear();

[Visual Basic]
Dim theDoc As Doc = New Doc()
Dim theText As String
theText = "Gallia est omnis divisa in partes tres, quarum unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli appellantur."
theDoc.Rect.Inset(20, 40)
theDoc.TextStyle.Size = 96
theDoc.TextStyle.Italic = True
theDoc.AddText(theText)
theDoc.Save(Server.MapPath("styleitalic.pdf"))
theDoc.Clear()


styleitalic.pdf