Click or drag to resize
TextRangeInlineObject Property
(TOM 2 only) Gets or sets the properties of the inline object at the range active end.

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
public InlineObjectProperties InlineObject { get; set; }

Property Value

Type: InlineObjectProperties
Exceptions
ExceptionCondition
NotSupportedException The underlying COM object does not implement the ITextRange2 interface.
Remarks
InlineObjectProperties is a value type. You must re-assign the value of this property if you make any changes.
Examples
The following example demonstrates how to retrieve the properties of an inline math object:
C#
void InlineObjectExample(TextRange range) {
    range.Text = @"f(x)=(sin a)/(cos b)";
    range.BuildUpMath();

    range.Collapse(RangePosition.Start);
    range.Move(TextUnit.Character, 7);

    // object type is "Fraction"
    Console.WriteLine("Object type at position {0} is: {1}", range.Start, range.InlineObject.Type);
}
See Also