Click or drag to resize
TextStringsSetFormattedText Method
Replaces text with formatted text.

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
public void SetFormattedText(
	TextRange oldRange,
	TextRange newRange
)

Parameters

oldRange
Type: TextObjectModelTextRange
The text to be replaced.
newRange
Type: TextObjectModelTextRange
The formatted text.
Exceptions
ExceptionCondition
ArgumentNullExceptionoldRange is null, or newRange is null.
See Also