AsArgumentOfFunction()

IMathElement::AsArgumentOfFunction(System::SharedPtr<IMathElement>) method

Takes specified function using this instance as the argument

virtual System::SharedPtr<IMathFunction> Aspose::Slides::MathText::IMathElement::AsArgumentOfFunction(System::SharedPtr<IMathElement> functionName)=0

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);

IMathElement::AsArgumentOfFunction(System::String) method

Takes specified function using this instance as the argument

virtual System::SharedPtr<IMathFunction> Aspose::Slides::MathText::IMathElement::AsArgumentOfFunction(System::String functionName)=0

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");

IMathElement::AsArgumentOfFunction(MathFunctionsOfOneArgument) method

Takes specified function using this instance as the argument

virtual System::SharedPtr<IMathFunction> Aspose::Slides::MathText::IMathElement::AsArgumentOfFunction(MathFunctionsOfOneArgument functionType)=0

Arguments

ParameterTypeDescription
functionTypeMathFunctionsOfOneArgumentOne of the common function type of one argument

Return Value

New math element of type IMathFunction

Remarks

Example:

auto functionArg = System::MakeObject<MathematicalText>(u"x");
auto func = functionArg->AsArgumentOfFunction(Aspose::Slides::MathText::MathFunctionsOfOneArgument::ArcSin);

IMathElement::AsArgumentOfFunction(MathFunctionsOfTwoArguments, System::SharedPtr<IMathElement>) method

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

virtual System::SharedPtr<IMathFunction> Aspose::Slides::MathText::IMathElement::AsArgumentOfFunction(MathFunctionsOfTwoArguments functionType, System::SharedPtr<IMathElement> additionalArgument)=0

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'

IMathElement::AsArgumentOfFunction(MathFunctionsOfTwoArguments, System::String) method

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

virtual System::SharedPtr<IMathFunction> Aspose::Slides::MathText::IMathElement::AsArgumentOfFunction(MathFunctionsOfTwoArguments functionType, System::String additionalArgument)=0

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