XTextStyle Outline Property. The width of character outlining. ABCpdf .NET PDF Library.

ABCpdf .net

 
   

 

Type Default Read Only Description
[C#] double

[Visual Basic]
Double
0 No The width of character outlining.

 

   

Notes
 

This property determines whether a character outlining style is applied and the weight of the outline.

If the outline property is zero no outlining is done. If the outline property is greater than zero it indicates the width of lines used to outline the text.

 

   

Example
 

In this example we add some text to a document varying the outline style to show how different values affect the final result.

[C#]
Doc theDoc = new Doc();
theDoc.TextStyle.Size = 144;
theDoc.AddText("Outline 0");
theDoc.Rect.Move(0, -300);
theDoc.TextStyle.Outline = 4;
theDoc.AddText("Outline 4");
theDoc.Rect.Move(0, -300);
theDoc.TextStyle.Outline = 10;
theDoc.AddText("Outline 10");
theDoc.Save(Server.MapPath("styleoutline.pdf"));
theDoc.Clear();

[Visual Basic]
Dim theDoc As Doc = New Doc()
theDoc.TextStyle.Size = 144
theDoc.AddText("Outline 0")
theDoc.Rect.Move(0, -300)
theDoc.TextStyle.Outline = 4
theDoc.AddText("Outline 4")
theDoc.Rect.Move(0, -300)
theDoc.TextStyle.Outline = 10
theDoc.AddText("Outline 10")
theDoc.Save(Server.MapPath("styleoutline.pdf"))
theDoc.Clear()


styleoutline.pdf