See Also

IRange Interface  | SpreadsheetGear Namespace  | Cells Property

See Also SpreadsheetGear The Performance Spreadsheet Component Company 

IRange Interface Members

SpreadsheetGear Namespace : IRange Interface

IRange overview

Public Properties

 Property AddIndent Gets or sets the cell's AddIndent boolean flag.
 Property AddIndentDefined Returns true if the AddIndent property of all cells represented by this IRange is the same, otherwise false is returned.
 Property Address Returns the cell or range address of the cells represented by this IRange.
 Property AllowEdit Returns true if all of the cells represented by a range may be edited.
 Property AreaCount Returns the number of areas in this IRange.
 Property Areas Returns an instance of IAreas which represents an array of IRanges where each IRange returned by IAreas represents one cell or range.
 Property Borders Returns an instance of IBorders which represents the cell borders of the cell or range represented by this IRange.
 Property Cells Returns the cells represented by this instance of IRange.
 Property Column Returns the zero based column number of the first column of this IRange.
 Property ColumnCount Returns the number of columns in this IRange.
 Property Columns Returns a new instance of IRange which represents the same range of cells but which may be used to determine the number of columns in the range or to AutoFit the columns in the range.
 Property ColumnWidth Gets or sets the width of the individual columns represented this range in characters.
 Property ColumnWidthDefined Returns true if the ColumnWidth property of all columns represented by this IRange is the same, otherwise false is returned.
 Property Comment Returns an instance of IComment representing the comment which is associated the single cell represented by this range, or null if there is no comment.
 Property Count Returns the number of cells, rows, or columns in a range.
 Property CurrentArray Returns the range of cells containing the array formula of the top-left cell of this IRange, or null if the top-left cell is not an array formula.
 Property CurrentRegion Returns an expanded range of contiguous non-empty cells.
 Property EndDown Returns a single cell at the end of the current contiguous non-empty range, or at the start of the next non-empty range, starting with the top-left cell of this range.
 Property EndLeft Returns a single cell at the start of the current contiguous non-empty range, or at the end of the previous non-empty range, starting with the top-left cell of this range.
 Property EndRight Returns a single cell at the end of the current contiguous non-empty range, or at the start of the next non-empty range, starting with the top-left cell of this range.
 Property EndUp Returns a single cell at the start of the current contiguous non-empty range, or at the end of the previous non-empty range, starting with the top-left cell of this range.
 Property EntireColumn Returns a new instance of IRange which represents the same range of cells, but expanded to include all rows.
 Property EntireMergeArea Returns an IRange representing the area of the current IRange which is iteratively grown as needed until it includes no partial merged cells.
 Property EntireRow Returns a new instance of IRange which represents the same range of cells, but expanded to include all columns.
 Property Entry Returns the text which is displayed in the workbook view's formula bar.
 Property Font Returns an instance of IFont which may be used to get and set font properties of the cells represented by this IRange.
 Property FormatConditions Returns a collection which represents the conditional formatting options of this range.
 Property FormatConditionsDefined Returns true if the conditional formatting options of all cells represented by this IRange are the same, otherwise false is returned.
 Property Formula Gets or sets the value or formula of the cells represented by this IRange.
 Property FormulaArray Gets or sets the array formula for a range.
 Property FormulaHidden Gets or sets the property which specifies whether formulas should be hidden.
 Property FormulaHiddenDefined Returns true if the FormulaHidden property of all cells represented by this IRange is the same, otherwise false is returned.
 Property FormulaR1C1 Gets or sets the value or formula of the cells represented by this IRange using ReferenceStyle.R1C1.
 Property HasArray Returns true if the cell or range contains any array formulas, otherwise false is returned.
 Property HasArrayDefined Returns true if the HasArray property of all cells represented by this IRange is the same, otherwise false is returned.
 Property HasFormula Returns true if the cell or range contains any formulas, otherwise false is returned.
 Property HasFormulaDefined Returns true if the HasFormula property of all cells represented by this IRange is the same, otherwise false is returned.
 Property HasValidation Returns true if any of the cells represented by this range have data validation associated with them.
 Property Height Returns the height of the range in points.
 Property Hidden Gets or sets the property which specifies whether rows or columns should be hidden.
 Property HorizontalAlignment Gets or sets the horizontal alignment of a cell or range.
 Property HorizontalAlignmentDefined Returns true if the HorizontalAlignment property of all cells represented by this IRange is the same, otherwise false is returned.
 Property Hyperlinks Returns a hyperlink collection representing the hyperlinks which are attached to this range.
 Property IndentLevel Gets or sets the indent level of the specified cell(s).
 Property Interior Returns the IInterior which represents the interior (background) color and pattern of the specified cell(s).
 Property IsEntireColumns Returns true if the current range represents one or more entire columns.
 Property IsEntireRows Returns true if the current range represents one or more entire rows.
 Property IsVolatileOrCircularFormula Returns true if the single cell range is, or depends on, a volatile function or circular reference.
 Property Item Overloaded.  
 Property Locked Gets or sets the property which specifies whether cells should be locked.
 Property LockedDefined Returns true if the Locked property of all cells represented by this IRange is the same, otherwise false is returned.
 Property MergeArea Returns an IRange representing the merged cell area if the cell represented by this IRange is part of a merged cell range, otherwise the original IRange is returned.
 Property MergeCells Gets or sets the property which specifies whether cells are merged.
 Property MergeCellsDefined Returns true if the MergeCells property of all cells represented by this IRange is the same, otherwise false is returned.
 Property Name Returns the first defined name which refers to the cells represented by this range, or null if no defined name refers to the range.
 Property NumberFormat Gets or sets the number format of the cells in the range.
 Property NumberFormatDefined Returns true if the NumberFormat property of all cells represented by this IRange is the same, otherwise false is returned.
 Property NumberFormatType Returns the number format type of the top-left cell of this range.
 Property Orientation Gets or sets the text orientation of a cell or range, which may be from -90 to 90 degrees or SpreadsheetGear.Orientation.Vertical.
 Property OrientationDefined Returns true if the Orientation property of all cells represented by this IRange is the same, otherwise false is returned.
 Property OutlineLevel Gets or sets the outline level of a range of rows or columns, which provides the ability to group and summarize information.
 Property OutlineLevelDefined Returns true if the OutlineLevel property of all rows or columns represented by this IRange is the same, otherwise false is returned.
 Property PageBreak Adds or removes manual page breaks for a range.
 Property PrefixCharacter Returns '\'' if text was entered into a cell with a leading apostrophe, otherwise '\0' is returned.
 Property PrefixCharacterDefined Returns true if the PrefixCharacter property of all cells represented by this IRange is the same, otherwise false is returned.
 Property Range Returns the cells represented by this instance of IRange.
 Property Row Returns the zero based row number of the first row.
 Property RowCount Returns the number of rows in this IRange.
 Property RowHeight Gets or sets the height of the individual rows represented by this range in points.
 Property RowHeightDefined Returns true if the RowHeight property of all rows represented by this IRange is the same, otherwise false is returned.
 Property Rows Returns a new instance of IRange which represents the same range of cells but which may be used to determine the number of rows in the range or to AutoFit the rows in the range.
 Property ShowDetail Gets or sets the property which specifies whether the detail corrresponding to the outline level of the represented row or column will be shown (expanded) or hidden (collapsed).
 Property ShrinkToFit Gets or sets the property which specifies whether cells will be drawn in a smaller font if needed to display the contents of the cell.
 Property ShrinkToFitDefined Returns true if the ShrinkToFit property of all cells represented by this IRange is the same, otherwise false is returned.
 Property Text Returns the value of the cell represented by this IRange as a formatted string.
 Property Validation Returns an instance of IValidation which may be used to get and set validation properties of the cells represented by this IRange.
 Property ValidationDefined Returns true if the validation options of all cells represented by this IRange are the same, otherwise false is returned.
 Property Value Gets the value of the specified range as a System.String, System.Double, System.Boolean, SpreadsheetGear.ValueError, object[,] or null; or sets the value of the specified cell as a System.String, System.Double, System.Int32, System.Int64, System.Int16, System.Boolean, System.DateTime, SpreadsheetGear.ValueError, System.Decimal, System.DBNull, object[,] or null.
 Property ValueType Returns the value type of the top-left cell of this range.
 Property VerticalAlignment Gets or sets the vertical alignment of a cell or range.
 Property VerticalAlignmentDefined Returns true if the VerticalAlignment property of all cells represented by this IRange is the same, otherwise false is returned.
 Property Width Returns the width of the range in points.
 Property WorkbookSet Returns the parent IWorkbookSet of this range.
 Property Worksheet Returns the parent IWorksheet of this range.
 Property WrapText Get or sets the flag which indicates whether word wrap is enabled in a cell.
 Property WrapTextDefined Returns true if the WrapText property of all cells represented by this IRange is the same, otherwise false is returned.

