C# Class SvgComponents.SvgPictureBox

Inheritance: System.Windows.Forms.Control
Exibir arquivo Open project: codebutler/savagesvg Class Usage Examples

Private Properties

Property Type Description
ExecuteScripts void
InitializeComponent void
InitializeEvents void
UnloadEngines void
renderAndInvalidate void
updateAndInvalidate void

Public Methods

Method Description
CacheRenderingRegions ( ) : void
CreateEmptySvgDocument ( ) : SvgDocument

Create an empty SvgDocument and GdiRenderer for this control. The empty SvgDocument is returned. This method is needed only in situations where the library user needs to create an SVG DOM tree outside of the usual window Src setting mechanism.

Draw ( Graphics gr ) : void
Draw ( Graphics gr, RectangleF rect ) : void
Draw ( Graphics gr, int offsetX, int offsetY ) : void
DrawTo ( IntPtr hdc ) : void
GetScriptEngineByMimeType ( string mimeType ) : ScriptEngine
Load ( string value ) : void
LoadXml ( string xml ) : void
OnRender ( RectangleF updatedRect ) : void
Render ( ) : void
SetMimeTypeEngineType ( string mimeType, Type engineType ) : void
SvgPictureBox ( ) : System
Update ( RectangleF rect ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnMouseDown ( MouseEventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnPaint ( System e ) : void
OnResize ( EventArgs e ) : void
SetupStyleSheets ( ) : void

Loads the default user and agent stylesheets into the current SvgDocument

Private Methods

Method Description
ExecuteScripts ( ) : void

Collect the text in all script elements, build engine and execute.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

InitializeEvents ( ) : void

Add event listeners for on* events within the document

UnloadEngines ( ) : void

Clears the existing script engine list from any previously running instances

renderAndInvalidate ( ) : void
updateAndInvalidate ( RectangleF rect ) : void

Method Details

CacheRenderingRegions() public method

public CacheRenderingRegions ( ) : void
return void

CreateEmptySvgDocument() public method

Create an empty SvgDocument and GdiRenderer for this control. The empty SvgDocument is returned. This method is needed only in situations where the library user needs to create an SVG DOM tree outside of the usual window Src setting mechanism.
public CreateEmptySvgDocument ( ) : SvgDocument
return SharpVectors.Dom.Svg.SvgDocument

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

Draw() public method

public Draw ( Graphics gr ) : void
gr System.Drawing.Graphics
return void

Draw() public method

public Draw ( Graphics gr, RectangleF rect ) : void
gr System.Drawing.Graphics
rect System.Drawing.RectangleF
return void

Draw() public method

public Draw ( Graphics gr, int offsetX, int offsetY ) : void
gr System.Drawing.Graphics
offsetX int
offsetY int
return void

DrawTo() public method

public DrawTo ( IntPtr hdc ) : void
hdc System.IntPtr
return void

GetScriptEngineByMimeType() public method

public GetScriptEngineByMimeType ( string mimeType ) : ScriptEngine
mimeType string
return SharpVectors.Scripting.ScriptEngine

Load() public method

public Load ( string value ) : void
value string
return void

LoadXml() public method

public LoadXml ( string xml ) : void
xml string
return void

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( System e ) : void
e System
return void

OnRender() public method

public OnRender ( RectangleF updatedRect ) : void
updatedRect System.Drawing.RectangleF
return void

OnResize() protected method

protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void

Render() public method

public Render ( ) : void
return void

SetMimeTypeEngineType() public method

public SetMimeTypeEngineType ( string mimeType, Type engineType ) : void
mimeType string
engineType System.Type
return void

SetupStyleSheets() protected method

Loads the default user and agent stylesheets into the current SvgDocument
protected SetupStyleSheets ( ) : void
return void

SvgPictureBox() public method

public SvgPictureBox ( ) : System
return System

Update() public method

public Update ( RectangleF rect ) : void
rect System.Drawing.RectangleF
return void