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 ISvgG2

interface ISvgG2
Extends ISvgG Extends ISvgG with the base text/content direction (left-to-right or right-to-left) used for text layout. As an inherited property it can be set on a group or text content element and applies to descendant text. Obtain via TryQueryInterface<ISvgG2>().

Methods

setDirection()

void setDirection(SvgDirection direction)
Sets the inline-base direction (SvgDirection::LTR left-to-right or SvgDirection::RTL right-to-left) of the text — the primary direction content is ordered along a line. It defines the line’s start and end sides, and therefore which side text-anchor start/end resolves to, mirrored between the two directions. It is inherited by descendant text content. Default value is SvgDirection::INHERIT

Parameters

direction
SvgDirection — Required SvgDirection the base direction to apply.
Last modified on October 29, 2026