2012年9月6日 星期四

TSF Interface -- IAnchor

IAnchor是由TSF manager實現,

Members:

Methods:

ClearChangeHistory()
Clears the change history flags.
Clone([out] IAnchor **ppaClone)
Produces a new anchor object positioned at the same location, and with the same gravity, as the current anchor.
Compare( [in] IAnchor *paWith, [out] LONG *plResult)
Compares the relative position of two anchors within a text stream.
GetChangeHistory( [out] DWORD *pdwHistory)
Gets the change history of deletions that have occurred immediately preceding or following the anchor.
GetGravity( [out] TsGravity *pgravity)
Retrieves the gravity of the anchor.
IsEqual( [in] IAnchor *paWith, [out] BOOL *pfEqual)
Specifies the equality or inequality of the positions of two anchors.
SetChangeHistoryMask( [in] DWORD dwMask)
Not implemented.
SetGravity( [in] TsGravity gravity)
Sets the gravity of the anchor.
Shift( [in] DWORD dwFlags,[in] LONG cchReq,[out] LONG *pcch,[in] IAnchor *paHaltAnchor)
Shifts the anchor forward or backward.
ShiftRegion( [in] DWORD dwFlags,[in] TsShiftDir dir,[out] BOOL *pfNoRegion)
Shifts the anchor into an adjacent region in the text stream.
ShiftTo( [in] IAnchor *paSite)
Shifts the current anchor to the same position as another anchor.

沒有留言:

張貼留言