C# Class Svg.SvgTextBase

Inheritance: SvgVisualElement
Afficher le fichier Open project: vvvv/SVG Class Usage Examples

Private Properties

Свойство Type Description
GetContentNodes IEnumerable
SetPath void
SetPath void

Méthodes publiques

Méthode Description
Path ( ISvgRenderer renderer ) : GraphicsPath

Gets the GraphicsPath for this element.

RegisterEvents ( ISvgEventCaller caller ) : void
ShouldWriteElement ( ) : bool

Empty text elements are not legal - only write this element if it has children.

ToString ( ) : string

Returns a T:System.String that represents the current T:System.Object.

UnregisterEvents ( ISvgEventCaller caller ) : void

Méthodes protégées

Méthode Description
GetAuthorPathLength ( ) : float
GetBaselinePath ( ISvgRenderer renderer ) : GraphicsPath
OnChange ( string newString, string sessionID ) : void
PrepareText ( string value ) : string

Prepare the text according to the whitespace handling rules. SVG Spec.

RaiseChange ( object sender, StringArg s ) : void
Render ( ISvgRenderer renderer ) : void

Renders the SvgElement and contents to the specified Graphics object.

Necessary to make sure that any internal tspan elements get rendered as well

Private Methods

Méthode Description
GetContentNodes ( ) : IEnumerable
SetPath ( TextDrawingState state ) : void
SetPath ( TextDrawingState state, bool doMeasurements ) : void

Sets the path on this element and all child elements. Uses the state object to track the state of the drawing

Method Details

GetAuthorPathLength() protected méthode

protected GetAuthorPathLength ( ) : float
Résultat float

GetBaselinePath() protected méthode

protected GetBaselinePath ( ISvgRenderer renderer ) : GraphicsPath
renderer ISvgRenderer
Résultat System.Drawing.Drawing2D.GraphicsPath

OnChange() protected méthode

protected OnChange ( string newString, string sessionID ) : void
newString string
sessionID string
Résultat void

Path() public méthode

Gets the GraphicsPath for this element.
public Path ( ISvgRenderer renderer ) : GraphicsPath
renderer ISvgRenderer
Résultat System.Drawing.Drawing2D.GraphicsPath

PrepareText() protected méthode

Prepare the text according to the whitespace handling rules. SVG Spec.
protected PrepareText ( string value ) : string
value string Text to be prepared
Résultat string

RaiseChange() protected méthode

protected RaiseChange ( object sender, StringArg s ) : void
sender object
s StringArg
Résultat void

RegisterEvents() public méthode

public RegisterEvents ( ISvgEventCaller caller ) : void
caller ISvgEventCaller
Résultat void

Render() protected méthode

Renders the SvgElement and contents to the specified Graphics object.
Necessary to make sure that any internal tspan elements get rendered as well
protected Render ( ISvgRenderer renderer ) : void
renderer ISvgRenderer The object to render to.
Résultat void

ShouldWriteElement() public méthode

Empty text elements are not legal - only write this element if it has children.
public ShouldWriteElement ( ) : bool
Résultat bool

ToString() public méthode

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
Résultat string

UnregisterEvents() public méthode

public UnregisterEvents ( ISvgEventCaller caller ) : void
caller ISvgEventCaller
Résultat void