This documentation is for the old version. Go to the latest Graphics Mill docs

Canvas Members

The Canvas type exposes the following members.

Constructors

Name Description
Public method Canvas

Creates and initializes an instance of the Canvas class.

Methods

Name Description
Protected method AddedControl (Inherited from Control.)
Protected method AddParsedSubObject (Inherited from Control.)
Public method ApplyStyleSheetSkin (Inherited from Control.)
Protected method BuildProfileTree (Inherited from Control.)
Public method Clear

Clears all the LayerCollection instances associated with this canvas.

Protected method ClearChildControlState (Inherited from Control.)
Protected method ClearChildState (Inherited from Control.)
Protected method ClearChildViewState (Inherited from Control.)
Protected method CreateChildControls (Inherited from Control.)
Protected method CreateControlCollection (Inherited from HtmlControl.)
Public method DataBind Overloaded.
Protected method DataBindChildren (Inherited from Control.)
Public method Deserialize

Deserializes the canvas and its layers.

Public method Dispose (Inherited from Control.)
Protected method EnsureChildControls (Inherited from Control.)
Protected method EnsureID (Inherited from Control.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method FindControl Overloaded.
Public method Focus (Inherited from Control.)
Protected method GetAttribute (Inherited from HtmlControl.)
Protected method GetDesignModeState (Inherited from Control.)
Public method GetHashCode (Inherited from Object.)
Protected method GetScriptDescriptors

Returns a list of components, behaviors, and client controls that are required for the client-side functionality of the Canvas.

Protected method GetScriptReferences

Returns script files for the Canvas.

Public method GetType (Inherited from Object.)
Public method HasControls (Inherited from Control.)
Protected method HasEvents (Inherited from Control.)
Protected method IsLiteralContent (Inherited from Control.)
Protected method LoadControlState (Inherited from Control.)
Public method LoadPostData

Processes post back data for the Canvas. No need to use this method explicitly.

Protected method LoadViewState (Inherited from Control.)
Protected method MapPathSecure (Inherited from Control.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnBubbleEvent (Inherited from Control.)
Protected method OnDataBinding (Inherited from Control.)
Protected method OnLoad (Inherited from Control.)
Protected method OnUnload (Inherited from Control.)
Public method OnZoomChanged

Raises the ZoomChanged event.

Protected method OpenFile (Inherited from Control.)
Protected method RaiseBubbleEvent (Inherited from Control.)
Public method RaisePostDataChangedEvent

Signals the server control object to notify the ASP.NET application that the state of the control has changed. No need to use this method explicitly.

Protected method RemovedControl (Inherited from Control.)
Protected method RenderAttributes (Inherited from HtmlControl.)
Protected method RenderBeginTag (Inherited from HtmlControl.)
Protected method RenderChildren (Inherited from Control.)
Public method RenderControl Overloaded.
Public method RenderWorkspace

Renders all v-object in the workspace into a raster image with the specified resolution and color space.

Protected method ResolveAdapter (Inherited from Control.)
Public method ResolveClientUrl (Inherited from Control.)
Public method ResolveUrl (Inherited from Control.)
Protected method SaveControlState (Inherited from Control.)
Protected method SaveViewState (Inherited from Control.)
Public method Serialize

Serializes the canvas and its layers.

Protected method SetAttribute (Inherited from HtmlControl.)
Protected method SetDesignModeState (Inherited from Control.)
Public method SetRenderMethodDelegate (Inherited from Control.)
Public method ToString (Inherited from Object.)
Protected method TrackViewState (Inherited from Control.)

Properties

Name Description
Protected property Adapter (Inherited from Control.)
Public property AppRelativeTemplateSourceDirectory (Inherited from Control.)
Public property Attributes (Inherited from HtmlControl.)
Public property BindingContainer (Inherited from Control.)
Public property CanvasClientSideOptions

Gets or sets value which configures callback for the CurrentVObjectChanged event.

Protected property ChildControlsCreated (Inherited from Control.)
Public property ClientID (Inherited from Control.)
Protected property ClientIDSeparator (Inherited from Control.)
Public property CmykColorProfile

Gets or sets a CMYK color profile used to render the workspace.

Public property ConstrainedMarginEnabled

Gets or sets the value indicating whether it is possible to move v-objects beyond the bounds of the canvas.

Protected property Context (Inherited from Control.)
Public property Controls (Inherited from Control.)
Public property CurrentLayer

Gets the currently selected layer.

Public property CurrentLayerIndex

Gets or sets an index of the currently selected layer.

Public property CurrentVObject

Gets the currently selected v-object.

Public property CurrentVObjectIndex

Gets or sets an index of the currently selected v-object.

Public property Data

Gets or sets serialized data of this Canvas.

Protected property DesignMode (Inherited from Control.)
Public property Disabled (Inherited from HtmlControl.)
Public property EnableTheming (Inherited from Control.)
Public property EnableViewState (Inherited from Control.)
Protected property Events (Inherited from Control.)
Public property GrayscaleColorProfile

Gets or sets a grayscale color profile used to render the workspace.

Protected property HasChildViewState (Inherited from Control.)
Public property History

Gets a History object associated with this Canvas.

Public property ID (Inherited from Control.)
Protected property IdSeparator (Inherited from Control.)
Protected property IsChildControlStateCleared (Inherited from Control.)
Public property IsSquaredBackground

Gets or sets the value indicating if the background of the canvas is squared.

Protected property IsTrackingViewState (Inherited from Control.)
Protected property IsViewStateEnabled (Inherited from Control.)
Public property Layers

Gets a collection of layers associated with this canvas.

Protected property LoadViewStateByID (Inherited from Control.)
Public property Margin

Gets or sets the outer margin of the canvas.

Public property MarginColor

Gets or sets a color of the outer margin of the canvas.

Public property MarginWidth

Gets or sets a width of the outer margin of the canvas.

Public property MaxJsonLength
Public property NamingContainer (Inherited from Control.)
Public property Page (Inherited from Control.)
Public property Parent (Inherited from Control.)
Public property PreviewColorManagementEnabled

Gets or sets the value indicating whether to use color management when displaying images.

Public property PrintColorManagementEnabled

Gets or sets the value indicating whether to use color management when rendering the workspace.

Public property ResizeGripColor

Gets or set the resize grip color.

Public property ResizeGripSize

Gets or set the resize grip width.

Public property ReturnValue

Gets or sets the value returned by remote scripting method.

Public property RgbColorProfile

Gets or sets a RGB color profile used to render the workspace.

Public property RotationGripColor

Gets or set the rotation grip color.

Public property RotationGripSize

Gets or set the rotation grip width.

Public property ScreenXDpi

Gets a horizontal resolution in DPI used to display the Canvas in a browser.

Public property ScreenYDpi

Gets a vertical resolution in DPI used to display the Canvas in a browser.

Public property Site (Inherited from Control.)
Public property SkinID (Inherited from Control.)
Public property Style (Inherited from HtmlControl.)
Public property TagName (Inherited from HtmlControl.)
Public property Tags

Gets or sets custom data.

Public property TemplateControl (Inherited from Control.)
Public property TemplateSourceDirectory (Inherited from Control.)
Public property UniqueID (Inherited from Control.)
Protected property ViewState (Inherited from Control.)
Protected property ViewStateIgnoresCase (Inherited from HtmlControl.)
Public property Visible (Inherited from Control.)
Public property WorkspaceHeight

Gets a value that represents the height (in pixels) of this Canvas.

Public property WorkspaceWidth

Gets a value that represents the width (in pixels) of this Canvas.

Public property Zoom

Gets or sets the current zoom value.

Events

Name Description
Public event CurrentLayerChanged

Fires when the currently selected layer is changed.

Public event CurrentVObjectChanged

Fires when the currently selected v-object is changed.

Public event DataBinding (Inherited from Control.)
Public event Disposed (Inherited from Control.)
Public event Init (Inherited from Control.)
Public event Load (Inherited from Control.)
Public event PreRender (Inherited from Control.)
Public event Unload (Inherited from Control.)
Public event ZoomChanged

Fires when zoom of the Canvas is changed.

Explicit Interface Implementations

Name Description
Explicit interface implemetation Private method IParserAccessor.AddParsedSubObject (Inherited from Control.)
Explicit interface implemetation Private property IControlBuilderAccessor.ControlBuilder (Inherited from Control.)
Explicit interface implemetation Private property IDataBindingsAccessor.DataBindings (Inherited from Control.)
Explicit interface implemetation Private property IExpressionsAccessor.Expressions (Inherited from Control.)
Explicit interface implemetation Private method IAttributeAccessor.GetAttribute (Inherited from HtmlControl.)
Explicit interface implemetation Private method ICallBackDataHandler.GetCallBackExecutionCode
Explicit interface implemetation Private method ICallbackEventHandler.GetCallbackResult
Explicit interface implemetation Private method IControlDesignerAccessor.GetDesignModeState (Inherited from Control.)
Explicit interface implemetation Private method IScriptControl.GetScriptDescriptors
Explicit interface implemetation Private method IScriptControl.GetScriptReferences
Explicit interface implemetation Private property IDataBindingsAccessor.HasDataBindings (Inherited from Control.)
Explicit interface implemetation Private property IExpressionsAccessor.HasExpressions (Inherited from Control.)
Explicit interface implemetation Private method ICallbackEventHandler.RaiseCallbackEvent
Explicit interface implemetation Private method IAttributeAccessor.SetAttribute (Inherited from HtmlControl.)
Explicit interface implemetation Private method IControlDesignerAccessor.SetDesignModeState (Inherited from Control.)
Explicit interface implemetation Private method IControlDesignerAccessor.SetOwnerControl (Inherited from Control.)
Explicit interface implemetation Private property IControlDesignerAccessor.UserData (Inherited from Control.)

See Also

Reference