AsArgumentOfFunction
Contents
[
Hide
]AsArgumentOfFunction(IMathElement)
Takes specified function using this instance as the argument
public IMathFunction AsArgumentOfFunction(IMathElement functionName)
| Parameter | Type | Description |
|---|---|---|
| functionName | IMathElement | Function name |
Return Value
New math element of type IMathFunction
Examples
Example:
[C#]
IMathElement functionName = new MathematicalText("sin");
IMathElement functionArg = new MathematicalText("x");
IMathFunction func = functionArg.AsArgumentOfFunction(functionName);
See Also
- interface IMathFunction
- interface IMathElement
- class MathElementBase
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides
AsArgumentOfFunction(string)
Takes specified function using this instance as the argument
public IMathFunction AsArgumentOfFunction(string functionName)
| Parameter | Type | Description |
|---|---|---|
| functionName | String | Function name |
Return Value
New math element of type IMathFunction
Examples
Example:
[C#]
IMathElement functionArg = new MathematicalText("x");
IMathFunction func = functionArg.AsArgumentOfFunction("cos");
See Also
- interface IMathFunction
- class MathElementBase
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides
AsArgumentOfFunction(MathFunctionsOfOneArgument)
Takes specified function using this instance as the argument
public IMathFunction AsArgumentOfFunction(MathFunctionsOfOneArgument functionType)
| Parameter | Type | Description |
|---|---|---|
| functionType | MathFunctionsOfOneArgument | One of the common function type of one argument |
Return Value
New math element of type IMathFunction
Examples
Example:
[C#]
IMathElement functionName = new MathematicalText("sin");
IMathElement functionArg = new MathematicalText("x");
IMathFunction func = functionArg.AsArgumentOfFunction(functionName);
See Also
- interface IMathFunction
- enum MathFunctionsOfOneArgument
- class MathElementBase
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides
AsArgumentOfFunction(MathFunctionsOfTwoArguments, IMathElement)
Takes specified function using this instance as the argument and specified additional argument
public IMathFunction AsArgumentOfFunction(MathFunctionsOfTwoArguments functionType,
IMathElement additionalArgument)
| Parameter | Type | Description |
|---|---|---|
| functionType | MathFunctionsOfTwoArguments | One of the common function type of two arguments: Log, Lim, Min, Max |
| additionalArgument | IMathElement | Additional argument depending on the type of function |
Return Value
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
- interface IMathFunction
- enum MathFunctionsOfTwoArguments
- interface IMathElement
- class MathElementBase
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides
AsArgumentOfFunction(MathFunctionsOfTwoArguments, string)
Takes specified function using this instance as the argument and specified additional argument
public IMathFunction AsArgumentOfFunction(MathFunctionsOfTwoArguments functionType,
string additionalArgument)
| Parameter | Type | Description |
|---|---|---|
| functionType | MathFunctionsOfTwoArguments | One of the common function type of two arguments: Log, Lim, Min, Max |
| additionalArgument | String | Additional argument depending on the type of function |
Return Value
New math element of type IMathFunction
Examples
Example:
[C#]
IMathElement functionArg = new MathematicalText("x");
IMathFunction func = functionArg.AsArgumentOfFunction(MathFunctionsOfTwoArguments.Log, "5"); // Returns the logarithm of 'x' to the base '5'
See Also
- interface IMathFunction
- enum MathFunctionsOfTwoArguments
- class MathElementBase
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides