SetSuperscript

SetSuperscript(IMathElement)

Creates superscript

public IMathSuperscriptElement SetSuperscript(IMathElement superscript)
ParameterTypeDescription
superscriptIMathElementSuperscript (upper index on the right)

Return Value

New math element of type IMathSuperscriptElement

Examples

Example:

[C#]
IMathElement element = new MathematicalText("N");
IMathElement index = new MathematicalText("4");
IMathSuperscriptElement superscript = element.SetSuperscript(index);

See Also


SetSuperscript(string)

Creates superscript

public IMathSuperscriptElement SetSuperscript(string superscript)
ParameterTypeDescription
superscriptStringSuperscript (upper index on the right)

Return Value

New math element of type IMathSuperscriptElement

Examples

Example:

[C#]
IMathElement element = new MathematicalText("N");
IMathSuperscriptElement superscript = element.SetSuperscript("4");

See Also