ITextDocument2::CheckTextLimit method (tom.h)

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

[in] cch

Type: long

The number of characters to be added.

[out] pcch

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

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header tom.h
DLL Msftedit.dll

See also

ITextDocument2