Windows apps
Collapse the table of content
Expand the table of content
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.

ITextStoreACP2::GetEndACP method

Gets the number of characters in a document.

Syntax


HRESULT GetEndACP(
  [out] LONG *pacp
);

Parameters

pacp [out]

Receives the character position of the last character in the document plus one.

Return value

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

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 GetText to calculate it, though this can also be a memory-intensive operation, paging in arbitrarily large amounts of memory from disk.

TS_E_NOLOCK

The caller does not have a read-only lock.

 

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Textstor.h

IDL

Textstor.idl

DLL

Msctf.dll

See also

ITextStoreACP2
GetText

 

 

Show:
© 2017 Microsoft