Click or drag to resize
TextDocumentCheckTextLimit Method
(TOM 2 only) Checks whether the number of characters to be added would exceed the maximum text limit.

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
public int CheckTextLimit(
	int count
)

Parameters

count
Type: SystemInt32
The number of characters to be added.

Return Value

Type: Int32
The number of characters that exceed the maximum text limit. This parameter is 0 if the number of characters does not exceed the limit.
Exceptions
ExceptionCondition
NotSupportedException The underlying COM object does not implement the ITextDocument2 interface.
See Also