| TextRangeAddSubrange Method |
(TOM 2 only)
Adds a subrange to this range.
Namespace: TextObjectModelAssembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax public void AddSubrange(
int index,
int length,
bool activate
)
Public Sub AddSubrange (
index As Integer,
length As Integer,
activate As Boolean
)
public:
void AddSubrange(
int index,
int length,
bool activate
)
Parameters
- index
- Type: SystemInt32
The active-end character position of the subrange. - length
- Type: SystemInt32
The length of the subrange. - activate
- Type: SystemBoolean
If true, the new subrange is the active subrange.
Exceptions Exception | Condition |
---|
NotSupportedException |
The underlying COM object does not implement the ITextRange2 interface.
|
See Also