Vcl.AxCtrls.TOleStream.Seek

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Seek(Offset: Longint; Origin: Word): Longint; override;

C++

virtual System::LongInt __fastcall Seek(System::LongInt Offset, System::Word Origin)/* overload */;
inline __int64 __fastcall  Seek(const __int64 Offset, System::Classes::TSeekOrigin Origin){ return System::Classes::TStream::Seek(Offset, Origin); }
inline __int64 __fastcall  Seek(const __int64 Offset, System::Word Origin){ return System::Classes::TStream::Seek(Offset, Origin); }

Properties

Type Visibility Source Unit Parent
function public
Vcl.AxCtrls.pas
Vcl.AxCtrls.hpp
Vcl.AxCtrls TOleStream

Description

Resets the current position of the stream.

Use Seek to move the current position by the indicated offset. Seek uses the stream interface to change the current position to the value indicated by the Offset and Origin parameters.

The Origin parameter indicates how to interpret the Offset parameter. Origin should be one of the following values:



Value Meaning

soFromBeginning

Offset is from the beginning of the Ole stream. Seek moves to the position Offset. Offset must be >= 0.

soFromCurrent

Offset is from the current position in the Ole stream. Seek moves to Position + Offset.

soFromEnd

Offset is from the end of the Ole stream. Offset must be <= 0 to indicate a number of bytes before the end of the stream.



Seek returns the new value of the Position property.

See Also