Click or drag to resize
TextRangeGetRectangle Method
(TOM 2 only) Retrieves a rectangle of the specified type for the current range.

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
public Rectangle GetRectangle(
	RangePointFlags type,
	[OptionalAttribute] VerticalPosition vPos,
	[OptionalAttribute] HorizontalPosition hPos
)

Parameters

type
Type: TextObjectModelRangePointFlags
The type of rectangle to return.
vPos (Optional)
Type: TextObjectModelVerticalPosition
The vertical position.
hPos (Optional)
Type: TextObjectModelHorizontalPosition
The horizontal position.

Return Value

Type: Rectangle
Exceptions
ExceptionCondition
NotSupportedException The underlying COM object does not implement the ITextRange2 interface.
See Also