Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface ISvgTextContainer

interface ISvgTextContainer
Extends ISvgG Represents a container for text in SVG, such as text or tspan elements. See also - ISvgG.

Methods

setX()

void setX(SvgLength[] x)
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.

Parameters

x
SvgLength[] — Required sequence of X-coordinates SvgLength to set.

setY()

void setY(SvgLength[] y)
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.

Parameters

y
SvgLength[] — Required sequence of Y-coordinates SvgLength to set.

setDx()

void setDx(SvgLength[] dx)
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.

Parameters

dx
SvgLength[] — Required sequence of X-coordinate adjustmentsSvgLength to set.

setDy()

void setDy(SvgLength[] dy)
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.

Parameters

dy
SvgLength[] — Required sequence of Y-coordinate adjustmentsSvgLength to set.

setRotate()

void setRotate(float[] rotate)
Sets the rotate attribute values for the text. Rotates orientation of each individual glyph. Can rotate glyphs individually.

Parameters

rotate
float[] — Required the sequence of rotation values in degrees to set.

setInlineSize()

void setInlineSize(SvgLength inlineSize)
Sets the inline size. Default value is none

Parameters

inlineSize
SvgLength — Required SvgLength to set as the inline size.

setAlignmentBaseline()

void setAlignmentBaseline(SvgAlignmentBaseline alignmentBaseline)
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 is SvgAlignmentBaseline::BASELINE

Parameters

alignmentBaseline
SvgAlignmentBaseline — Required SvgAlignmentBaseline to set.

setBaselineShift()

void setBaselineShift(ISvgBaselineShift* baselineShift)
Sets the baseline shift. Attribute allows repositioning of the dominant-baseline relative to the dominant-baseline of the parent text content element.

Parameters

baselineShift
ISvgBaselineShift* — Required ISvgBaselineShift to set.

appendText()

void appendText(string text)
Appends additional text to the container.

Parameters

text
string — Required is string value to append.
Last modified on October 29, 2026