| TextRangeInlineObject Property |
(TOM 2 only)
Gets or sets the properties of the inline object at the range active end.
Namespace: TextObjectModelAssembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax public InlineObjectProperties InlineObject { get; set; }
Public Property InlineObject As InlineObjectProperties
Get
Set
public:
property InlineObjectProperties InlineObject {
InlineObjectProperties get ();
void set (InlineObjectProperties value);
}
Property Value
Type:
InlineObjectPropertiesExceptions Exception | Condition |
---|
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:
void InlineObjectExample(TextRange range) {
range.Text = @"f(x)=(sin a)/(cos b)";
range.BuildUpMath();
range.Collapse(RangePosition.Start);
range.Move(TextUnit.Character, 7);
Console.WriteLine("Object type at position {0} is: {1}", range.Start, range.InlineObject.Type);
}
See Also