Function()

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

Takes a function of an argument using this instance as the function name

virtual System::SharedPtr<IMathFunction> Aspose::Slides::MathText::IMathElement::Function(System::SharedPtr<IMathElement> functionArgument)=0

Arguments

ParameterTypeDescription
functionArgumentSystem::SharedPtr<IMathElement>An argument of the function

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 = functionName->Function(functionArg);

IMathElement::Function(System::String) method

Takes a function of an argument using this instance as the function name

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

Arguments

ParameterTypeDescription
functionArgumentSystem::StringAn argument of the function

Return Value

New math element of type IMathFunction

Remarks

Example:

auto functionName = System::MakeObject<MathematicalText>(u"sin");
auto func = functionName->Function(u"x");

See Also