IMathElementSetSuperscript Method (IMathElement)

Creates superscript

Namespace:  Aspose.Slides.MathText
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 20.11.0.0 (20.11)
Syntax
IMathSuperscriptElement SetSuperscript(
	IMathElement superscript
)

Parameters

superscript
Type: Aspose.Slides.MathTextIMathElement
Superscript (upper index on the right)

Return Value

Type: IMathSuperscriptElement
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