Divide()

MathElementBase::Divide(System::SharedPtr<IMathElement>) method

Creates a fraction with this numerator and specified denominator

System::SharedPtr<IMathFraction> Aspose::Slides::MathText::MathElementBase::Divide(System::SharedPtr<IMathElement> denominator) override

Arguments

ParameterTypeDescription
denominatorSystem::SharedPtr<IMathElement>Denominator

Return Value

new fraction

Remarks

Example:

auto numerator = System::MakeObject<MathematicalText>(u"x");
auto denumerator = System::MakeObject<MathematicalText>(u"y");
auto fraction = numerator->Divide(denumerator);

MathElementBase::Divide(System::String) method

Creates a fraction with this numerator and specified denominator

System::SharedPtr<IMathFraction> Aspose::Slides::MathText::MathElementBase::Divide(System::String denominator) override

Arguments

ParameterTypeDescription
denominatorSystem::StringDenominator

Return Value

new fraction

Remarks

Example:

auto numerator = System::MakeObject<MathematicalText>(u"x");
auto fraction = numerator->Divide(u"y");

MathElementBase::Divide(System::SharedPtr<IMathElement>, MathFractionTypes) method

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

System::SharedPtr<IMathFraction> Aspose::Slides::MathText::MathElementBase::Divide(System::SharedPtr<IMathElement> denominator, MathFractionTypes fractionType) override

Arguments

ParameterTypeDescription
denominatorSystem::SharedPtr<IMathElement>Denominator
fractionTypeMathFractionTypesFraction type: Bar, NoBar, Skewed, Linear

Return Value

new fraction

Remarks

Example:

auto numerator = System::MakeObject<MathematicalText>(u"x");
auto denumerator = System::MakeObject<MathematicalText>(u"y");
auto fraction = numerator->Divide(denumerator, Aspose::Slides::MathText::MathFractionTypes::Linear);

MathElementBase::Divide(System::String, MathFractionTypes) method

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

System::SharedPtr<IMathFraction> Aspose::Slides::MathText::MathElementBase::Divide(System::String denominator, MathFractionTypes fractionType) override

Arguments

ParameterTypeDescription
denominatorSystem::StringDenominator
fractionTypeMathFractionTypesFraction type: Bar, NoBar, Skewed, Linear

Return Value

new fraction

Remarks

Example:

auto numerator = System::MakeObject<MathematicalText>(u"x");
auto fraction = numerator->Divide(u"y", Aspose::Slides::MathText::MathFractionTypes::Linear);

See Also