Class NameConverter
Provides methods for name conversion.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Utilities
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public static class NameConverter
Methods
ConvertCellIndexesToName(Int32, Int32, Int32, Int32)
Converts the cell indexes to a name.
Declaration
public static string ConvertCellIndexesToName(int fromRowIndex, int fromColumnIndex, int toRowIndex, int toColumnIndex)
Parameters
System. The start row index. |
System. The start column index. |
System. The end row index. |
System. The end column index. |
Returns
System. The name. |
ConvertCellIndexToName(Int32, Int32)
Converts the cell index to name.
Declaration
public static string ConvertCellIndexToName(int rowIndex, int columnIndex)
Parameters
System. Index of the row. |
System. Index of the column. |
Returns
System. The name. |
ConvertCellIndexToName(CellIndex)
Converts the cell index to name.
Declaration
public static string ConvertCellIndexToName(CellIndex cellIndex)
Parameters
Cell The cell index. |
Returns
System. The name. |
ConvertCellNameToIndex(String, out Boolean, out Int32, out Boolean, out Int32)
Converts the cell name to a cell index.
Declaration
public static void ConvertCellNameToIndex(string cellName, out bool isRowAbsolute, out int rowIndex, out bool isColumnAbsolute, out int columnIndex)
Parameters
System. Name of the cell. |
System. The value indicating whether the row is absolute. |
System. Index of the row. |
System. The value indicating whether the column is absolute. |
System. Index of the column. |
ConvertCellNameToIndex(String, out Int32, out Int32)
Converts the cell name to a cell index.
Declaration
public static void ConvertCellNameToIndex(string cellName, out int rowIndex, out int columnIndex)
Parameters
System. Name of the cell. |
System. Index of the row. |
System. Index of the column. |
ConvertCellRangeToName(CellIndex, CellIndex)
Converts the cell range to a name.
Declaration
public static string ConvertCellRangeToName(CellIndex fromIndex, CellIndex toIndex)
Parameters
Returns
System. The name. |
ConvertCellRangeToName(CellRange)
Converts the cell range to a name.
Declaration
public static string ConvertCellRangeToName(CellRange range)
Parameters
Cell The range. |
Returns
System. The name. |
ConvertCellReferenceRangeToName(CellReference, CellReference)
Converts a range defined between cell references to a name.
Declaration
public static string ConvertCellReferenceRangeToName(CellReference fromCellReference, CellReference toCellReference)
Parameters
Cell The start cell reference. |
Cell The end cell reference. |
Returns
System. The name. |
ConvertCellReferenceToName(CellReference)
Converts the cell reference to name.
Declaration
public static string ConvertCellReferenceToName(CellReference cellReference)
Parameters
Cell The cell reference. |
Returns
System. The name. |
ConvertColumnIndexToName(Int32)
Converts the column index to name.
Declaration
public static string ConvertColumnIndexToName(int columnIndex)
Parameters
System. Index of the column. |
Returns
System. The name. |
ConvertColumnNameToIndex(String)
Converts the column name to index.
Declaration
public static int ConvertColumnNameToIndex(string columnName)
Parameters
System. Name of the column. |
Returns
System. The index. |
ConvertRowIndexToName(Int32)
Converts the row index to name.
Declaration
public static string ConvertRowIndexToName(int rowIndex)
Parameters
System. Index of the row. |
Returns
System. The name. |
ConvertRowNameToIndex(String)
Converts the row name to index.
Declaration
public static int ConvertRowNameToIndex(string rowName)
Parameters
System. Name of the row. |
Returns
System. The index. |
IsValidA1CellName(String)
Determines whether the name of the cell is valid.
Declaration
public static bool IsValidA1CellName(string cellName)
Parameters
System. Name of the cell. |
Returns
System. The value indicating whether the name of the cell is valid. |
TryConvertCellNameToIndex(String, out Boolean, out Int32, out Boolean, out Int32)
Tries to convert the cell name to index.
Declaration
public static bool TryConvertCellNameToIndex(string cellName, out bool isRowAbsolute, out int rowIndex, out bool isColumnAbsolute, out int columnIndex)
Parameters
System. Name of the cell. |
System. The is row absolute. |
System. Index of the row. |
System. The is column absolute. |
System. Index of the column. |
Returns
System.
|
TryConvertCellNameToIndex(String, out Int32, out Int32)
Tries to convert the cell name to index.
Declaration
public static bool TryConvertCellNameToIndex(string cellName, out int rowIndex, out int columnIndex)
Parameters
System. Name of the cell. |
System. Index of the row. |
System. Index of the column. |
Returns
System. The value indicating whether the conversion was successful. |
TryConvertCellRangeNameToCellRange(String, out CellRange)
Tries to convert a cell range name to a CellRange instance.
Declaration
public static bool TryConvertCellRangeNameToCellRange(string name, out CellRange cellRange)
Parameters
System. The cell range name. |
Cell The CellRange instance. |
Returns
System. True if successful, otherwise False. |
TryConvertNamesToCellReferenceRangeExpression(String, Worksheet, Int32, Int32, out CellReferenceRangeExpression)
Converts the cell ranges names to cell reference ranges.
Declaration
public static bool TryConvertNamesToCellReferenceRangeExpression(string cellRangesNames, Worksheet worksheet, int rowIndex, int columnIndex, out CellReferenceRangeExpression expression)
Parameters
System. The cell ranges names. |
Worksheet
worksheet
The worksheet. |
System. The row index of the cell for which the expression is created. |
System. The column index of the cell for which the expression is created. |
Cell The expression. |
Returns
System. True if converter successfuly, else false. |