---
title: "StreamWrapper..::.Stat Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_Stat_2_fbf94624.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# StreamWrapper.Stat Method 
 
Retrieves the **STATSTG** structure for this stream.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Overridable Sub Stat ( _ByRef pstatstg As STATSTG, _grfStatFlag As Integer _
)
```
 
```csharp
public virtual void Stat(ref STATSTG pstatstg,int grfStatFlag
)
```
 
### Parameters
 
 - pstatstg
     - Type: [System.Runtime.InteropServices.ComTypes.STATSTG](http://msdn2.microsoft.com/en-us/8zds95bb) %
On successful return, contains a **STATSTG** structure which describes this stream object.

 - grfStatFlag
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Specifies some of the members in the **STATSTG** structure that this method does not return, thus saving some memory allocation operations.
 
### Implements
 
[IStream.Stat(STATSTG, Int32)](http://msdn2.microsoft.com/en-us/6kx012x5)
 
## Remarks
 For more information, please see the existing documentation for **IStream::Stat** in the MSDN library.
   
## See Also

### Reference

- [StreamWrapper Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_StreamWrapper.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
