Class ExpressionExtensions
Provides extension methods on RadExpression.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Expressions
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public static class ExpressionExtensions
Methods
GetValueAsConstantExpression(RadExpression)
Gets the value of a RadExpression as a constant expression.
Declaration
public static ConstantExpression GetValueAsConstantExpression(this RadExpression expression)
Parameters
Rad The expression. |
Returns
Constant The ConstantExpression result. |
IntegerValue(RadExpression)
Gets the integer value of a RadExpression.
Declaration
public static int IntegerValue(this RadExpression expression)
Parameters
Rad The expression. |
Returns
System. The value as integer. |
Exceptions
System. Thrown when expression is not NumberExpression. |
IsValidFunctionOrCellReferenceNamePart(Char)
Determines whether some character is valid part of and function or cell reference name.
Declaration
public static bool IsValidFunctionOrCellReferenceNamePart(this char character)
Parameters
System. The character. |
Returns
System. True if valid, otherwise false. |
NumberValue(RadExpression)
Gets the NumberValue of a RadExpression.
Declaration
public static double NumberValue(this RadExpression expression)
Parameters
Rad The expression. |
Returns
System. The number value as double. If the expression is not NumberExpression returns 0. |
ToBooleanExpression(Boolean)
Converts Boolean value to BooleanExpression.
Declaration
public static BooleanExpression ToBooleanExpression(this bool value)
Parameters
System. The value. |
Returns
Boolean The result as BooleanExpression. |
ToCellRange(CellReferenceRange)
Converts CellReferenceRange to CellRange.
Declaration
public static CellRange ToCellRange(this CellReferenceRange cellReferenceRange)
Parameters
Cell The cell reference range. |
Returns
Cell The cell range. |