Interface ICanvas
Interface publishes Canvas functionality
Inherited Members
Namespace: Syncfusion.DLS
Assembly: Syncfusion.DLS.Base.dll
Syntax
public interface ICanvas : IParagraphItem, IEntityBase
Properties
BorderColor
Gets/sets border color.
Declaration
Color BorderColor { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Color |
Height
Gets/sets height of canvas.
Declaration
float Height { get; set; }
Property Value
| Type |
|---|
| System.Single |
Shapes
Gets shapes of the canvas.
Declaration
ShapeCollection Shapes { get; }
Property Value
| Type |
|---|
| ShapeCollection |
Size
Gets / sets size of the canvas.
Declaration
SizeF Size { get; set; }
Property Value
| Type |
|---|
| System.Drawing.SizeF |
Width
Gets/sets width of the border.
Declaration
float Width { get; set; }
Property Value
| Type |
|---|
| System.Single |
Methods
AddArc()
Creates Arc shape and adds it to collection.
Declaration
ArcShape AddArc()
Returns
| Type | Description |
|---|---|
| ArcShape | Created Arc shape. |
Remarks
You have to set coordinates of this shape to corrrectly display this shape on the canvas.
AddBezier()
Creates Bezier curve shape and adds it to collection.
Declaration
BezierShape AddBezier()
Returns
| Type | Description |
|---|---|
| BezierShape | Created Bezier curve shape. |
Remarks
You have to set coordinates of this shape to corrrectly display this shape on the canvas.
AddEllipse()
Creates Ellipse shape and adds it to collection.
Declaration
EllipseShape AddEllipse()
Returns
| Type | Description |
|---|---|
| EllipseShape | Created Ellipse shape. |
Remarks
You have to set coordinates of this shape to corrrectly display this shape on the canvas.
AddImage(Image)
Creates Image shape and adds it to collection.
Declaration
ImageShape AddImage(Image image)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Image | image | Image object. |
Returns
| Type | Description |
|---|---|
| ImageShape | Created Image shape. |
Remarks
You have to set coordinates of this shape to corrrectly display this shape on the canvas.
AddLine()
Creates Line shape and adds it to collection.
Declaration
LineShape AddLine()
Returns
| Type | Description |
|---|---|
| LineShape | Created Line shape. |
Remarks
You have to set coordinates of this shape to corrrectly display this shape on the canvas.
AddPath()
Creates Path shape and adds it to collection.
Declaration
PathShape AddPath()
Returns
| Type | Description |
|---|---|
| PathShape | Created Path shape. |
Remarks
You have to set coordinates of this shape to corrrectly display this shape on the canvas.
AddPie()
Creates Pie shape and adds it to collection.
Declaration
PieShape AddPie()
Returns
| Type | Description |
|---|---|
| PieShape | Created Pie shape. |
Remarks
You have to set coordinates of this shape to corrrectly display this shape on the canvas.
AddPolygon()
Creates Polygon shape and adds it to collection.
Declaration
PolygonShape AddPolygon()
Returns
| Type | Description |
|---|---|
| PolygonShape | Created Polygon shape. |
Remarks
You have to set coordinates of this shape to corrrectly display this shape on the canvas.
AddRectangle()
Creates Rectangle shape and adds it to collection.
Declaration
RectangleShape AddRectangle()
Returns
| Type | Description |
|---|---|
| RectangleShape | Created Rectangle shape. |
Remarks
You have to set coordinates of this shape to corrrectly display this shape on the canvas.
AddShape(ShapeType)
Creates shape object by it's type and adds it to collection.
Declaration
Shape AddShape(ShapeType shapeType)
Parameters
| Type | Name | Description |
|---|---|---|
| ShapeType | shapeType |
Returns
| Type | Description |
|---|---|
| Shape | Created shape object. |
Remarks
You have to set coordinates of this shape to corrrectly display this shape on the canvas.
AddText(String)
Creates Text shape and adds it to collection.
Declaration
TextShape AddText(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text | Text data of the shape. |
Returns
| Type | Description |
|---|---|
| TextShape | Created Text shape. |
Remarks
You have to set coordinates of this shape to corrrectly display this shape on the canvas.