Nary()

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

Creates a N-ary operator

virtual System::SharedPtr<IMathNaryOperator> Aspose::Slides::MathText::IMathElement::Nary(MathNaryOperatorTypes type, System::SharedPtr<IMathElement> lowerLimit, System::SharedPtr<IMathElement> upperLimit)=0

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:

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

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

Creates a N-ary operator

virtual System::SharedPtr<IMathNaryOperator> Aspose::Slides::MathText::IMathElement::Nary(MathNaryOperatorTypes type, System::String lowerLimit, System::String upperLimit)=0

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"\U0001d45b");

See Also