Click or drag to resize
TextDocumentGetClientRectangle Method
(TOM 2 only) Retrieves the client rectangle of the rich edit control.

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
public Rectangle GetClientRectangle(
	[OptionalAttribute] ClientRectangleFlags flags
)

Parameters

flags (Optional)
Type: TextObjectModelClientRectangleFlags
The client rectangle retrieval options.

Return Value

Type: Rectangle
Exceptions
ExceptionCondition
NotSupportedException The underlying COM object does not implement the ITextDocument2 interface.
Remarks
The bounds of the rectangle are expressed in terms of pixels.
See Also