Divide()
Contents
[
Hide
]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
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);
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
Parameter | Type | Description |
---|---|---|
denominator | System::String | Denominator |
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
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, 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
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 String
- Namespace Aspose::Slides::MathText
- Library Aspose.Slides