Click or drag to resize
TextRangeLinearize Method
(TOM 2 only) Translates the built-up math, ruby, and other inline objects in this range to linearized form.

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
public void Linearize(
	[OptionalAttribute] MathLinearizeFlags options
)

Parameters

options (Optional)
Type: TextObjectModelMathLinearizeFlags
Combination of MathLinearizeFlags flags.
Exceptions
ExceptionCondition
NotSupportedException The underlying COM object does not implement the ITextRange2 interface.
NotImplementedException The TOM implementation used by the range does not support math.
Examples
The following example demonstrates how to build-down (linearize) math text:
C#
void LinearizeExample(TextRange range) {
    range.Text = @"f(x)=(sin a)/(cos b)";
    range.BuildUpMath();
    Console.WriteLine("Built-up form: {0}", range.Text);

    range.Linearize();
    Console.WriteLine("Linear form: {0}", range.Text);
}
See Also