SvgGraphicsElement Class

https://w3c.github.io/svgwg/svg2-draft/types.html#svggraphicselement

public abstract class SvgGraphicsElement : SvgElement
Inheritance
SvgElement SvgGraphicsElement

Properties

NameDescription
RequiredExtensionsGets the requiredExtensions attribute as a SVGStringList object.
SystemLanguageGets the systemLanguage attribute as a SVGStringList object.
TransformGets the transform attribute as a SVGAnimatedTransformList object.

RequiredExtensions

SvgElements.g.cs

Gets the requiredExtensions attribute as a SVGStringList object.

public SvgStringList RequiredExtensions { get; }

SystemLanguage

SvgElements.g.cs

Gets the systemLanguage attribute as a SVGStringList object.

public SvgStringList SystemLanguage { get; }

Gets the transform attribute as a SVGAnimatedTransformList object.

public SvgAnimatedTransformList Transform { get; }

Methods

NameDescription
GetBBox(SvgBoundingBoxOptions?)https://svgwg.org/svg2-draft/types.html#__svg__SVGGraphicsElement__getBBox: the bounding box of the geometry of the element in its user space (see SvgBoundingBox): the shapes and their stroke, the glyph cells of the texts, the children of the containers; the markers and the clipping are ignored.
GetCtm()https://svgwg.org/svg2-draft/types.html#__svg__SVGGraphicsElement__getCTM: the transform from the user space of the element to the coordinate system of its nearest viewport element (see SvgUserSpace.GetCtm). As in the browsers, an element that is not rendered gets the transforms of its attributes and styles.
GetScreenCtm()https://svgwg.org/svg2-draft/types.html#__svg__SVGGraphicsElement__getScreenCTM: the transform from the user space of the element to the coordinates of the viewport (the layout of the outermost svg element, see SvgUserSpace.GetScreenCtm). As in the browsers, an element that has no layout gets its getCTM().

GetBBox(SvgBoundingBoxOptions?)

SvgElements.cs

https://svgwg.org/svg2-draft/types.html#__svg__SVGGraphicsElement__getBBox: the bounding box of the geometry of the element in its user space (see SvgBoundingBox): the shapes and their stroke, the glyph cells of the texts, the children of the containers; the markers and the clipping are ignored.

public DomRect GetBBox(SvgBoundingBoxOptions? options = null)

https://svgwg.org/svg2-draft/types.html#__svg__SVGGraphicsElement__getCTM: the transform from the user space of the element to the coordinate system of its nearest viewport element (see SvgUserSpace.GetCtm). As in the browsers, an element that is not rendered gets the transforms of its attributes and styles.

public DomMatrix? GetCtm()

GetScreenCtm()

SvgElements.cs

https://svgwg.org/svg2-draft/types.html#__svg__SVGGraphicsElement__getScreenCTM: the transform from the user space of the element to the coordinates of the viewport (the layout of the outermost svg element, see SvgUserSpace.GetScreenCtm). As in the browsers, an element that has no layout gets its getCTM().

public DomMatrix? GetScreenCtm()