ITextDocument2::CheckTextLimit method

Checks whether the number of characters to be added would exceed the maximum text limit.

Syntax


HRESULT CheckTextLimit(
  [in]   long cch,
  [out]  long *pcch
);

Parameters

cch [in]

Type: long

The number of characters to be added.

pcch [out]

Type: long*

The number of characters that exceed the maximum text limit. This parameter is 0 if the number of characters does not exceed the limit.

Return value

Type: HRESULT

If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll

See also

ITextDocument2

 

 

Community Additions

ADD
Show:
© 2014 Microsoft