Gets or sets the Graphics object used when the document is created.
That Graphics is used to calculate text sizes, measure RTF text, and so on.
Namespace:
C1.C1PreviewAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
[XmlIgnoreAttribute] [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)] [BrowsableAttribute(false)] public Graphics CreationGraphics { get; set; } |
Visual Basic |
---|
<XmlIgnoreAttribute> _ <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> _ <BrowsableAttribute(False)> _ Public Property CreationGraphics As Graphics Get Set |
Examples
The following code reduces the document's creation resolution to a 300dpi 33MB image, and is closer to a fine T4 fax resolution:
Copy CodeVisual Basic
C1PrintDocument1.CreationGraphics = C1.C1Preview.C1PrintDocument.CreateGraphicsForDpi(300) |
Copy CodeC#
c1PrintDocument1.CreationGraphics = C1.C1Preview.C1PrintDocument.CreateGraphicsForDpi(300); |