[]
        
(Showing Draft Content)

C1.C1Preview.RenderGraphics

RenderGraphics Class

Represents a drawing on a .NET Graphics object in a C1PrintDocument.

Inheritance
RenderGraphics
Namespace: C1.C1Preview
Assembly: C1.PrintDocument.4.8.dll
Syntax
public class RenderGraphics : RenderObject, IStyleOwner, IDocumentLocation

Constructors

Name Description
RenderGraphics()

Initializes a new instance of the RenderGraphics class.

Properties

Name Description
EmfType

Gets or sets the type of metafile created by the current RenderGraphics object.

Graphics

Gets the Graphics object to draw on.

GraphicsSizeEqualToObjectSize

Gets or sets value indicating whether size of Graphics object managed by this RenderGraphics same as RenderGraphics size. Set this property to true if you want to create image with exact sizes. If this property is true then Width and Height should be specified as absolute values (10mm, 1inch for example). GraphicsSizeEqualToObjectSize should be specified as true and Width and Height should be specified in absolute units before accessing to Graphics property.

ReferenceGraphics

Gets the reference Graphics used to create the underlying metafile. This property is simply a shortcut to the CreationGraphics property, and returns null if the current RenderGraphics object has not been added to a C1PrintDocument yet.

UseClassicDrawMethod

Gets or sets value indicating whether Graphics.DrawImage(Image, dstRect) method should be used to draw content of object instead of Graphics.DrawImage(Image, dstRect, srcRect, GraphicsUnit). In some rare cases it produces more convient results. Default is false. Set this value to true if problems occurs with drawing RenderGraphics content.

Methods

Name Description
AssignFrom(RenderObject, bool, bool, bool, bool, bool, bool)

Assigns (copies) properties from another RenderObject to the current object. Calls the base AssignFrom(RenderObject, bool, bool, bool, bool, bool, bool) method. If source is a RenderGraphics, also copies RenderGraphics-specific properties.

Clear()

Clears the current RenderGraphics object.

CreateSame()

Creates new empty RenderGraphics object linked with same C1PrintDocument as current object.

ShouldSerializeContent()

Indicates whether the content of the current RenderGraphics object should be serialized (i.e. is not empty).

ShouldSerializeOpenXmlContent()

For internal use.