Request

Response

    StreamGeometry class

    Represents geometry data as an in-memory stream. Use extension methods like ElementGeometry.AsStreamGeometryAsync() to convert file-based geometry to stream. The caller is responsible for disposing the stream when done.

    public class StreamGeometry : ElementGeometry, IDisposable
    

    Public Members

    namedescription
    Format { get; } Gets the format of the underlying geometry.
    RenderStyles { get; set; } Gets or sets render styles for the geometry.
    SizeInBytes { get; } Gets the size of the geometry data in bytes.
    Dispose() Disposes the StreamGeometry and releases any held resources.
    GetStream() Gets the geometry data as a memory stream. The stream position is reset to the beginning before returning. Caller is responsible for disposing the stream.

    Protected Members

    namedescription
    virtual Dispose(…) Protected dispose pattern implementation.
    override Finalize() Finalizer for StreamGeometry.

    See Also