| TextRangeSetText Method |
(TOM 2 only)
Sets the text of this range.
Namespace: TextObjectModelAssembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax public void SetText(
string value,
[OptionalAttribute] RichTextFlags options
)
Public Sub SetText (
value As String,
<OptionalAttribute> options As RichTextFlags
)
public:
void SetText(
String^ value,
[OptionalAttribute] RichTextFlags options
)
Parameters
- value
- Type: SystemString
The new text. - options (Optional)
- Type: TextObjectModelRichTextFlags
Flags controlling how the text is inserted in the range.
Exceptions Exception | Condition |
---|
NotSupportedException |
The underlying COM object does not implement the ITextRange2 interface.
|
See Also