[]
        
(Showing Draft Content)

GrapeCity.Drawing.IDrawingContext

IDrawingContext Interface

Describes visual content using draw commands.

Namespace: GrapeCity.Drawing
Assembly: GrapeCity.Spreadsheet.dll
Syntax
public interface IDrawingContext
Public Interface IDrawingContext

Properties

Name Description
AntiAlias

Gets or sets a value indicating whether the anti-aliasing technique is used.

Cacheable

Gets or sets a value indicating whether the painting result should be cached.

DefaultFont

Gets or sets a font value that represents the active font.

DpiX

Gets the horizontal resolution (dots per inch) of this drawing context.

DpiY

Gets the vertical resolution (dots per inch) of this drawing context.

Effectless

Gets or sets a value that indicates whether the picture will be ignore painting effects.

GroupBrush

Current group brush

IsMeasuring

Gets a boolean value indicates whether the process is measuring.

IsPrinting

Gets a boolean value indicates whether the process is printing.

RetainedGraphicsMode

Gets the value that indicates the graphics mode will be retained or not.

RightToLeft

Gets or sets a value that indicates whether the drawing object was painted RTL.

ShowColor

Gets or sets a value that indicates whether to show the color.

Stateless

Gets or sets a boolean value indicating whether the painting process ignores state of controls.

Workbook

Gets the context workbook.

ZoomScale

Gets or sets the zoom magnification for current view representing percent values.

Methods

Name Description
CreateVisualShape(IShape, Size)

Prepare the visual element.

Dispose()

Disposes this instance.

DrawBorder(BorderLine, double, double, double, double)

Draws a border between the specified points using the specified BorderLine.

DrawCamera(ICamera, int, int)

Draws the camera object.

DrawCheckBox(Rectangle, ControlState, CheckState)

Draws a 3D checkbox in the specific rectangle.

DrawEffects(IVisualShape, Rectangle)

Draw the effects of the GrapeCity.Drawing.IVisualShape.

DrawEllipse(Brush, Pen, Point, double, double)

Draws an ellipse with the specified Brush and Pen.

DrawFocusRectangle(Rectangle)

Draw focus rectangle

DrawIcon(BuiltInIcons, Rectangle, RectAlignment, Filter[])

Draws the built-in icon.

DrawLine(Pen, Point, Point)

Draws a line between the specified points using the specified Pen.

DrawLine(Pen, double, double, double, double)

Draws a line between the specified points using the specified BorderLine.

DrawOptionButton(Rectangle, ControlState, bool)

Draw a option button.

DrawRectangle(Brush, Pen, Rectangle)

Draws a rectangle with the specified Brush and Pen. The pen and the brush can be null.

DrawRoundedRectangle(Brush, Pen, Rectangle, double, double)

Draws a rounded rectangle with the specified Brush and Pen.

DrawSparkline(ISparkline, int, int, int, int)

Draws the sparkline

DrawText(TextDocument, Rectangle)

Draws the specified text string in the specified rectangle with the specified Brush and GrapeCity.Spreadsheet.Font objects.

DrawText(RichText, Rectangle, DrawingTextFormat)

Draws the specified text string in the specified rectangle with the specified Brush and GrapeCity.Spreadsheet.Font objects.

DrawText(string, Font, Rectangle, DrawingTextFormat, double)

Draws the specified text string in the specified rectangle with the specified Brush and GrapeCity.Spreadsheet.Font objects.

DrawVisualShape(IVisualShape, Rectangle)

Draws the specified GrapeCity.Drawing.IVisualShape object.

GetAutoMargins(Font)

Gets the height of text line with the specific font.

GetAutoNumberFormatText(object, double, TextFormat)

Gets the displayed text of a numeric value that fits to the specified width.

IntersectClip(Rectangle)

Sets a rectangle that limits the drawing region of this drawing context.

IsCompatible(IVisualShape)

Gets a boolean value indicating whether the visualElement can be painted by this drawing context natively.

MeasureText(TextDocument, TextFormat, Size)

Measure the displayed size of rich text in context.

MeasureText(RichText, Font, Size, bool)

Measure the displayed size of rich text in context.

MeasureText(string, Font, Size, DrawingTextFormat, double)

Measure the size of a string in the context.

MeasureVisualShape(IVisualShape)

Measures the boundary of the specified GrapeCity.Drawing.IVisualShape object.

RestoreClip(object)

Restores the clip.

ShouldPaintChildren(IVisualShape)

Should paint the children of the geometryDrawing or not.