SvgSvgElement Class
https://w3c.github.io/svgwg/svg2-draft/struct.html#svgsvgelement
public sealed class SvgSvgElement : SvgGraphicsElement- Inheritance
SvgGraphicsElementSvgSvgElement
Properties
| Name | Description |
|---|---|
| CurrentScale | https://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__currentScale |
| CurrentTranslate | https://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__currentTranslate |
| Height | Gets the height attribute as a SVGAnimatedLength object. |
| OnAfterPrint | Gets or sets the event handler of the afterprint event (the onafterprint event handler attribute). |
| OnBeforePrint | Gets or sets the event handler of the beforeprint event (the onbeforeprint event handler attribute). |
| OnBeforeUnload | Gets or sets the event handler of the beforeunload event (the onbeforeunload event handler attribute). |
| OnHashChange | Gets or sets the event handler of the hashchange event (the onhashchange event handler attribute). |
| OnLanguageChange | Gets or sets the event handler of the languagechange event (the onlanguagechange event handler attribute). |
| OnMessage | Gets or sets the event handler of the message event (the onmessage event handler attribute). |
| OnMessageError | Gets or sets the event handler of the messageerror event (the onmessageerror event handler attribute). |
| OnOffline | Gets or sets the event handler of the offline event (the onoffline event handler attribute). |
| OnOnline | Gets or sets the event handler of the online event (the ononline event handler attribute). |
| OnPageHide | Gets or sets the event handler of the pagehide event (the onpagehide event handler attribute). |
| OnPageReveal | Gets or sets the event handler of the pagereveal event (the onpagereveal event handler attribute). |
| OnPageShow | Gets or sets the event handler of the pageshow event (the onpageshow event handler attribute). |
| OnPageSwap | Gets or sets the event handler of the pageswap event (the onpageswap event handler attribute). |
| OnPopState | Gets or sets the event handler of the popstate event (the onpopstate event handler attribute). |
| OnRejectionHandled | Gets or sets the event handler of the rejectionhandled event (the onrejectionhandled event handler attribute). |
| OnStorage | Gets or sets the event handler of the storage event (the onstorage event handler attribute). |
| OnUnhandledRejection | Gets or sets the event handler of the unhandledrejection event (the onunhandledrejection event handler attribute). |
| OnUnload | Gets or sets the event handler of the unload event (the onunload event handler attribute). |
| PreserveAspectRatio | Gets the preserveAspectRatio attribute as a SVGAnimatedPreserveAspectRatio object. |
| ViewBox | Gets the viewBox attribute as a SVGAnimatedRect object. |
| Width | Gets the width attribute as a SVGAnimatedLength object. |
| X | Gets the x attribute as a SVGAnimatedLength object. |
| Y | Gets the y attribute as a SVGAnimatedLength object. |
CurrentScale
SvgElements.cshttps://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__currentScale
public float CurrentScale { get; set; }CurrentTranslate
SvgElements.cshttps://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__currentTranslate
public DomPoint CurrentTranslate { get; }Height
SvgElements.g.csGets the height attribute as a SVGAnimatedLength object.
public SvgAnimatedLength Height { get; }OnAfterPrint
SvgElements.g.csGets or sets the event handler of the afterprint event (the onafterprint event handler attribute).
OnBeforePrint
SvgElements.g.csGets or sets the event handler of the beforeprint event (the onbeforeprint event handler attribute).
OnBeforeUnload
SvgElements.g.csGets or sets the event handler of the beforeunload event (the onbeforeunload event handler attribute).
OnHashChange
SvgElements.g.csGets or sets the event handler of the hashchange event (the onhashchange event handler attribute).
OnLanguageChange
SvgElements.g.csGets or sets the event handler of the languagechange event (the onlanguagechange event handler attribute).
OnMessage
SvgElements.g.csGets or sets the event handler of the message event (the onmessage event handler attribute).
OnMessageError
SvgElements.g.csGets or sets the event handler of the messageerror event (the onmessageerror event handler attribute).
OnOffline
SvgElements.g.csGets or sets the event handler of the offline event (the onoffline event handler attribute).
OnOnline
SvgElements.g.csGets or sets the event handler of the online event (the ononline event handler attribute).
OnPageHide
SvgElements.g.csGets or sets the event handler of the pagehide event (the onpagehide event handler attribute).
OnPageReveal
SvgElements.g.csGets or sets the event handler of the pagereveal event (the onpagereveal event handler attribute).
OnPageShow
SvgElements.g.csGets or sets the event handler of the pageshow event (the onpageshow event handler attribute).
OnPageSwap
SvgElements.g.csGets or sets the event handler of the pageswap event (the onpageswap event handler attribute).
OnPopState
SvgElements.g.csGets or sets the event handler of the popstate event (the onpopstate event handler attribute).
OnRejectionHandled
SvgElements.g.csGets or sets the event handler of the rejectionhandled event (the onrejectionhandled event handler attribute).
OnStorage
SvgElements.g.csGets or sets the event handler of the storage event (the onstorage event handler attribute).
OnUnhandledRejection
SvgElements.g.csGets or sets the event handler of the unhandledrejection event (the onunhandledrejection event handler attribute).
OnUnload
SvgElements.g.csGets or sets the event handler of the unload event (the onunload event handler attribute).
PreserveAspectRatio
SvgElements.g.csGets the preserveAspectRatio attribute as a SVGAnimatedPreserveAspectRatio object.
public SvgAnimatedPreserveAspectRatio PreserveAspectRatio { get; }ViewBox
SvgElements.g.csGets the viewBox attribute as a SVGAnimatedRect object.
public SvgAnimatedRect ViewBox { get; }Width
SvgElements.g.csGets the width attribute as a SVGAnimatedLength object.
public SvgAnimatedLength Width { get; }Gets the x attribute as a SVGAnimatedLength object.
public SvgAnimatedLength X { get; }Gets the y attribute as a SVGAnimatedLength object.
public SvgAnimatedLength Y { get; }Methods
| Name | Description |
|---|---|
| AnimationsPaused() | Returns whether the animations are paused. |
| CheckEnclosure(SvgElement, DomRectReadOnly) | https://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__checkEnclosure: whether the rendered bounding box of the element is inside the rectangle. |
| CheckIntersection(SvgElement, DomRectReadOnly) | https://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__checkIntersection: whether the rendered bounding box of the element intersects the rectangle. |
| CreateSvgAngle() | Creates an angle with the value 0. |
| CreateSvgLength() | Creates a length with the value 0. |
| CreateSvgMatrix() | Creates an identity matrix. |
| CreateSvgNumber() | Creates a number with the value 0. |
| CreateSvgPoint() | Creates a point at the origin (0, 0). |
| CreateSvgRect() | Creates a rectangle whose position and size are all zero. |
| CreateSvgTransform() | Creates a transform of type SVG_TRANSFORM_MATRIX with the identity matrix. |
| CreateSvgTransformFromMatrix(DomMatrix2DInit?) | Creates a transform of type SVG_TRANSFORM_MATRIX from the given matrix. |
| DeselectAll() | https://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__deselectAll: clears the selection of the document. |
| ForceRedraw() | Forces a redraw of the element; it has no effect because nothing is rendered. |
| GetCurrentTime() | Returns the current time, in seconds, of the timeline of the document fragment. |
| GetElementById(string) | https://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__getElementById: the first descendant element with the id. |
| GetEnclosureList(DomRectReadOnly, SvgElement?) | https://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__getEnclosureList: the graphics elements whose rendered bounding box is entirely inside the rectangle (see SvgSvgElement.GetIntersectionList). |
| GetIntersectionList(DomRectReadOnly, SvgElement?) | https://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__getIntersectionList: the graphics elements of the subtree of the element (or of referenceElement) whose rendered bounding box, in the user space of this element, intersects the rectangle, in document order (as in the browsers, the bounding boxes are tested and the clipping is ignored). |
| PauseAnimations() | Pauses the animations of the document fragment: its timeline stops. |
| SetCurrentTime(float) | Sets the current time, in seconds, of the timeline of the document fragment: the animations are sampled at once. Before the timeline begins (the load event of the document), the time is the time it begins at. |
| SuspendRedraw(uint) | Suspends the redrawing of the element; as nothing is rendered, it only returns a handle. |
| UnpauseAnimations() | Resumes the animations of the document fragment. |
| UnsuspendRedraw(uint) | Cancels a suspension returned by suspendRedraw(); it has no effect because nothing is rendered. |
| UnsuspendRedrawAll() | Cancels all the suspensions of redrawing; it has no effect because nothing is rendered. |
AnimationsPaused()
SvgElements.csReturns whether the animations are paused.
public bool AnimationsPaused()CheckEnclosure(SvgElement, DomRectReadOnly)
SvgElements.cshttps://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__checkEnclosure: whether the rendered bounding box of the element is inside the rectangle.
public bool CheckEnclosure(SvgElement element, DomRectReadOnly rect)CheckIntersection(SvgElement, DomRectReadOnly)
SvgElements.cshttps://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__checkIntersection: whether the rendered bounding box of the element intersects the rectangle.
public bool CheckIntersection(SvgElement element, DomRectReadOnly rect)CreateSvgAngle()
SvgElements.csCreates an angle with the value 0.
public SvgAngle CreateSvgAngle()CreateSvgLength()
SvgElements.csCreates a length with the value 0.
public SvgLength CreateSvgLength()CreateSvgMatrix()
SvgElements.csCreates an identity matrix.
public DomMatrix CreateSvgMatrix()CreateSvgNumber()
SvgElements.csCreates a number with the value 0.
public SvgNumber CreateSvgNumber()CreateSvgPoint()
SvgElements.csCreates a point at the origin (0, 0).
public DomPoint CreateSvgPoint()CreateSvgRect()
SvgElements.csCreates a rectangle whose position and size are all zero.
public DomRect CreateSvgRect()CreateSvgTransform()
SvgElements.csCreates a transform of type SVG_TRANSFORM_MATRIX with the identity matrix.
public SvgTransform CreateSvgTransform()CreateSvgTransformFromMatrix(DomMatrix2DInit?)
SvgElements.csCreates a transform of type SVG_TRANSFORM_MATRIX from the given matrix.
public SvgTransform CreateSvgTransformFromMatrix(DomMatrix2DInit? matrix = null)DeselectAll()
SvgElements.cshttps://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__deselectAll: clears the selection of the document.
public void DeselectAll()ForceRedraw()
SvgElements.csForces a redraw of the element; it has no effect because nothing is rendered.
public void ForceRedraw()GetCurrentTime()
SvgElements.csReturns the current time, in seconds, of the timeline of the document fragment.
public float GetCurrentTime()GetElementById(string)
SvgElements.cshttps://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__getElementById: the first descendant element with the id.
GetEnclosureList(DomRectReadOnly, SvgElement?)
SvgElements.cshttps://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__getEnclosureList: the graphics elements whose rendered bounding box is entirely inside the rectangle (see SvgSvgElement.GetIntersectionList).
public NodeList GetEnclosureList(DomRectReadOnly rect, SvgElement? referenceElement)GetIntersectionList(DomRectReadOnly, SvgElement?)
SvgElements.cshttps://svgwg.org/svg2-draft/struct.html#__svg__SVGSVGElement__getIntersectionList: the graphics elements of the subtree of the element (or of referenceElement) whose rendered bounding box, in the user space of this element, intersects the rectangle, in document order (as in the browsers, the bounding boxes are tested and the clipping is ignored).
public NodeList GetIntersectionList(DomRectReadOnly rect, SvgElement? referenceElement)PauseAnimations()
SvgElements.csPauses the animations of the document fragment: its timeline stops.
public void PauseAnimations()SetCurrentTime(float)
SvgElements.csSets the current time, in seconds, of the timeline of the document fragment: the animations are sampled at once. Before the timeline begins (the load event of the document), the time is the time it begins at.
SuspendRedraw(uint)
SvgElements.csSuspends the redrawing of the element; as nothing is rendered, it only returns a handle.
UnpauseAnimations()
SvgElements.csResumes the animations of the document fragment.
public void UnpauseAnimations()UnsuspendRedraw(uint)
SvgElements.csCancels a suspension returned by suspendRedraw(); it has no effect because nothing is rendered.
UnsuspendRedrawAll()
SvgElements.csCancels all the suspensions of redrawing; it has no effect because nothing is rendered.
public void UnsuspendRedrawAll()