Class SVGGraphicsElement
Namespace: Aspose.Html.Dom.Svg
Assembly: Aspose.HTML.dll (25.2.0)
The SVGGraphicsElement interface represents SVG elements whose primary purpose is to directly render graphics into a group.
[DOMObject]
[ComVisible(true)]
[DOMName("SVGGraphicsElement")]
public class SVGGraphicsElement : SVGElement, INotifyPropertyChanged, IEventTarget, IDisposable, IXPathNSResolver, IParentNode, IElementTraversal, IChildNode, IElementCSSInlineStyle, ISVGTests
Inheritance
object ← DOMObject ← EventTarget ← Node ← Element ← SVGElement ← SVGGraphicsElement
Derived
SVGAElement, SVGDefsElement, SVGForeignObjectElement, SVGGElement, SVGGeometryElement, SVGImageElement, SVGSVGElement, SVGSwitchElement, SVGSymbolElement, SVGTextContentElement, SVGUseElement
Implements
INotifyPropertyChanged, IEventTarget, IDisposable, IXPathNSResolver, IParentNode, IElementTraversal, IChildNode, IElementCSSInlineStyle, ISVGTests
Inherited Members
SVGElement.Id, SVGElement.OwnerSVGElement, SVGElement.ViewportElement, SVGElement.ClassName, SVGElement.Style, Element.GetAttributeNames(), Element.HasAttributes(), Element.GetAttribute(string), Element.GetAttributeNS(string, string), Element.SetAttribute(string, string), Element.SetAttributeNS(string, string, string), Element.RemoveAttribute(string), Element.RemoveAttributeNS(string, string), Element.HasAttribute(string), Element.HasAttributeNS(string, string), Element.ToggleAttribute(string), Element.ToggleAttribute(string, bool), Element.GetAttributeNode(string), Element.SetAttributeNode(Attr), Element.RemoveAttributeNode(Attr), Element.GetAttributeNodeNS(string, string), Element.SetAttributeNodeNS(Attr), Element.GetElementsByTagName(string), Element.GetElementsByTagNameNS(string, string), Element.Remove(), Element.QuerySelectorAll(string), Element.QuerySelector(string), Element.AttachShadow(ShadowRootMode), Element.GetElementsByClassName(string), Element.Dispose(bool), Element.ClassList, Element.LocalName, Element.NamespaceURI, Element.Prefix, Element.NodeName, Element.NodeType, Element.TagName, Element.Id, Element.ClassName, Element.TextContent, Element.Attributes, Element.FirstElementChild, Element.LastElementChild, Element.PreviousElementSibling, Element.NextElementSibling, Element.ChildElementCount, Element.Children, Element.InnerHTML, Element.OuterHTML, Element.ShadowRoot, Node.ELEMENT_NODE, Node.ATTRIBUTE_NODE, Node.TEXT_NODE, Node.CDATA_SECTION_NODE, Node.ENTITY_REFERENCE_NODE, Node.ENTITY_NODE, Node.PROCESSING_INSTRUCTION_NODE, Node.COMMENT_NODE, Node.DOCUMENT_NODE, Node.DOCUMENT_TYPE_NODE, Node.DOCUMENT_FRAGMENT_NODE, Node.NOTATION_NODE, Node.HasChildNodes(), Node.Normalize(), Node.CloneNode(), Node.CloneNode(bool), Node.IsEqualNode(Node), Node.IsSameNode(Node), Node.LookupPrefix(string), Node.LookupNamespaceURI(string), Node.IsDefaultNamespace(string), Node.InsertBefore(Node, Node), Node.ReplaceChild(Node, Node), Node.RemoveChild(Node), Node.AppendChild(Node), Node.Dispose(bool), Node.ToString(), Node.NodeType, Node.LocalName, Node.NamespaceURI, Node.Prefix, Node.NodeName, Node.BaseURI, Node.OwnerDocument, Node.ParentNode, Node.ParentElement, Node.ChildNodes, Node.FirstChild, Node.LastChild, Node.PreviousSibling, Node.NextSibling, Node.NodeValue, Node.TextContent, EventTarget.AddEventListener(string, DOMEventHandler, bool), EventTarget.AddEventListener(string, IEventListener), EventTarget.AddEventListener(string, IEventListener, bool), EventTarget.RemoveEventListener(string, DOMEventHandler, bool), EventTarget.RemoveEventListener(string, IEventListener), EventTarget.RemoveEventListener(string, IEventListener, bool), EventTarget.DispatchEvent(Event), EventTarget.Dispose(), EventTarget.Dispose(bool), DOMObject.GetPlatformType(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
FarthestViewportElement
The farthest ancestor ‘svg’ element. Null if the current element is the outermost svg element.
[DOMName("farthestViewportElement")]
public SVGElement FarthestViewportElement { get; }
Property Value
NearestViewportElement
The element which established the current viewport. Often, the nearest ancestor ‘svg’ element. Null if the current element is the outermost svg element.
[DOMName("nearestViewportElement")]
public SVGElement NearestViewportElement { get; }
Property Value
RequiredExtensions
Corresponds to attribute ‘requiredExtensions’ on the given element.
public SVGStringList RequiredExtensions { get; }
Property Value
RequiredFeatures
Corresponds to attribute ‘requiredFeatures’ on the given element.
public SVGStringList RequiredFeatures { get; }
Property Value
SystemLanguage
Corresponds to attribute ‘systemLanguage’ on the given element.
public SVGStringList SystemLanguage { get; }
Property Value
Transform
Corresponds to attribute ‘transform’ on the given element.
[DOMName("transform")]
public SVGAnimatedTransformList Transform { get; }
Property Value
Methods
GetBBox()
Returns the tight bounding box in current user space (i.e., after application of the ‘transform’ attribute, if any) on the geometry of all contained graphics elements, exclusive of stroking, clipping, masking and filter effects). Note that getBBox must return the actual bounding box at the time the method was called, even in case the element has not yet been rendered.
[DOMName("getBBox")]
public SVGRect GetBBox()
Returns
An SVGRect object that defines the bounding box.
GetCTM()
Returns the transformation matrix from current user units (i.e., after application of the ‘transform’ attribute, if any) to the viewport coordinate system for the nearestViewportElement.
[DOMName("getCTM")]
public SVGMatrix GetCTM()
Returns
An SVGMatrix object that defines the CTM.
GetScreenCTM()
Returns the transformation matrix from current user units (i.e., after application of the ‘transform’ attribute, if any) to the parent user agent’s notice of a “pixel”. For display devices, ideally this represents a physical screen pixel. For other devices or environments where physical pixel sizes are not known, then an algorithm similar to the CSS2 definition of a “pixel” can be used instead. Note that null is returned if this element is not hooked into the document tree. This method would have been more aptly named as getClientCTM, but the name getScreenCTM is kept for historical reasons.
[DOMName("getScreenCTM")]
public SVGMatrix GetScreenCTM()
Returns
An SVGMatrix object that defines the given transformation matrix.