Interface ICanvas
Interface must be implemented by a view, which is hosted in a CadCanvas
Assembly: CADability.dll
Syntax
Properties
|
Improve this Doc
View Source
ClientRectangle
Declaration
Rectangle ClientRectangle { get; }
Property Value
| Type |
Description |
| System.Drawing.Rectangle |
|
|
Improve this Doc
View Source
Cursor
Sets the cursor defined by the provided id
Declaration
string Cursor { get; set; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
Frame
Declaration
Property Value
|
Improve this Doc
View Source
PaintTo3D
Gets the paint interface to paint the canvas
Declaration
IPaintTo3D PaintTo3D { get; }
Property Value
Methods
|
Improve this Doc
View Source
DoDragDrop(GeoObjectList, DragDropEffects)
Declaration
DragDropEffects DoDragDrop(GeoObjectList dragList, DragDropEffects all)
Parameters
Returns
|
Improve this Doc
View Source
GetView()
Returns the view, which is connected with this canvas
Declaration
Returns
|
Improve this Doc
View Source
Invalidate()
Declaration
|
Improve this Doc
View Source
PointToClient(Point)
Declaration
Point PointToClient(Point mousePosition)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
mousePosition |
|
Returns
| Type |
Description |
| System.Drawing.Point |
|
|
Improve this Doc
View Source
ShowContextMenu(MenuWithHandler[], Point, Action<Int32>)
Shows the provided contextMenu at the provided viewPosition on this canvas
Declaration
void ShowContextMenu(MenuWithHandler[] contextMenu, Point viewPosition, Action<int> collapsed = null)
Parameters
| Type |
Name |
Description |
| MenuWithHandler[] |
contextMenu |
|
| System.Drawing.Point |
viewPosition |
|
| System.Action<System.Int32> |
collapsed |
|
|
Improve this Doc
View Source
Show a tooltip with the provided text.
Declaration
void ShowToolTip(string toDisplay)
Parameters
| Type |
Name |
Description |
| System.String |
toDisplay |
the text to show or null to hide the tooltip
|
|
Improve this Doc
View Source
ShowView(IView)
Show the provided view in this canvas.
Declaration
void ShowView(IView toShow)
Parameters
| Type |
Name |
Description |
| IView |
toShow |
|
Events
|
Improve this Doc
View Source
OnPaintDone
Declaration
event Action<ICanvas> OnPaintDone
Event Type
| Type |
Description |
| System.Action<ICanvas> |
|