Name | Description | |
---|---|---|
NCanvas Constructor | Creates a new canvas associated with the specified drawing document |
The following tables list the members exposed by NCanvas.
Name | Description | |
---|---|---|
NCanvas Constructor | Creates a new canvas associated with the specified drawing document |
Name | Description | |
---|---|---|
BackColor | Gets/sets the background color of the canvas (used to clear the canvas drawing surface) | |
Document | Gets/sets the drawing document associated with the canvas | |
DocumentPadding | Gets/sets the padding applied to the document bounds (in document measurement unit) | |
GlobalVisibility | Gets/sets the global visibility settings which this canvas must use | |
GraphicsSettings | Gets/sets the graphics settings of the canvas | |
Layout | Gets/sets the canvas layout | |
PageScale | Gets the scaling of world units to pixels | |
Resolution | Gets/sets the canvas resolution | |
ScaleX | Gets/sets the world to view X scale | |
ScaleY | Gets/sets the world to view Y scale | |
SceneScaleToDeviceX | Gets the X scaling of document scene units to pixels | |
SceneScaleToDeviceY | Gets the Y scaling of document scene units to pixels | |
SceneToDevice | Gets the Scene to Device transformation | |
SceneToWorld | Gets the Scene to World transformation | |
Size | Gets/sets the size of the canvas (in pixels) | |
Viewport | Gets the document viewport | |
ViewportOrigin | Gets/sets the document viewport origin | |
ViewportSize | Gets the document viewport size | |
Window | Gets the document window | |
WindowMargins | Gets/sets the window margins. The window margins deflate the window relative to the canvas size. | |
WindowOrigin | Gets the document window origin | |
WindowSize | Gets the document window size | |
WorldToDevice | Gets the World to Device transformation | |
WorldToView | Gets the World to View transformation |
Name | Description | |
---|---|---|
ComputeSceneBounds | Computes the total scene bounds, by appling a padding to the document bounds (in scene coordinates) | |
Dispose | ||
DoLayout | Overloaded. Performs the specified canvas layout | |
Fit | Fits the document inside the window (preserves the document aspect ratio) | |
Paint | Paints the document to the specified device | |
RenderToGraphics | Renders the chart in the specified graphics | |
SizeToDocument | Resizes the canvas to fit the unscaled document bounds | |
SizeToViewport | Resizes the canvas to fit the specified document viewport | |
Stretch | Stretches the document to fill the entire window (breaks the document aspect ratio) | |
StretchToHeight | Proportionally scales the document so that its height is equal to the window height (preserves the document aspect ratio) | |
StretchToWidth | Proportionally scales the document so that its height is equal to the window height (preserves the document aspect ratio) |
Name | Description | |
---|---|---|
ComputeViewportSize | Computes the vieport size corresponding to the specified window size | |
CreatePaintContext | Creates a new paint context attached to the specified device |