| TextDocumentGetClientRectangle Method |
(TOM 2 only)
Retrieves the client rectangle of the rich edit control.
Namespace: TextObjectModelAssembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax public Rectangle GetClientRectangle(
[OptionalAttribute] ClientRectangleFlags flags
)
Public Function GetClientRectangle (
<OptionalAttribute> flags As ClientRectangleFlags
) As Rectangle
public:
Rectangle GetClientRectangle(
[OptionalAttribute] ClientRectangleFlags flags
)
Parameters
- flags (Optional)
- Type: TextObjectModelClientRectangleFlags
The client rectangle retrieval options.
Return Value
Type:
RectangleExceptions Exception | Condition |
---|
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