Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ITextStoreAnchor::GetEnd method

The ITextStoreAnchor::GetEnd method returns an anchor positioned at the end of the text stream.

Syntax


HRESULT GetEnd(
  [out]  IAnchor **ppaEnd
);

Parameters

ppaEnd [out]

Pointer to an anchor object located at the very end of the text stream.

Return value

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

E_INVALIDARG

ppaEnd is invalid.

E_NOTIMPL

The application has not implemented this method. This is usually an indication that calculating the end position requires excessive resources. If the end position is necessary, you can use ITextStoreAnchor::GetText to calculate it, though this might also be a memory-intensive operation, paging in arbitrarily large amounts of memory from disk.

E_OUTOFMEMORY

The attempt to instantiate an anchor at the end of the document failed.

TS_E_NOLOCK

The caller does not have a read-only lock.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Textstor.h

IDL

Textstor.idl

DLL

Msctf.dll

See also

ITextStoreAnchor
ITextStoreAnchor::GetText

 

 

Community Additions

Show:
© 2014 Microsoft