Class ChartGraph
The ChartGraph class provides methods for drawing primitives to the chart.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public abstract class ChartGraph
Constructors
ChartGraph()
Declaration
protected ChartGraph()
Properties
isRight
Used to render some specific ChartArea if it is true.
Declaration
public bool isRight { get; set; }
Property Value
Type |
---|
System.Boolean |
SmoothingMode
Gets or sets the SmoothingMode.
Declaration
public abstract SmoothingMode SmoothingMode { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Drawing2D.SmoothingMode | The SmoothingMode. |
Transform
Gets or sets the transform.
Declaration
public abstract Matrix Transform { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Drawing2D.Matrix | The transform. |
Methods
DrawEllipse(BrushInfo, Pen, Single, Single, Single, Single)
Draws the ellipse.
Declaration
public void DrawEllipse(BrushInfo brushInfo, Pen pen, float x, float y, float width, float height)
Parameters
Type | Name | Description |
---|---|---|
BrushInfo | brushInfo | The BrushInfo. |
System.Drawing.Pen | pen | The System.Drawing.Pen. |
System.Single | x | The x. |
System.Single | y | The y. |
System.Single | width | The width. |
System.Single | height | The height. |
DrawEllipse(Brush, Pen, Single, Single, Single, Single)
Draws the ellipse.
Declaration
public abstract void DrawEllipse(Brush brush, Pen pen, float x, float y, float width, float height)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Brush | brush | The System.Drawing.Brush. |
System.Drawing.Pen | pen | The System.Drawing.Pen. |
System.Single | x | The x. |
System.Single | y | The y. |
System.Single | width | The width. |
System.Single | height | The height. |
DrawImage(Image, RectangleF)
Draws the image.
Declaration
public void DrawImage(Image image, RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image | image | The image. |
System.Drawing.RectangleF | rect | The bounds of image. |
DrawImage(Image, Single, Single, Single, Single)
Draws the image.
Declaration
public abstract void DrawImage(Image image, float x, float y, float width, float height)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image | image | The System.Drawing.Image. |
System.Single | x | The x. |
System.Single | y | The y. |
System.Single | width | The width. |
System.Single | height | The height. |
DrawLine(Pen, PointF, PointF)
Draws the line.
Declaration
public void DrawLine(Pen pen, PointF pt1, PointF pt2)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Pen | pen | The System.Drawing.Pen. |
System.Drawing.PointF | pt1 | The start point. |
System.Drawing.PointF | pt2 | The end point. |
DrawLine(Pen, Single, Single, Single, Single)
Draws the line.
Declaration
public abstract void DrawLine(Pen pen, float x1, float y1, float x2, float y2)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Pen | pen | The System.Drawing.Pen. |
System.Single | x1 | The x1. |
System.Single | y1 | The y1. |
System.Single | x2 | The x2. |
System.Single | y2 | The y2. |
DrawPath(BrushInfo, Pen, GraphicsPath)
Draws the specified System.Drawing.Drawing2D.GraphicsPath.
Declaration
public void DrawPath(BrushInfo brushInfo, Pen pen, GraphicsPath path)
Parameters
Type | Name | Description |
---|---|---|
BrushInfo | brushInfo | The BrushInfo. |
System.Drawing.Pen | pen | The System.Drawing.Pen. |
System.Drawing.Drawing2D.GraphicsPath | path | The System.Drawing.Drawing2D.GraphicsPath. |
DrawPath(Brush, Pen, GraphicsPath)
Draws the path.
Declaration
public abstract void DrawPath(Brush brush, Pen pen, GraphicsPath path)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Brush | brush | The System.Drawing.Brush. |
System.Drawing.Pen | pen | The System.Drawing.Pen. |
System.Drawing.Drawing2D.GraphicsPath | path | The System.Drawing.Drawing2D.GraphicsPath. |
DrawPath(Pen, GraphicsPath)
Draws the specified System.Drawing.Drawing2D.GraphicsPath.
Declaration
public void DrawPath(Pen pen, GraphicsPath path)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Pen | pen | The System.Drawing.Pen. |
System.Drawing.Drawing2D.GraphicsPath | path | The System.Drawing.Drawing2D.GraphicsPath. |
DrawPolygon(Pen, PointF[])
Draws the polygon.
Declaration
public abstract void DrawPolygon(Pen pen, PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Pen | pen | The System.Drawing.Pen. |
System.Drawing.PointF[] | points | The points. |
DrawPolyline(Pen, PointF[])
Draws the polyline.
Declaration
public abstract void DrawPolyline(Pen pen, PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Pen | pen | The System.Drawing.Pen. |
System.Drawing.PointF[] | points | The points. |
DrawRect(BrushInfo, Pen, RectangleF)
Draws the rectangle.
Declaration
public void DrawRect(BrushInfo brushInfo, Pen pen, RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
BrushInfo | brushInfo | The BrushInfo. |
System.Drawing.Pen | pen | The System.Drawing.Pen. |
System.Drawing.RectangleF | rect | The rectangle. |
DrawRect(BrushInfo, Pen, Single, Single, Single, Single)
Draws the rectangle.
Declaration
public void DrawRect(BrushInfo brushInfo, Pen pen, float x, float y, float width, float height)
Parameters
Type | Name | Description |
---|---|---|
BrushInfo | brushInfo | The BrushInfo. |
System.Drawing.Pen | pen | The System.Drawing.Pen. |
System.Single | x | The x. |
System.Single | y | The y. |
System.Single | width | The width. |
System.Single | height | The height. |
DrawRect(Brush, Pen, RectangleF)
Draws the rectangle.
Declaration
public void DrawRect(Brush brush, Pen pen, RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Brush | brush | The System.Drawing.Brush. |
System.Drawing.Pen | pen | The System.Drawing.Pen. |
System.Drawing.RectangleF | rect | The rectangle. |
DrawRect(Brush, Pen, Single, Single, Single, Single)
Draws the rectangle.
Declaration
public abstract void DrawRect(Brush brush, Pen pen, float x, float y, float width, float height)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Brush | brush | The System.Drawing.Brush. |
System.Drawing.Pen | pen | The System.Drawing.Pen. |
System.Single | x | The x. |
System.Single | y | The y. |
System.Single | width | The width. |
System.Single | height | The height. |
DrawRect(Pen, RectangleF)
Draws the rectangle.
Declaration
public void DrawRect(Pen pen, RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Pen | pen | The System.Drawing.Pen. |
System.Drawing.RectangleF | rect | The rectangle. |
DrawString(String, Font, Brush, PointF, StringFormat)
Draws the string.
Declaration
public abstract void DrawString(string text, Font font, Brush brush, PointF location, StringFormat stringformat)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text. |
System.Drawing.Font | font | The font. |
System.Drawing.Brush | brush | The brush. |
System.Drawing.PointF | location | The location. |
System.Drawing.StringFormat | stringformat | The stringformat. |
DrawString(String, Font, Brush, RectangleF)
Draws the string.
Declaration
public abstract void DrawString(string text, Font font, Brush brush, RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text. |
System.Drawing.Font | font | The font. |
System.Drawing.Brush | brush | The brush. |
System.Drawing.RectangleF | rect | The rect. |
DrawString(String, Font, Brush, RectangleF, StringFormat)
Draws the string.
Declaration
public abstract void DrawString(string text, Font font, Brush brush, RectangleF rect, StringFormat stringformat)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text. |
System.Drawing.Font | font | The font. |
System.Drawing.Brush | brush | The brush. |
System.Drawing.RectangleF | rect | The rectangle. |
System.Drawing.StringFormat | stringformat | The stringformat. |
FillPolygon(SolidBrush, PointF[])
Fill the polygon.
Declaration
public abstract void FillPolygon(SolidBrush brush, PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.SolidBrush | brush | |
System.Drawing.PointF[] | points | The points. |
GetBrushItem(BrushInfo, RectangleF)
Gets the brush item.
Declaration
public static Brush GetBrushItem(BrushInfo brushInfo, RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
BrushInfo | brushInfo | The brush info. |
System.Drawing.RectangleF | bounds | The bounds. |
Returns
Type |
---|
System.Drawing.Brush |
MeasureString(String, Font)
Measures the specified string.
Declaration
public abstract SizeF MeasureString(string text, Font font)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text. |
System.Drawing.Font | font | The font. |
Returns
Type | Description |
---|---|
System.Drawing.SizeF | Returns the size of the Text. |
MeasureString(String, Font, SizeF, StringFormat)
Measures the specified string.
Declaration
public abstract SizeF MeasureString(string text, Font font, SizeF layoutArea, StringFormat stringFormat)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text. |
System.Drawing.Font | font | The font. |
System.Drawing.SizeF | layoutArea | The layout area. |
System.Drawing.StringFormat | stringFormat | The string format. |
Returns
Type |
---|
System.Drawing.SizeF |
MeasureString(String, Font, Single)
Measures the specified string.
Declaration
public abstract SizeF MeasureString(string text, Font font, float maxWidth)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text. |
System.Drawing.Font | font | The font. |
System.Single | maxWidth | Maximal width of row. |
Returns
Type | Description |
---|---|
System.Drawing.SizeF | Returns the size of the Text. |
MeasureString(String, Font, Single, StringFormat)
Measures the specified string.
Declaration
public abstract SizeF MeasureString(string text, Font font, float maxWidth, StringFormat stringFormat)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text. |
System.Drawing.Font | font | The font. |
System.Single | maxWidth | Width of the max. |
System.Drawing.StringFormat | stringFormat | The string format. |
Returns
Type |
---|
System.Drawing.SizeF |
MultiplyTransform(Matrix)
Multiplies the transform.
Declaration
public void MultiplyTransform(Matrix matrix)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Drawing2D.Matrix | matrix | The matrix. |
PopTransform()
Pops the transform from the stack.
Declaration
public void PopTransform()
PushTranfsorm()
Pushes the transform to the stack.
Declaration
[Obsolete("Use PushTransform()")]
public void PushTranfsorm()
PushTransform()
Pushes the transform to the stack.
Declaration
public void PushTransform()
Translate(SizeF)
Translates the specified offset.
Declaration
public void Translate(SizeF offset)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.SizeF | offset | The offset. |