Click or drag to resize
TextRangeSetText Method
(TOM 2 only) Sets the text of this range.

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
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
ExceptionCondition
NotSupportedException The underlying COM object does not implement the ITextRange2 interface.
See Also