Xceed .NET Libraries Documentation
Seek Method (FormattedCompressedStream)


Xceed.Compression.Formats Assembly > Xceed.Compression.Formats Namespace > FormattedCompressedStream Class : Seek Method
A byte offset relative to origin.
A System.IO.SeekOrigin value indicating the reference point used to obtain the new position
Sets the position within the current stream.
Syntax
'Declaration
 
Public Overrides Function Seek( _

   ByVal offset As Long, _

   ByVal origin As SeekOrigin _

) As Long
'Usage
 
Dim instance As FormattedCompressedStream

Dim offset As Long

Dim origin As SeekOrigin

Dim value As Long

 

value = instance.Seek(offset, origin)
public override long Seek( 

   long offset,

   SeekOrigin origin

)

Parameters

offset
A byte offset relative to origin.
origin
A System.IO.SeekOrigin value indicating the reference point used to obtain the new position

Return Value

The new position within the current stream.
Remarks

Use the CanSeek property to determine whether the current instance supports seeking.

If offset is negative, the new position will precede the position specified by origin by the number of bytes specified by offset. If offset is zero, the new position will be the position specified by origin. If offset is positive, the new position will follow the position specified by origin by the number of bytes specified by offset.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FormattedCompressedStream Class
FormattedCompressedStream Members
Base Implementation in Seek