Insert

IMathBlockCollection.Insert method

Inserts IMathBlock into the collection at the specified index.

public void Insert(int index, IMathBlock item)
ParameterTypeDescription
indexInt32The zero-based index at which an item should be inserted.
itemIMathBlockThe IMathBlock to insert.

Examples

Example:

[C#]
IMathBlockCollection blockCollection = new MathParagraph();
IMathBlock block = new MathBlock(new MathematicalText("y"));
blockCollection.Insert(0, block);

See Also