AsArgumentOfFunction
内容
[
隐藏
]AsArgumentOfFunction(IMathElement)
使用此实例作为参数获取指定的函数
public IMathFunction AsArgumentOfFunction(IMathElement functionName)
参数 | 类型 | 描述 |
---|---|---|
functionName | IMathElement | 函数名称 |
返回值
新的数学元素,类型为 IMathFunction
示例
示例:
[C#]
IMathElement functionName = new MathematicalText("sin");
IMathElement functionArg = new MathematicalText("x");
IMathFunction func = functionArg.AsArgumentOfFunction(functionName);
参见
AsArgumentOfFunction(string)
使用此实例作为参数获取指定的函数
public IMathFunction AsArgumentOfFunction(string functionName)
参数 | 类型 | 描述 |
---|---|---|
functionName | String | 函数名称 |
返回值
新的数学元素,类型为 IMathFunction
示例
示例:
[C#]
IMathElement functionArg = new MathematicalText("x");
IMathFunction func = functionArg.AsArgumentOfFunction("cos");
参见
AsArgumentOfFunction(MathFunctionsOfOneArgument)
使用此实例作为参数获取指定的函数
public IMathFunction AsArgumentOfFunction(MathFunctionsOfOneArgument functionType)
参数 | 类型 | 描述 |
---|---|---|
functionType | MathFunctionsOfOneArgument | 一种常见的单参数函数类型 |
返回值
新的数学元素,类型为 IMathFunction
示例
示例:
[C#]
IMathElement functionName = new MathematicalText("sin");
IMathElement functionArg = new MathematicalText("x");
IMathFunction func = functionArg.AsArgumentOfFunction(functionName);
参见
- 接口 IMathFunction
- 枚举 MathFunctionsOfOneArgument
- 类 MathElementBase
- 命名空间 Aspose.Slides.MathText
- 程序集 Aspose.Slides
AsArgumentOfFunction(MathFunctionsOfTwoArguments, IMathElement)
使用此实例作为参数获取指定的函数和指定的额外参数
public IMathFunction AsArgumentOfFunction(MathFunctionsOfTwoArguments functionType,
IMathElement additionalArgument)
参数 | 类型 | 描述 |
---|---|---|
functionType | MathFunctionsOfTwoArguments | 一种常见的双参数函数类型:Log, Lim, Min, Max |
additionalArgument | IMathElement | 根据函数类型而定的额外参数 |
返回值
新的数学元素,类型为 IMathFunction
示例
示例:
[C#]
IMathElement functionArg = new MathematicalText("x");
IMathElement logarithmBase = new MathematicalText("5");
IMathFunction func = functionArg.AsArgumentOfFunction(MathFunctionsOfTwoArguments.Log, logarithmBase); // 返回 'x' 对于底数 '5' 的对数
参见
- 接口 IMathFunction
- 枚举 MathFunctionsOfTwoArguments
- 接口 IMathElement
- 类 MathElementBase
- 命名空间 Aspose.Slides.MathText
- 程序集 Aspose.Slides
AsArgumentOfFunction(MathFunctionsOfTwoArguments, string)
使用此实例作为参数获取指定的函数和指定的额外参数
public IMathFunction AsArgumentOfFunction(MathFunctionsOfTwoArguments functionType,
string additionalArgument)
参数 | 类型 | 描述 |
---|---|---|
functionType | MathFunctionsOfTwoArguments | 一种常见的双参数函数类型:Log, Lim, Min, Max |
additionalArgument | String | 根据函数类型而定的额外参数 |
返回值
新的数学元素,类型为 IMathFunction
示例
示例:
[C#]
IMathElement functionArg = new MathematicalText("x");
IMathFunction func = functionArg.AsArgumentOfFunction(MathFunctionsOfTwoArguments.Log, "5"); // 返回 'x' 对于底数 '5' 的对数