IMathElementDivide Method (IMathElement, MathFractionTypes)

Creates a fraction of the specified type with this numerator and specified denominator

Namespace:  Aspose.Slides.MathText
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 20.11.0.0 (20.11)
Syntax
IMathFraction Divide(
	IMathElement denominator,
	MathFractionTypes fractionType
)

Parameters

denominator
Type: Aspose.Slides.MathTextIMathElement
Denominator
fractionType
Type: Aspose.Slides.MathTextMathFractionTypes
Fraction type: Bar, NoBar, Skewed, Linear

Return Value

Type: IMathFraction
new fraction
Examples
Example:
[C#]
IMathElement numerator = new MathematicalText("x");
IMathElement denumerator = new MathematicalText("y");
IMathFraction fraction = numerator.Divide(denumerator, MathFractionTypes.Linear);
See Also