AsArgumentOfFunction()

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

ParameterTypeDescription
functionNameSystem::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

ParameterTypeDescription
functionNameSystem::StringFunction 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

ParameterTypeDescription
functionTypeMathFunctionsOfOneArgumentOne 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

ParameterTypeDescription
functionTypeMathFunctionsOfTwoArgumentsOne of the common function type of two arguments: Log, Lim, Min, Max
additionalArgumentSystem::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

ParameterTypeDescription
functionTypeMathFunctionsOfTwoArgumentsOne of the common function type of two arguments: Log, Lim, Min, Max
additionalArgumentSystem::StringAdditional 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