Gets the main (root)
Style of the current document.
Namespace:
C1.C1Preview
Assembly:
C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
Examples
The following example sets the document's TextColor property to Navy and the Font property to Tahoma, 16:
Copy CodeVisual Basic
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
MakeDoc(C1PrintDocument1)
C1PrintDocument1.Generate()
End Sub
Private Sub MakeDoc(ByVal doc As C1.C1Preview.C1PrintDocument)
doc.Style.TextColor = Color.Navy
doc.Style.Font = new Font("Tahoma", 16)
End Sub |
Copy CodeC#
private void Form1_Load(object sender, EventArgs e)
{
MakeDoc(c1PrintDocument1);
c1PrintDocument1.Generate();
}
private void MakeDoc(C1.C1Preview.C1PrintDocument doc)
{
doc.Style.TextColor = Color.Navy;
doc.Style.Font = new Font("Tahoma", 16);
} |
See Also