Document Solutions for Imaging
DS.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / MeasureSvg Method
The SVG document to measure.
The coordinates for the top-left corner of SVG viewport.

In This Topic
    MeasureSvg Method
    In This Topic
    Calculates the content bounds of a specified SVG document when its viewport is drawn at a specified point.
    Syntax
    'Declaration
     
    Public Function MeasureSvg( _
       ByVal svgDocument As GcSvgDocument, _
       ByVal viewportPosition As System.Drawing.PointF _
    ) As System.Drawing.RectangleF
    public System.Drawing.RectangleF MeasureSvg( 
       GcSvgDocument svgDocument,
       System.Drawing.PointF viewportPosition
    )

    Parameters

    svgDocument
    The SVG document to measure.
    viewportPosition
    The coordinates for the top-left corner of SVG viewport.

    Return Value

    The content bounds of the resulting image.
    See Also