MathNaryOperator

Inheritance: java.lang.Object, com.aspose.slides.MathElementBase

All Implemented Interfaces: com.aspose.slides.IMathNaryOperator, com.aspose.slides.IHasControlCharacterProperties

public final class MathNaryOperator extends MathElementBase implements IMathNaryOperator, IHasControlCharacterProperties

Specifies an N-ary mathematical object, such as Summation and Integral. It consists of an operator, a base (or operand), and optional upper and lower limits. Examples of N-ary operators are: Summation, Union, Intersection, Integral


Example:
 
 IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");

Constructors

ConstructorDescription
MathNaryOperator(char operatorSymbol, IMathElement baseArgument, IMathElement lowerLimit, IMathElement upperLimit)Initializes a new instance of the MathNaryOperator class.
MathNaryOperator(char operatorSymbol, IMathElement baseArgument, IMathElement lowerLimit)Initializes a new instance of the MathNaryOperator class.
MathNaryOperator(char operatorSymbol, IMathElement baseArgument)Initializes a new instance of the MathNaryOperator class.

Methods

MethodDescription
getBase()Base argument
getSubscript()Specifies a subscript argument that, for example, in the case of an integral, sets the lower limit
getSuperscript()Specifies a supersript argument that, for example, in the case of an integral, sets the upper limit
getOperator()Nary Operator Character For example: ‘\u2211’, ‘\u222b’
setOperator(char value)Nary Operator Character For example: ‘\u2211’, ‘\u222b’
getLimitLocation()The location of limits (subscript and superscript)
setLimitLocation(int value)The location of limits (subscript and superscript)
getGrowToMatchOperandHeight()Operator Character grows vertically to match its operand height
setGrowToMatchOperandHeight(boolean value)Operator Character grows vertically to match its operand height
getHideSubscript()Hide Subscript
setHideSubscript(boolean value)Hide Subscript
getHideSuperscript()Hide Superscript
setHideSuperscript(boolean value)Hide Superscript
getChildren()Get children elements
getControlCharacterProperties()Control Character Properties

MathNaryOperator(char operatorSymbol, IMathElement baseArgument, IMathElement lowerLimit, IMathElement upperLimit)

public MathNaryOperator(char operatorSymbol, IMathElement baseArgument, IMathElement lowerLimit, IMathElement upperLimit)

Initializes a new instance of the MathNaryOperator class.


Example:
 
 IMathNaryOperator naryOperator = new MathNaryOperator('\u2211', new MathematicalText("i"), new MathematicalText("i=0"), new MathematicalText("\ud835\udc5b"));

Parameters:

ParameterTypeDescription
operatorSymbolcharNary operator symbol
baseArgumentIMathElementBase argument
lowerLimitIMathElementLower limit
upperLimitIMathElementUpper limit

MathNaryOperator(char operatorSymbol, IMathElement baseArgument, IMathElement lowerLimit)

public MathNaryOperator(char operatorSymbol, IMathElement baseArgument, IMathElement lowerLimit)

Initializes a new instance of the MathNaryOperator class.


Example:
 
 IMathNaryOperator naryOperator = new MathNaryOperator('\u2211', new MathematicalText("i"), new MathematicalText("i"));

Parameters:

ParameterTypeDescription
operatorSymbolcharNary operator symbol
baseArgumentIMathElementBase argument
lowerLimitIMathElementLower limit

MathNaryOperator(char operatorSymbol, IMathElement baseArgument)

public MathNaryOperator(char operatorSymbol, IMathElement baseArgument)

Initializes a new instance of the MathNaryOperator class.


Example:
 
 IMathNaryOperator naryOperator = new MathNaryOperator('\u2211', new MathematicalText("i"));

Parameters:

ParameterTypeDescription
operatorSymbolcharNary operator symbol
baseArgumentIMathElementBase argument

getBase()

public final IMathElement getBase()

Base argument


Example:
 
 IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
 IMathElement baseArg = naryOperator.getBase();

Returns: IMathElement

getSubscript()

public final IMathElement getSubscript()

Specifies a subscript argument that, for example, in the case of an integral, sets the lower limit


Example:
 
 IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
 IMathElement subscriptArg = naryOperator.getSubscript();

Returns: IMathElement

getSuperscript()

public final IMathElement getSuperscript()

Specifies a supersript argument that, for example, in the case of an integral, sets the upper limit


Example:
 
 IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
 IMathElement superscriptArg = naryOperator.getSuperscript();

Returns: IMathElement

getOperator()

public final char getOperator()

Nary Operator Character For example: ‘\u2211’, ‘\u222b’


Example:
 
 IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
 char operatorSymbol = naryOperator.getOperator();

Returns: char

setOperator(char value)

public final void setOperator(char value)

Nary Operator Character For example: ‘\u2211’, ‘\u222b’


Example:
 
 IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
 char operatorSymbol = naryOperator.getOperator();

Parameters:

ParameterTypeDescription
valuechar

getLimitLocation()

public final int getLimitLocation()

The location of limits (subscript and superscript)


Example:
 
 IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
 naryOperator.setLimitLocation(MathLimitLocations.SubscriptSuperscript);

Returns: int

setLimitLocation(int value)

public final void setLimitLocation(int value)

The location of limits (subscript and superscript)


Example:
 
 IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
 naryOperator.setLimitLocation(MathLimitLocations.SubscriptSuperscript);

Parameters:

ParameterTypeDescription
valueint

getGrowToMatchOperandHeight()

public final boolean getGrowToMatchOperandHeight()

Operator Character grows vertically to match its operand height


Example:
 
 IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
 naryOperator.setGrowToMatchOperandHeight(true);

Returns: boolean

setGrowToMatchOperandHeight(boolean value)

public final void setGrowToMatchOperandHeight(boolean value)

Operator Character grows vertically to match its operand height


Example:
 
 IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
 naryOperator.setGrowToMatchOperandHeight(true);

Parameters:

ParameterTypeDescription
valueboolean

getHideSubscript()

public final boolean getHideSubscript()

Hide Subscript


Example:
 
 IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
 naryOperator.setHideSubscript(true);

Returns: boolean

setHideSubscript(boolean value)

public final void setHideSubscript(boolean value)

Hide Subscript


Example:
 
 IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
 naryOperator.setHideSubscript(true);

Parameters:

ParameterTypeDescription
valueboolean

getHideSuperscript()

public final boolean getHideSuperscript()

Hide Superscript


Example:
 
 IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
 naryOperator.setHideSuperscript(true);

Returns: boolean

setHideSuperscript(boolean value)

public final void setHideSuperscript(boolean value)

Hide Superscript


Example:
 
 IMathNaryOperator naryOperator = new MathematicalText("x").nary(MathNaryOperatorTypes.Summation, "x=1", "100");
 naryOperator.setHideSuperscript(true);

Parameters:

ParameterTypeDescription
valueboolean

getChildren()

public final IMathElement[] getChildren()

Get children elements

Returns: com.aspose.slides.IMathElement[]

getControlCharacterProperties()

public final OmmlControlCharacterPPTXUnsupportedProps getControlCharacterProperties()

Control Character Properties

Returns: com.aspose.slides.OmmlControlCharacterPPTXUnsupportedProps