---
title: "StreamWrapper..::.Seek Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_Seek_3_a85dc038.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.Seek Method 
 
Changes the seek pointer to a new location relative to the beginning of the stream, to the end of the stream, or to the current seek pointer.
 
**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 Seek ( _dlibMove As Long, _dwOrigin As Integer, _plibNewPosition As IntPtr _
)
```
 
```csharp
public virtual void Seek(long dlibMove,int dwOrigin,IntPtr plibNewPosition
)
```
 
### Parameters
 
 - dlibMove
     - Type: [System.Int64](http://msdn2.microsoft.com/en-us/6yy583ek)
Displacement to add to *dwOrigin*.

 - dwOrigin
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Specifies the origin of the seek. The origin can be the beginning of the file, the current seek pointer, or the end of the file.

 - plibNewPosition
     - Type: [System.IntPtr](http://msdn2.microsoft.com/en-us/5he14kz8)
On successful return, contains the offset of the seek pointer from the beginning of the stream.
 
### Implements
 
[IStream.Seek(Int64, Int32, IntPtr)](http://msdn2.microsoft.com/en-us/d70b24c4)
 
## Remarks
 For more information, please see the existing documentation for **IStream::Seek** 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)
