C# Class SvgComponents.SvgPictureBox

Inheritance: System.Windows.Forms.Control
Afficher le fichier Open project: codebutler/savagesvg Class Usage Examples

Private Properties

Свойство Type Description
ExecuteScripts void
InitializeComponent void
InitializeEvents void
UnloadEngines void
renderAndInvalidate void
updateAndInvalidate void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public CacheRenderingRegions ( ) : void
Résultat void

CreateEmptySvgDocument() public méthode

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
Résultat SharpVectors.Dom.Svg.SvgDocument

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Draw() public méthode

public Draw ( Graphics gr ) : void
gr System.Drawing.Graphics
Résultat void

Draw() public méthode

public Draw ( Graphics gr, RectangleF rect ) : void
gr System.Drawing.Graphics
rect System.Drawing.RectangleF
Résultat void

Draw() public méthode

public Draw ( Graphics gr, int offsetX, int offsetY ) : void
gr System.Drawing.Graphics
offsetX int
offsetY int
Résultat void

DrawTo() public méthode

public DrawTo ( IntPtr hdc ) : void
hdc System.IntPtr
Résultat void

GetScriptEngineByMimeType() public méthode

public GetScriptEngineByMimeType ( string mimeType ) : ScriptEngine
mimeType string
Résultat SharpVectors.Scripting.ScriptEngine

Load() public méthode

public Load ( string value ) : void
value string
Résultat void

LoadXml() public méthode

public LoadXml ( string xml ) : void
xml string
Résultat void

OnMouseDown() protected méthode

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseMove() protected méthode

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseUp() protected méthode

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnPaint() protected méthode

protected OnPaint ( System e ) : void
e System
Résultat void

OnRender() public méthode

public OnRender ( RectangleF updatedRect ) : void
updatedRect System.Drawing.RectangleF
Résultat void

OnResize() protected méthode

protected OnResize ( EventArgs e ) : void
e System.EventArgs
Résultat void

Render() public méthode

public Render ( ) : void
Résultat void

SetMimeTypeEngineType() public méthode

public SetMimeTypeEngineType ( string mimeType, Type engineType ) : void
mimeType string
engineType System.Type
Résultat void

SetupStyleSheets() protected méthode

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

SvgPictureBox() public méthode

public SvgPictureBox ( ) : System
Résultat System

Update() public méthode

public Update ( RectangleF rect ) : void
rect System.Drawing.RectangleF
Résultat void