ITfComposition::ShiftEnd Method Home
ITfComposition::ShiftEnd Method

Syntax

HRESULT ShiftEnd(
  [in]  TfEditCookie ecWrite,
  [in]  ITfRange *pNewEnd
);

Parameters

ecWrite [in]

Contains an edit cookie that identifies the edit context obtained from ITfEditSession::DoEditSession.

pNewEnd [in]

Pointer to an ITfRange object that contains the new end anchor position. The end anchor of the context will be moved to the end anchor of this range. This method fails if the end anchor of this range is positioned prior to the start anchor of the composition.

Return Value

The method can return one of the following values.

ValueDescription
S_OK

The method was successful.

E_FAIL

An unspecified error occurred.

E_INVALIDARG

The end anchor of pNewEnd is positioned prior to the start anchor of the composition or pNewStart is invalid.

E_UNEXPECTED

The composition has already terminated.

TF_E_NOLOCK

The edit context identified by ecWrite does not have a read/write lock.

 

Remarks

This method causes the GUID_PROP_COMPOSING property to be removed from any text removed from the composition. Likewise, the GUID_PROP_COMPOSING property is also added to any text added to the composition.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
RedistributableTSF 1.0 onWindows NT 4.0,Windows 2000 ProfessionalandWindows MeWindows 98
HeaderMsctf.idl and Msctf.h
DLLMsctf.dll

See Also

ITfComposition
ITfEditSession::DoEditSession
ITfRange

Send comments about this topic to Microsoft

Build date: 7/14/2009

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View