Interface ISvgTextContainer
interface ISvgTextContainer
Extends ISvgG
Represents a container for text in SVG, such as text or tspan elements.
See also - ISvgG.
Methods
setX()
Sets the x attribute values for the text or tspan element. The x coordinate of the starting point of the text baseline, or the x coordinate of each individual glyph if a list of values is provided.voidsetX(SvgLength[]x)
Parameters
x
SvgLength[] — Required
sequence of X-coordinates SvgLength to set.
setY()
Sets the y attribute values for the text or tspan element. The y coordinate of the starting point of the text baseline, or the y coordinate of each individual glyph if a list of values is provided.voidsetY(SvgLength[]y)
Parameters
y
SvgLength[] — Required
sequence of Y-coordinates SvgLength to set.
setDx()
Sets the dx attribute indicates a shift along the x-axis on the position of an element or its content. Shifts the text position horizontally from a previous text element or shifts the position of each individual glyph if a list of values is provided.voidsetDx(SvgLength[]dx)
Parameters
dx
SvgLength[] — Required
sequence of X-coordinate adjustmentsSvgLength to set.
setDy()
Sets the dy attribute indicates a shift along the y-axis on the position of an element or its content. Shifts the text position vertically from a previous text element, or shifts the position of each individual glyph if a list of values is provided.voidsetDy(SvgLength[]dy)
Parameters
dy
SvgLength[] — Required
sequence of Y-coordinate adjustmentsSvgLength to set.
setRotate()
Sets the rotate attribute values for the text. Rotates orientation of each individual glyph. Can rotate glyphs individually.voidsetRotate(float[]rotate)
Parameters
rotate
float[] — Required
the sequence of rotation values in degrees to set.
setInlineSize()
Sets the inline size. Default value is nonevoidsetInlineSize(SvgLengthinlineSize)
Parameters
inlineSize
SvgLength — Required
SvgLength to set as the inline size.
setAlignmentBaseline()
Sets the SvgAlignmentBaseline. Attribute specifies how an object is aligned with respect to its parent. This property specifies which baseline of this element is to be aligned with the corresponding baseline of the parent. Default value isvoidsetAlignmentBaseline(SvgAlignmentBaselinealignmentBaseline)
SvgAlignmentBaseline::BASELINE
Parameters
alignmentBaseline
SvgAlignmentBaseline — Required
SvgAlignmentBaseline to set.
setBaselineShift()
Sets the baseline shift. Attribute allows repositioning of the dominant-baseline relative to the dominant-baseline of the parent text content element.voidsetBaselineShift(ISvgBaselineShift*baselineShift)
Parameters
baselineShift
ISvgBaselineShift* — Required
ISvgBaselineShift to set.
appendText()
Appends additional text to the container.voidappendText(stringtext)
Parameters
text
string — Required
is string value to append.

