Divide()

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

Creates a fraction with this numerator and specified denominator

virtual System::SharedPtr<IMathFraction> Aspose::Slides::MathText::IMathElement::Divide(System::SharedPtr<IMathElement> denominator)=0

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);

IMathElement::Divide(System::String) method

Creates a fraction with this numerator and specified denominator

virtual System::SharedPtr<IMathFraction> Aspose::Slides::MathText::IMathElement::Divide(System::String denominator)=0

Arguments

ParameterTypeDescription
denominatorSystem::StringDenominator

Return Value

new fraction

Remarks

Example:

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

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

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

virtual System::SharedPtr<IMathFraction> Aspose::Slides::MathText::IMathElement::Divide(System::SharedPtr<IMathElement> denominator, MathFractionTypes fractionType)=0

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, MathFractionTypes::Linear);

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

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

virtual System::SharedPtr<IMathFraction> Aspose::Slides::MathText::IMathElement::Divide(System::String denominator, MathFractionTypes fractionType)=0

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