MathElementBaseSetSuperscript Method (IMathElement)

Creates superscript

Namespace:  Aspose.Slides.MathText
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 20.12.0.0 (20.12)
Syntax
public 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

Implements

IMathElementSetSuperscript(IMathElement)
Examples
Example:
[C#]
IMathElement element = new MathematicalText("N");
IMathElement index = new MathematicalText("4");
IMathSuperscriptElement superscript = element.SetSuperscript(index);
See Also