Table of Contents

Property Viewport

Namespace
SharpVectors.Dom.Svg
Assembly
SharpVectors.Core.dll

Viewport

The position and size of the viewport (implicit or explicit) that corresponds to this 'svg' element.

ISvgRect Viewport { get; }

Property Value

ISvgRect

Remarks

When the user agent is actually rendering the content, then the position and size values represent the actual values when rendering. The position and size values are unitless values in the coordinate system of the parent element. If no parent element exists (i.e., 'svg' element represents the root of the document tree), if this SVG document is embedded as part of another document (e.g., via the HTML 'object' element), then the position and size are unitless values in the coordinate system of the parent document. (If the parent uses CSS or XSL layout, then unitless values represent pixel units for the current CSS or XSL viewport, as described in the CSS2 specification.) If the parent element does not have a coordinate system, then the user agent should provide reasonable default values for this attribute.

The object itself and its contents are both readonly.