Class ChartSymbolHelper
Represents the methods for creation of symbols geometry.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public static class ChartSymbolHelper
Methods
DrawPointSymbol(Graphics, ChartStyleInfo, Point)
Draws the symbol with specified style at specified location
Declaration
public static void DrawPointSymbol(Graphics g, ChartStyleInfo info, Point location)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | g | Graphics instance |
| ChartStyleInfo | info | Style information for the symbol |
| System.Drawing.Point | location | Location of the symbol |
DrawSymbol(Graphics, ChartSymbolShape, Rectangle, Pen)
Draw ChartSymbolShape.
Declaration
public static void DrawSymbol(Graphics g, ChartSymbolShape symbol, Rectangle bounds, Pen pen)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | g | The System.Drawing.Graphics to render shape. |
| ChartSymbolShape | symbol | The ChartSymbolShape to render. |
| System.Drawing.Rectangle | bounds | The bounds of the shape. |
| System.Drawing.Pen | pen | The System.Drawing.Pen to draw shape. |
FillAndDrawSymbol(Graphics, ChartSymbolShape, Rectangle, Pen, Brush)
Draw filled ChartSymbolShape with its border.
Declaration
public static void FillAndDrawSymbol(Graphics g, ChartSymbolShape symbol, Rectangle bounds, Pen pen, Brush brush)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | g | The System.Drawing.Graphics to render shape. |
| ChartSymbolShape | symbol | The ChartSymbolShape to render. |
| System.Drawing.Rectangle | bounds | The bounds of the shape. |
| System.Drawing.Pen | pen | The System.Drawing.Pen to draw shape border. |
| System.Drawing.Brush | brush | The System.Drawing.Brush to fill symbol. |
FillSymbol(Graphics, ChartSymbolShape, Rectangle, Brush)
Draw filled ChartSymbolShape.
Declaration
public static void FillSymbol(Graphics g, ChartSymbolShape symbol, Rectangle bounds, Brush brush)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | g | The System.Drawing.Graphics to render symbol. |
| ChartSymbolShape | symbol | The symbol to render. |
| System.Drawing.Rectangle | bounds | The bounds to render symbol. |
| System.Drawing.Brush | brush | The System.Drawing.Brush to fill the symbol. |
GetBrushItem(BrushInfo, RectangleF)
Gets the brush for specified BrushInfo instance
Declaration
public static Brush GetBrushItem(BrushInfo info, RectangleF bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| BrushInfo | info | |
| System.Drawing.RectangleF | bounds |
Returns
| Type |
|---|
| System.Drawing.Brush |
GetPathArrow(RectangleF)
Creates Arrow System.Drawing.Drawing2D.GraphicsPath for given rectangle.
Declaration
public static GraphicsPath GetPathArrow(RectangleF bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.RectangleF | bounds | Bounds of the path. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | Arrow path. |
GetPathCircle(RectangleF)
Creates circle path for given rectangle.
Declaration
public static GraphicsPath GetPathCircle(RectangleF bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.RectangleF | bounds | The rectangle to create path. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | Circle path. |
GetPathCross(RectangleF)
Creates cross System.Drawing.Drawing2D.GraphicsPath for given rectangle.
Declaration
public static GraphicsPath GetPathCross(RectangleF bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.RectangleF | bounds | The bounds of the path. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | Cross path. |
GetPathDiamond(RectangleF)
Creates diamond path for given rectangle.
Declaration
public static GraphicsPath GetPathDiamond(RectangleF bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.RectangleF | bounds | The rectangle to create diamond path. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | Diamond path. |
GetPathHexagon(RectangleF)
Creates hexagon System.Drawing.Drawing2D.GraphicsPath for given rectangle.
Declaration
public static GraphicsPath GetPathHexagon(RectangleF bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.RectangleF | bounds | The bounds of the hexagon path. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | Hexagon path. |
GetPathHorizLine(RectangleF)
Creates horizontal line System.Drawing.Drawing2D.GraphicsPath for given rectangle.
Declaration
public static GraphicsPath GetPathHorizLine(RectangleF bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.RectangleF | bounds | The bounds of the path. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | Horizontal line path. |
GetPathInvertedArrow(RectangleF)
Creates inverted arrow System.Drawing.Drawing2D.GraphicsPath for given rectangle.
Declaration
public static GraphicsPath GetPathInvertedArrow(RectangleF bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.RectangleF | bounds | Bounds of the path. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | Inverted arrow path. |
GetPathInvertedTriangle(RectangleF)
Creates inverted triangle System.Drawing.Drawing2D.GraphicsPath for given rectangle.
Declaration
public static GraphicsPath GetPathInvertedTriangle(RectangleF bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.RectangleF | bounds | Bounds of the path. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | Inverted triangle path. |
GetPathPentagon(RectangleF)
Creates pentagon System.Drawing.Drawing2D.GraphicsPath for given rectangle.
Declaration
public static GraphicsPath GetPathPentagon(RectangleF bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.RectangleF | bounds | The bounds of the path. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | Pentagon path. |
GetPathSquare(RectangleF)
Creates square System.Drawing.Drawing2D.GraphicsPath for given rectangle.
Declaration
public static GraphicsPath GetPathSquare(RectangleF bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.RectangleF | bounds | The rectangle to create path. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | Square path. |
GetPathStar(RectangleF)
Creates star System.Drawing.Drawing2D.GraphicsPath for given rectangle.
Declaration
public static GraphicsPath GetPathStar(RectangleF bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.RectangleF | bounds | The bounds of the path. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | Star path. |
GetPathSymbol(ChartSymbolShape, Rectangle)
Creates symbol path for given shape.
Declaration
public static GraphicsPath GetPathSymbol(ChartSymbolShape symbol, Rectangle bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| ChartSymbolShape | symbol | |
| System.Drawing.Rectangle | bounds |
Returns
| Type |
|---|
| System.Drawing.Drawing2D.GraphicsPath |
GetPathTriangle(RectangleF)
Creates triangle System.Drawing.Drawing2D.GraphicsPath for given rectangle.
Declaration
public static GraphicsPath GetPathTriangle(RectangleF bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.RectangleF | bounds | The bounds of the path. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | Triangle path. |
GetPathVertLine(RectangleF)
Creates vertical line System.Drawing.Drawing2D.GraphicsPath for given rectangle.
Declaration
public static GraphicsPath GetPathVertLine(RectangleF bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.RectangleF | bounds | The bounds of the path. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | Vertical line path. |