C# Класс Svg.SvgTextBase

Наследование: SvgVisualElement
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetContentNodes IEnumerable
SetPath void
SetPath void

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

GetAuthorPathLength() защищенный метод

protected GetAuthorPathLength ( ) : float
Результат float

GetBaselinePath() защищенный метод

protected GetBaselinePath ( ISvgRenderer renderer ) : GraphicsPath
renderer ISvgRenderer
Результат System.Drawing.Drawing2D.GraphicsPath

OnChange() защищенный метод

protected OnChange ( string newString, string sessionID ) : void
newString string
sessionID string
Результат void

Path() публичный метод

Gets the GraphicsPath for this element.
public Path ( ISvgRenderer renderer ) : GraphicsPath
renderer ISvgRenderer
Результат System.Drawing.Drawing2D.GraphicsPath

PrepareText() защищенный метод

Prepare the text according to the whitespace handling rules. SVG Spec.
protected PrepareText ( string value ) : string
value string Text to be prepared
Результат string

RaiseChange() защищенный метод

protected RaiseChange ( object sender, StringArg s ) : void
sender object
s StringArg
Результат void

RegisterEvents() публичный метод

public RegisterEvents ( ISvgEventCaller caller ) : void
caller ISvgEventCaller
Результат void

Render() защищенный метод

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.
Результат void

ShouldWriteElement() публичный метод

Empty text elements are not legal - only write this element if it has children.
public ShouldWriteElement ( ) : bool
Результат bool

ToString() публичный метод

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
Результат string

UnregisterEvents() публичный метод

public UnregisterEvents ( ISvgEventCaller caller ) : void
caller ISvgEventCaller
Результат void