| TextRangeGetRectangle Method |
(TOM 2 only)
Retrieves a rectangle of the specified type for the current range.
Namespace: TextObjectModelAssembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax public Rectangle GetRectangle(
RangePointFlags type,
[OptionalAttribute] VerticalPosition vPos,
[OptionalAttribute] HorizontalPosition hPos
)
Public Function GetRectangle (
type As RangePointFlags,
<OptionalAttribute> vPos As VerticalPosition,
<OptionalAttribute> hPos As HorizontalPosition
) As Rectangle
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:
RectangleExceptions Exception | Condition |
---|
NotSupportedException |
The underlying COM object does not implement the ITextRange2 interface.
|
See Also