| TextExtensionsRemove Method |
Removes a sequence of characters from the range.
Namespace: TextObjectModelAssembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax public static void Remove(
this TextRange range,
int index,
int count
)
<ExtensionAttribute>
Public Shared Sub Remove (
range As TextRange,
index As Integer,
count As Integer
)
public:
[ExtensionAttribute]
static void Remove(
TextRange^ range,
int index,
int count
)
Parameters
- range
- Type: TextObjectModelTextRange
The range to remove the characters from. - index
- Type: SystemInt32
Character position (relative to the start of the range) to begin removing characters. - count
- Type: SystemInt32
The number of characters to remove.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
TextRange. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | index does not fall within the bounds of the
range, or count is negative, or
count is greater-than the number of characters
in the range after index.
|
Remarks See Also