PagePorter Class Library

HtmlPageReader.Seek Method 

Seeks to a specified position in the file.

[Visual Basic]
Public Function Seek( _
   ByVal offset As Integer, _
   ByVal origin As SeekOrigin _
) As Integer
[C#]
public int Seek(
   int offset,
   SeekOrigin origin
);

Parameters

offset
The point relative to origin from which to begin seeking.
origin
Specifies the beginning, the end, or the current position as a reference point for origin, using a value of type SeekOrigin.

Return Value

The new read pointer.

Remarks

The internal flag that indicates if the current position is inside a <script> block is not updated as a result of calling the Seek method or setting the Position property.

See Also

HtmlPageReader Class | Parastream.Web.UI Namespace