MathFunction

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

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

public final class MathFunction extends MathElementBase implements IMathFunction, IHasControlCharacterProperties

Specifies a function of an argument.


Example:
 
 MathFunction func = new MathFunction("sin", new MathematicalText("x"));

Constructors

ConstructorDescription
MathFunction(IMathElement funcName, IMathElement baseArgument)Initializes a new instance of the MathFunction class.
MathFunction(String funcName, IMathElement baseArgument)Initializes a new instance of the MathFunction class.

Methods

MethodDescription
getName()Function name For example, function names are sin and cos
getBase()Function Argument
getChildren()Get children elements
getControlCharacterProperties()Control Character Properties

MathFunction(IMathElement funcName, IMathElement baseArgument)

public MathFunction(IMathElement funcName, IMathElement baseArgument)

Initializes a new instance of the MathFunction class.


Example:
 
 MathFunction func = new MathFunction(new MathematicalText("sin"), new MathematicalText("x"));

Parameters:

ParameterTypeDescription
funcNameIMathElement
baseArgumentIMathElement

MathFunction(String funcName, IMathElement baseArgument)

public MathFunction(String funcName, IMathElement baseArgument)

Initializes a new instance of the MathFunction class.


Example:
 
 MathFunction func = new MathFunction("sin", new MathematicalText("x"));

Parameters:

ParameterTypeDescription
funcNamejava.lang.String
baseArgumentIMathElement

getName()

public final IMathElement getName()

Function name For example, function names are sin and cos


Example:
 
 IMathFunction func = new MathematicalText("sin").function("x");
 IMathElement funcName = func.getName();

Returns: IMathElement

getBase()

public final IMathElement getBase()

Function Argument


Example:
 
 IMathFunction func = new MathematicalText("sin").function("x");
 IMathElement base = func.getBase();

Returns: IMathElement

getChildren()

public final IMathElement[] getChildren()

Get children elements

Returns: com.aspose.slides.IMathElement[] - Array of IMathElement

getControlCharacterProperties()

public final OmmlControlCharacterPPTXUnsupportedProps getControlCharacterProperties()

Control Character Properties

Returns: com.aspose.slides.OmmlControlCharacterPPTXUnsupportedProps