In this example we add some underlined text to a document.
[C#]
Doc theDoc = new Doc();
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.Underline = true;
theDoc.AddText(theText);
theDoc.Save(Server.MapPath("styleunderline.pdf"));
theDoc.Clear();
[Visual Basic]
Dim theDoc As Doc = New Doc()
Dim theText As String = "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.Underline = True
theDoc.AddText(theText)
theDoc.Save(Server.MapPath("styleunderline.pdf"))
theDoc.Clear()
styleunderline.pdf
|
|
|