| TextRangeGetSubrange Method |
(TOM 2 only)
Retrieves a subrange in a range.
Namespace: TextObjectModelAssembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax public void GetSubrange(
int subrange,
out int index,
out int length
)
Public Sub GetSubrange (
subrange As Integer,
<OutAttribute> ByRef index As Integer,
<OutAttribute> ByRef length As Integer
)
public:
void GetSubrange(
int subrange,
[OutAttribute] int% index,
[OutAttribute] int% length
)
Parameters
- subrange
- Type: SystemInt32
The subrange index. - index
- Type: SystemInt32
The character position for the start of the subrange. - length
- Type: SystemInt32
The length of the subrange.
Exceptions Exception | Condition |
---|
NotSupportedException |
The underlying COM object does not implement the ITextRange2 interface.
|
See Also