IMathElementAsArgumentOfFunction Method (MathFunctionsOfTwoArguments, IMathElement)

Takes specified function using this instance as the argument and specified additional argument

Namespace:  Aspose.Slides.MathText
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 20.11.0.0 (20.11)
Syntax
IMathFunction AsArgumentOfFunction(
	MathFunctionsOfTwoArguments functionType,
	IMathElement additionalArgument
)

Parameters

functionType
Type: Aspose.Slides.MathTextMathFunctionsOfTwoArguments
One of the common function type of two arguments: Log, Lim, Min, Max
additionalArgument
Type: Aspose.Slides.MathTextIMathElement
Additional argument depending on the type of function

Return Value

Type: IMathFunction
New math element of type IMathFunction
Examples
Example:
[C#]
IMathElement functionArg = new MathematicalText("x");
IMathElement logarithmBase = new MathematicalText("5");
IMathFunction func = functionArg.AsArgumentOfFunction(MathFunctionsOfTwoArguments.Log, logarithmBase); // Returns the logarithm of 'x' to the base '5'
See Also