Show / Hide Table of Contents

Interface ICanvas

Interface must be implemented by a view, which is hosted in a CadCanvas

Namespace: CADability
Assembly: CADability.dll
Syntax
public interface ICanvas

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
IFrame Frame { get; }
Property Value
Type Description
IFrame
| Improve this Doc View Source

PaintTo3D

Gets the paint interface to paint the canvas

Declaration
IPaintTo3D PaintTo3D { get; }
Property Value
Type Description
IPaintTo3D

Methods

| Improve this Doc View Source

DoDragDrop(GeoObjectList, DragDropEffects)

Declaration
DragDropEffects DoDragDrop(GeoObjectList dragList, DragDropEffects all)
Parameters
Type Name Description
GeoObjectList dragList
DragDropEffects all
Returns
Type Description
DragDropEffects
| Improve this Doc View Source

GetView()

Returns the view, which is connected with this canvas

Declaration
IView GetView()
Returns
Type Description
IView
| Improve this Doc View Source

Invalidate()

Declaration
void Invalidate()
| 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

ShowToolTip(String)

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>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX