Function()

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

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

System::SharedPtr<IMathFunction> Aspose::Slides::MathText::MathElementBase::Function(System::SharedPtr<IMathElement> functionArgument) override

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

MathElementBase::Function(System::String) method

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

System::SharedPtr<IMathFunction> Aspose::Slides::MathText::MathElementBase::Function(System::String functionArgument) override

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