AsArgumentOfFunction()
Contents
[
Hide
]MathElementBase::AsArgumentOfFunction(System::SharedPtr<IMathElement>) method
Takes specified function using this instance as the argument
System::SharedPtr<IMathFunction> Aspose::Slides::MathText::MathElementBase::AsArgumentOfFunction(System::SharedPtr<IMathElement> functionName) override
Arguments
Parameter | Type | Description |
---|---|---|
functionName | System::SharedPtr<IMathElement> | Function name |
Return Value
New math element of type IMathFunction
Remarks
Example:
auto functionName = System::MakeObject<MathematicalText>(u"sin");
auto functionArg = System::MakeObject<MathematicalText>(u"x");
auto func = functionArg->AsArgumentOfFunction(functionName);
MathElementBase::AsArgumentOfFunction(System::String) method
Takes specified function using this instance as the argument
System::SharedPtr<IMathFunction> Aspose::Slides::MathText::MathElementBase::AsArgumentOfFunction(System::String functionName) override
Arguments
Parameter | Type | Description |
---|---|---|
functionName | System::String | Function name |
Return Value
New math element of type IMathFunction
Remarks
Example:
auto functionArg = System::MakeObject<MathematicalText>(u"x");
auto func = functionArg->AsArgumentOfFunction(u"cos");
MathElementBase::AsArgumentOfFunction(MathFunctionsOfOneArgument) method
Takes specified function using this instance as the argument
System::SharedPtr<IMathFunction> Aspose::Slides::MathText::MathElementBase::AsArgumentOfFunction(MathFunctionsOfOneArgument functionType) override
Arguments
Parameter | Type | Description |
---|---|---|
functionType | MathFunctionsOfOneArgument | One of the common function type of one argument |
Return Value
New math element of type IMathFunction
Remarks
Example:
auto functionName = System::MakeObject<MathematicalText>(u"sin");
auto functionArg = System::MakeObject<MathematicalText>(u"x");
auto func = functionArg->AsArgumentOfFunction(functionName);
MathElementBase::AsArgumentOfFunction(MathFunctionsOfTwoArguments, System::SharedPtr<IMathElement>) method
Takes specified function using this instance as the argument and specified additional argument
System::SharedPtr<IMathFunction> Aspose::Slides::MathText::MathElementBase::AsArgumentOfFunction(MathFunctionsOfTwoArguments functionType, System::SharedPtr<IMathElement> additionalArgument) override
Arguments
Parameter | Type | Description |
---|---|---|
functionType | MathFunctionsOfTwoArguments | One of the common function type of two arguments: Log, Lim, Min, Max |
additionalArgument | System::SharedPtr<IMathElement> | Additional argument depending on the type of function |
Return Value
New math element of type IMathFunction
Remarks
Example:
auto functionArg = System::MakeObject<MathematicalText>(u"x");
auto logarithmBase = System::MakeObject<MathematicalText>(u"5");
auto func = functionArg->AsArgumentOfFunction(Aspose::Slides::MathText::MathFunctionsOfTwoArguments::Log, logarithmBase);
// Returns the logarithm of 'x' to the base '5'
MathElementBase::AsArgumentOfFunction(MathFunctionsOfTwoArguments, System::String) method
Takes specified function using this instance as the argument and specified additional argument
System::SharedPtr<IMathFunction> Aspose::Slides::MathText::MathElementBase::AsArgumentOfFunction(MathFunctionsOfTwoArguments functionType, System::String additionalArgument) override
Arguments
Parameter | Type | Description |
---|---|---|
functionType | MathFunctionsOfTwoArguments | One of the common function type of two arguments: Log, Lim, Min, Max |
additionalArgument | System::String | Additional argument depending on the type of function |
Return Value
New math element of type IMathFunction
Remarks
Example:
auto functionArg = System::MakeObject<MathematicalText>(u"x");
auto func = functionArg->AsArgumentOfFunction(Aspose::Slides::MathText::MathFunctionsOfTwoArguments::Log, u"5");
// Returns the logarithm of 'x' to the base '5'
See Also
- Enum MathFunctionsOfOneArgument
- Enum MathFunctionsOfTwoArguments
- Typedef SharedPtr
- Class IMathFunction
- Class IMathElement
- Class MathElementBase
- Class String
- Namespace Aspose::Slides::MathText
- Library Aspose.Slides