MathFraction()

MathFraction::MathFraction(System::SharedPtr<IMathElement>, System::SharedPtr<IMathElement>, MathFractionTypes) constructor

Initializes MathFraction with the specified numerator, denominator and type

Aspose::Slides::MathText::MathFraction::MathFraction(System::SharedPtr<IMathElement> numerator, System::SharedPtr<IMathElement> denominator, MathFractionTypes fractionType)

Arguments

ParameterTypeDescription
numeratorSystem::SharedPtr<IMathElement>Numerator
denominatorSystem::SharedPtr<IMathElement>Denominator
fractionTypeMathFractionTypesFraction type

Remarks

Example:

auto mathFraction = System::MakeObject<MathFraction>(System::MakeObject<MathematicalText>(u"x"), System::MakeObject<MathematicalText>(u"y"), Aspose::Slides::MathText::MathFractionTypes::Linear);

MathFraction::MathFraction(System::SharedPtr<IMathElement>, System::SharedPtr<IMathElement>) constructor

Initializes a MathFraction of type ‘Bar’ with the specified numerator and denominator

Aspose::Slides::MathText::MathFraction::MathFraction(System::SharedPtr<IMathElement> numerator, System::SharedPtr<IMathElement> denominator)

Arguments

ParameterTypeDescription
numeratorSystem::SharedPtr<IMathElement>Numerator
denominatorSystem::SharedPtr<IMathElement>Denominator

Remarks

Example:

auto mathFraction = System::MakeObject<MathFraction>(System::MakeObject<MathematicalText>(u"x"), System::MakeObject<MathematicalText>(u"y"));

See Also