Divide()
Contents
[
Hide
]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
Parameter | Type | Description |
---|---|---|
denominator | System::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
Parameter | Type | Description |
---|---|---|
denominator | System::String | Denominator |
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
Parameter | Type | Description |
---|---|---|
denominator | System::SharedPtr<IMathElement> | Denominator |
fractionType | MathFractionTypes | Fraction 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
Parameter | Type | Description |
---|---|---|
denominator | System::String | Denominator |
fractionType | MathFractionTypes | Fraction 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
- Enum MathFractionTypes
- Typedef SharedPtr
- Class IMathFraction
- Class IMathElement
- Class MathElementBase
- Class String
- Namespace Aspose::Slides::MathText
- Library Aspose.Slides