Table of Contents

TTMSFNCGraphicsSVGElement Class

Represents a single parsed SVG element including its geometry, style, and child elements.

API unit family: TMSFNCGraphicsSVGEngine

Syntax

TTMSFNCGraphicsSVGElement = class

Properties

Name Description
ActivePath Returns the most recently created path that is still accepting points.
Bitmap Decoded bitmap for etImage elements.
CX Center X coordinate for circle and ellipse elements.
CY Center Y coordinate for circle and ellipse elements.
ClassRef The CSS-class-referenced element used to inherit style values.
ClassRefID The CSS class ID used to look up style rules for this element.
ClipPathRef The element referenced by the clip-path attribute.
ClipPathRefID The clip-path attribute reference ID.
CombinedPath Returns the union of all paths belonging to this element and its children as a single path.
DisplayValue Raw string value of the SVG display attribute.
Elements List of child elements owned by this element.
FillColor Resolved fill color.
FillColorValue Raw string value of the SVG fill color attribute.
FillOpacity Fill opacity (0–1) for this element.
FillOpacityValue Raw string value of the SVG fill-opacity attribute.
FontFamily Font family name parsed from the font-family attribute.
FontSize Parsed font size in points.
FontSizeValue Raw string value of the SVG font-size attribute.
FontStyle Font style flags parsed from the SVG font attributes.
GradientMatrix Gradient transformation matrix for gradient elements.
HRefID The xlink:href or href attribute value referencing another element.
Height Height of the element in user units.
ID The id attribute value of this element.
Matrix Local transformation matrix of this element.
Offset Gradient stop offset (0–1) for etStop elements.
OffsetValue Raw string value of the SVG offset attribute (gradient stop).
Opacity Combined opacity (0–1) inherited and applied to this element.
OpacityValue Raw string value of the SVG opacity attribute.
Parent Parent element in the SVG element tree; nil for the root element.
Paths List of paths built from the element's path data.
PreserveAspectRatio Parsed preserve-aspect-ratio mode.
PreserveAspectRatioValue Raw string value of the SVG preserveAspectRatio attribute.
Rx X-axis corner rounding radius for etRect elements.
Ry Y-axis corner rounding radius for etRect elements.
StopColor Stop color for etStop elements.
StopColorValue Raw string value of the SVG stop-color attribute.
StopOpacity Stop opacity (0–1) for etStop elements.
StopOpacityValue Raw string value of the SVG stop-opacity attribute.
StrokeColor Resolved stroke color.
StrokeColorValue Raw string value of the SVG stroke color attribute.
StrokeOpacity Stroke opacity (0–1) for this element.
StrokeOpacityValue Raw string value of the SVG stroke-opacity attribute.
StrokeWidth Stroke width in user units.
StrokeWidthValue Raw string value of the SVG stroke-width attribute.
Text Text content for etText, etTextSpan, and etTextSpanChild elements.
URLRefID The URL-form reference ID (e.g. from a fill="url(#...)" attribute).
Width Width of the element in user units.
X X coordinate of the element's origin in user units.
Y Y coordinate of the element's origin in user units.

Methods

Name Description
HasActivePath Returns True if the element has an active (in-progress) path.
HasBitmap Returns True if the element has an embedded or referenced bitmap image.
HasElements Returns True if the element has at least one child element.
HasFillColor Returns True if the element has an explicit fill-color attribute.
HasFillOpacity Returns True if the element has an explicit fill-opacity attribute.
HasFontSize Returns True if the element has an explicit font-size attribute.
HasOffset Returns True if the element has an explicit offset attribute (gradient stop).
HasOpacity Returns True if the element has an explicit opacity attribute.
HasPaths Returns True if the element has at least one associated path.
HasPreserveAspectRatio Returns True if the element has a parsed preserveAspectRatio attribute.
HasStopColor Returns True if the element has an explicit stop-color attribute.
HasStopOpacity Returns True if the element has an explicit stop-opacity attribute.
HasStrokeColor Returns True if the element has an explicit stroke color attribute.
HasStrokeOpacity Returns True if the element has an explicit stroke-opacity attribute.
HasStrokeWidth Returns True if the element has an explicit stroke-width attribute.