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
RadExpression
expression
The expression. |
Returns
ConstantExpression
The ConstantExpression result. |
IntegerValue(RadExpression)
Gets the integer value of a RadExpression.
Declaration
public static int IntegerValue(this RadExpression expression)
Parameters
RadExpression
expression
The expression. |
Returns
System.Int32
The value as integer. |
Exceptions
System.ArgumentNullException
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.Char
character
The character. |
Returns
System.Boolean
True if valid, otherwise false. |
NumberValue(RadExpression)
Gets the NumberValue of a RadExpression.
Declaration
public static double NumberValue(this RadExpression expression)
Parameters
RadExpression
expression
The expression. |
Returns
System.Double
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.Boolean
value
The value. |
Returns
BooleanExpression
The result as BooleanExpression. |
ToCellRange(CellReferenceRange)
Converts CellReferenceRange to CellRange.
Declaration
public static CellRange ToCellRange(this CellReferenceRange cellReferenceRange)
Parameters
CellReferenceRange
cellReferenceRange
The cell reference range. |
Returns
CellRange
The cell range. |