Nary()

MathElementBase::Nary(MathNaryOperatorTypes, System::SharedPtr<IMathElement>, System::SharedPtr<IMathElement>) method

Creates a N-ary operator

System::SharedPtr<IMathNaryOperator> Aspose::Slides::MathText::MathElementBase::Nary(MathNaryOperatorTypes type, System::SharedPtr<IMathElement> lowerLimit, System::SharedPtr<IMathElement> upperLimit) override

Arguments

ParameterTypeDescription
typeMathNaryOperatorTypesThe N-ary operator type
lowerLimitSystem::SharedPtr<IMathElement>The lower limit
upperLimitSystem::SharedPtr<IMathElement>The upper limit

Return Value

New instance of type IMathNaryOperator

Remarks

Example:

auto baseElement = System::MakeObject<MathematicalText>(u"i-1");
auto lowerLimit = System::MakeObject<MathematicalText>(u"i=0");
auto upperLimit = System::MakeObject<MathematicalText>(u"\U0001d465");
auto naryOperator = baseElement->Nary(Aspose::Slides::MathText::MathNaryOperatorTypes::Summation, lowerLimit, upperLimit);

MathElementBase::Nary(MathNaryOperatorTypes, System::String, System::String) method

Creates a N-ary operator

System::SharedPtr<IMathNaryOperator> Aspose::Slides::MathText::MathElementBase::Nary(MathNaryOperatorTypes type, System::String lowerLimit, System::String upperLimit) override

Arguments

ParameterTypeDescription
typeMathNaryOperatorTypesThe N-ary operator type
lowerLimitSystem::StringThe lower limit
upperLimitSystem::StringThe upper limit

Return Value

New instance of type IMathNaryOperator

Remarks

Example:

auto naryOperator = System::MakeObject<MathematicalText>(u"i")->Nary(Aspose::Slides::MathText::MathNaryOperatorTypes::Summation, u"i=0", u"\U0001d465");

See Also