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()
Sets the inline-base direction (voidsetDirection(SvgDirectiondirection)
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.

