Add

IMathElementCollection.Add method

Adds a math element to the end of the collection.

public void Add(IMathElement item)
ParameterTypeDescription
itemIMathElementThe IMathElement to be added to the end of the collection.

Examples

Example:

[C#]
IMathElementCollection collection = new MathBlock(new MathematicalText("x"));
collection.Add(new MathematicalText("+"));
collection.Add(new MathRadical(new MathematicalText("x"), new MathematicalText("3")));

See Also