Public Methods

 Method Activate Sets the active cell of the worksheet associated with this IRange to the top-left cell of this IRange.
 Method AddComment Adds a single comment with the specified text to the single cell represented by this range.
 Method AutoFit Automatically sets the width of the specified columns or the height of the specified rows.
 Method Clear Clears formulas, values and all formatting from the current IRange.
 Method ClearComments Clears all comments associated with any cells in this range.
 Method ClearContents Clears formulas and values from the current IRange.
 Method ClearFormats Clears all formatting from the current IRange.
 Method ClearOutline Clears the specified represented row or column outline levels, or all outline levels of the associated worksheet if this range does not represent rows or columns.
 Method Copy Overloaded.  
 Method CopyDown Copies values, formulas and formats in the top row of the range to subsequent rows.
 Method CopyFromDataTable Copies the specified DataTable to this range.
 Method CopyRight Copies values, formulas and formats in the left column of the range to subsequent columns.
 Method Delete Overloaded.  
 Method Find Searches for the specified text according to the specified options, and returns an IRange representing the found cell or null if no cell is found.
 Method GetAddress Returns a string representing the address of the range.
 Method GetArea Returns the zero based instance of IRange specified by index.
 Method GetCharacters Returns an instance of ICharacters which represents a range of characters belonging to a text cell.
 Method GetDataSet Returns a newly created data set from the cells referred to by this IRange.
 Method GetDataTable Returns a newly created data table from the cells referred to by this IRange.
 Method Group Increments the OutlineLevel of the specified rows or columns.
 Method Insert Overloaded.  
 Method Intersect Returns a new range which consists of the intersection of this range and range2, or null if the ranges do not intersect.
 Method Merge Merges the cells in the represented range into a single merged cell.
 Method Offset Returns a copy of the current IRange which is offset by the specified number of rows and columns.
 Method Replace Attempts to replace the specified text according to the specified options, returning the number of replacements if successful or zero if not successful.
 Method Select Sets the current selection of the worksheet associated with the this range to the cells in this range.
 Method Sort Sorts the cells represented by this range according to the specified options.
 Method Subtract Returns a new range which consists of this range with range2 removed, or null if the resulting range is empty.
 Method Ungroup Decrements the OutlineLevel of the specified rows or columns.
 Method Union Returns a new range which consists of the union of this range and range2.
 Method UnMerge Converts merged cells in the represented range to normal cells.

See Also

IRange Interface  | SpreadsheetGear Namespace  | Cells Property

 

 


See our live Excel Reporting, Excel Charting, Excel to DataGrid and Excel Calculation Samples.

Copyright © 2003-2007 SpreadsheetGear LLC. All Rights Reserved.

SpreadsheetGear and Spreadsheet Gear are trademarks of SpreadsheetGear LLC.