[]
        
(Showing Draft Content)

GrapeCity.Documents.Svg.GcSvgDocument.FromStream

FromStream Method

FromStream(Stream)

Creates a new GcSvgDocument from a specified SVG data stream.

The stream will be closed after reading the SVG data. To keep the stream open, use the FromStream(Stream, bool) overload and pass true in the leaveOpen parameter.

Declaration
public static GcSvgDocument FromStream(Stream stream)
Public Shared Function FromStream(stream As Stream) As GcSvgDocument
Parameters
Type Name Description
Stream stream

The stream containing the SVG data.

Returns
Type Description
GcSvgDocument

The created SVG document.

FromStream(Stream, bool)

Creates a new GcSvgDocument from a specified SVG data stream, optionally leaving the stream open.

Declaration
public static GcSvgDocument FromStream(Stream stream, bool leaveOpen)
Public Shared Function FromStream(stream As Stream, leaveOpen As Boolean) As GcSvgDocument
Parameters
Type Name Description
Stream stream

The stream containing the SVG data.

bool leaveOpen

true to leave the stream open after reading the data, false to close the stream.

Returns
Type Description
GcSvgDocument

The created SVG document.