[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Annotations.Model3DAnnotation.Get3DContent

Get3DContent Method

Get3DContent(out IPdfName)

Retrieves the 3D stream content from this annotation and its format.

Declaration
public Stream Get3DContent(out IPdfName format)
Public Function Get3DContent(ByRef format As IPdfName) As Stream
Parameters
Type Name Description
IPdfName format

When this method returns, contains the IPdfName object specifying the format of the retrieved 3D data, or null if no 3D stream is present. Use values from the Model3DStreamFormat static class (e.g., U3D or PRC).

Returns
Type Description
Stream

A Stream object containing the 3D model data, or null if no 3D stream is defined for this annotation.

Remarks

The returned stream contains the raw 3D model data in the format specified by the format parameter. The caller is responsible for properly disposing the stream if necessary.

Get3DContent()

Retrieves the 3D stream content from this annotation without format information.

Declaration
public Stream Get3DContent()
Public Function Get3DContent() As Stream
Returns
Type Description
Stream

A Stream object containing the 3D model data, or null if no 3D stream is defined for this annotation.

Remarks

This method is a convenience overload that retrieves the 3D content without requiring the caller to handle the format parameter. If format information is needed, use Get3DContent(out IPdfName) instead.