SetSubscript

SetSubscript(IMathElement)

Creates subscript

public IMathSubscriptElement SetSubscript(IMathElement subscript)
ParameterTypeDescription
subscriptIMathElementSubscript (lower index on the right)

Return Value

New math element of type IMathSubscriptElement

Examples

Example:

[C#]
IMathElement element = new MathematicalText("N");
IMathElement index = new MathematicalText("i");
IMathSubscriptElement subscript = element.SetSubscript(index);

See Also


SetSubscript(string)

Creates subscript

public IMathSubscriptElement SetSubscript(string subscript)
ParameterTypeDescription
subscriptStringSubscript (lower index on the right)

Return Value

New math element of type IMathSubscriptElement

Examples

Example:

[C#]
IMathElement element = new MathematicalText("N");
IMathSubscriptElement subscript = element.SetSubscript("i");

See Also