







JsPropertiesExtractor | Send comments on this topic. |
AttachCanvas Method | |
See Also Example |
![]() |
vdWebLibrary Namespace > vdmanager Class : AttachCanvas Method |
- canvasId
- The id of the HTML canvas object that the web control will draw all its entities.
- width
- Optional.The width of the canvas.If no parameter is used, the default of the selected canvas element width is used.
- height
- Optional.The height of the canvas.If no parameter is used, the default of the selected canvas element height is used.
- bkcolor
- Optional. The color of the canvas after it is attached to the vdWeb library. If no parameter is used, the default color will be used, black. Alpha values are ignored.
JScript | |
---|---|
public function AttachCanvas( canvasId : String, width : int, height : int, bkcolor : Object ) : Object; |
Parameters
- canvasId
- The id of the HTML canvas object that the web control will draw all its entities.
- width
- Optional.The width of the canvas.If no parameter is used, the default of the selected canvas element width is used.
- height
- Optional.The height of the canvas.If no parameter is used, the default of the selected canvas element height is used.
- bkcolor
- Optional. The color of the canvas after it is attached to the vdWeb library. If no parameter is used, the default color will be used, black. Alpha values are ignored.
Return Value
The attached vectordraw control.C# | ![]() |
---|---|
var vdcanvas; |
for completely example