[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.GcGraphics.MeasureSvg

MeasureSvg Method

MeasureSvg(GcSvgDocument, PointF)

Calculates the content bounds of a specified SVG document when its viewport is drawn at a specified point.

Declaration
public RectangleF MeasureSvg(GcSvgDocument svgDocument, PointF viewportPosition)
Public Function MeasureSvg(svgDocument As GcSvgDocument, viewportPosition As PointF) As RectangleF
Parameters
Type Name Description
GcSvgDocument svgDocument

The SVG document to measure.

PointF viewportPosition

The coordinates for the top-left corner of SVG viewport.

Returns
Type Description
RectangleF

The content bounds of the resulting image.