Document Solutions for Excel, .NET Edition | Document Solutions
GrapeCity.Documents.Excel Namespace / IRange Interface
Properties Methods

In This Topic
    IRange Interface Members
    In This Topic

    The following tables list the members exposed by IRange.

    Public Properties
     NameDescription
     Property Gets or sets the property which controls indentation of text when horizontal or vertical alignment is set to distributed.  
     PropertyGets a System.String value that represents the range reference in the absolute A1 format.  
     PropertyReturns an instance of IAreas which represents an array of IRanges where each IRange returned by IAreas represents one cell or range.  
     Property Gets or sets the cell background image. Supported image types include: PNG, JPG, ICO, SVG, GIF. This would be visible only in SpreadJS and Exporting to PDF/HTML/IMG.  
     Property Gets or sets the cell background image layout, default is Stretch.  
     Property Gets or sets the binding path of the current cell or column. If range is normal range, gets or sets the binding path of the top-left cell of range. If range is EntireColumn, gets or sets the binding path of the left column binding path of range. If range is EntireRow, gets or sets null.  
     PropertyReturns an instance of IBorders which represents the cell borders of the cell or range represented by this IRange.  
     Property Gets or sets the cell padding for range. SpreadJS only.  
     PropertyReturns the IRange object that represents the cells in the specified range.  
     Property Gets or sets the cell type for specified range in the sheet.  
     Property Returns the zero based column number of the first column of this IRange.  
     Property Returns the column count of the first range.  
     PropertyReturns the IRange object that represents the columns in the specified range.  
     Property Gets or sets the width of the individual columns represented in this range in characters.  
     Property Gets or sets the width of the individual columns represented in this range in pixels.  
     Property Returns an instance of IComment which may be used to get and set Comment properties of the cells.  
     Property Returns an instance of ICommentThreaded which may be used to get and set ICommentThreaded properties of the cells.  
     Property Returns the number of objects in the collection.  
     PropertyGets whether the specified cell is part of an array, returns an IRange object that represents the entire array.  
     Property Gets or sets the default value of the cell, it can be the value data or the formula string. It works when the cell has no data.  
     Property Gets a DisplayFormat object that represents the display settings for the specified range.  
     PropertyReturns a new instance of IRange which represents the same range of cells, but expanded to include all rows.  
     PropertyReturns an IRange representing the area of the current IRange which is iteratively grown as needed until it includes no partial merged cells.  
     PropertyReturns a new instance of IRange which represents the same range of cells, but expanded to include all columns.  
     PropertyReturns an instance of IFont which may be used to get and set font properties of the cells represented by this IRange.  
     Property Returns a FormatConditions collection that represents all the conditional formats for the specified range.  
     PropertyGets or sets the formula of the cells represented by this IRange in A1-style notation.  
     PropertyGets or sets the formula of the cells represented by this IRange in A1-style array notation.  
     PropertyGets or sets the localized formula of the cells represented by this IRange in A1-style array notation.  
     PropertyGets or sets the formula of the cells represented by this IRange in R1C1-style array notation.  
     PropertyGets or sets the localized formula in array notation of the cells represented by this IRange in R1C1-style array notation.  
     Property Gets or sets the array formula of a range.  
     Property Gets or sets the array formula of a range, using ReferenceStyle.R1C1.  
     Property Gets or sets whether the formula will be hidden when the worksheet is protected  
     PropertyGets or sets the localized formula of the cells represented by this IRange in A1-style notation.  
     PropertyGets or sets the formula of the cells represented by this IRange in R1C1-style notation.  
     PropertyGets or sets the localized formula of the cells represented by this IRange in R1C1-style notation.  
     Property Determines if the specified cell is part of an array formula.  
     Property Returns true if the cell or range contains any formulas; otherwise, false is returned.  
     Property Returns true if any of the cells represented by this range have data validation associated with them.  
     Property Gets the height, in points, of the range.  
     Property Gets the height, in pixels, of the range.  
     Property Gets or sets the property which specifies whether rows or columns should be hidden.  
     PropertyGets or sets the HorizontalAlignment of a cell or range.  
     Property Returns an instance of IHyperLinks which may be used to get and set HyperLinks properties.  
     Property Gets or sets the error type of the range to be ignored.  
     Property Gets or sets the indent level of the specified cell(s).  
     PropertyReturns the IInterior which represents the interior (background) color and pattern of the specified cell(s).  
     Property Indicates whether the cell string value is a rich text.  
     PropertyOverloaded. Returns a new instance of IRange which is offset from this IRange.  
     Property Gets or sets the setting for watermark. SpreadJS only.  
     Property Returns the zero based column number of the last column of the first range.  
     Property Returns the zero based row number of the last row of the first range.  
     Property Gets or sets the property which specifies whether cells should be locked.  
     PropertyReturns an IRange representing the merged range containing the specified cell. If the specified cell isn't in a merged range, this property returns the specified cell.  
     Property Gets or sets the property which specifies whether cells are merged.  
     Property Gets or sets the number format of the cells in the range.  
     Property Gets or sets the text orientation of a cell or range, which may be from -90 to 90 degrees, or 255(vertical text).  
     Property Gets or sets the current outline level of the specified row or column.  
     Property Gets or sets the reading order for the specified object.  
     PropertyGets the rich text object associate with the top-left cell of this range.  
     Property Returns the zero based row number of the first row.  
     Property Returns the row count of the first range.  
     Property Gets or sets the height of the individual rows represented by this range in points.  
     Property Gets or sets the height of the individual rows represented by this range in pixels.  
     PropertyReturns the IRange object that represents the rows in the specified range.  
     Property Gets or sets whether to show the detail (Returns True if the outline is expanded for the specified range, so that the detail of the column or row is visible). The specified range must be a single summary column or row in an outline (read or write).  
     Property 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 Returns an instance of ISparklineGroups which may be used to get and set SparklineGroups properties of the cells  
     PropertyGets or sets the named style IStyle associated with the cells represented by this IRange.  
     Property Determines if the range is an outlining summary row or column.  
     Property Gets or sets the tag value for specified range in the sheet. SpreadJS only.  
     PropertyGets the value of the cell represented by this IRange as a formatted string.  
     PropertyReturns an IRange representing the used range in the current range.  
     PropertyDetermines if the row height of the IRange object equals the standard height of the sheet.  
     PropertyDetermines if the column width of the IRange object equals the standard width of the sheet.  
     Property Returns an instance of IValidation which may be used to get and set validation properties of the cells represented by this IRange.  
     PropertyReturns true if the validation options of all cells represented by this IRange are the same; otherwise, false is returned.  
     PropertyGets the value of the specified range as a System.String, System.Double, System.Boolean, object[,] (Object(,) in Visual Basic) or a null reference (Nothing in Visual Basic) (Nothing in Visual Basic); or sets the value of the specified cell as a System.String, System.Double, System.Int16, System.Int32, System.Int64, System.Boolean, System.DateTime, System.TimeSpan, object[,] (Object(,) in Visual Basic) or a null reference (Nothing in Visual Basic) (Nothing in Visual Basic).  
     PropertyGets or sets the VerticalAlignment of a cell or range.  
     Property Gets or sets the watermark for range. SpreadJS only.  
     Property Gets the width, in points, of the range.  
     Property Gets the width, in pixels, of the range.  
     PropertyReturns the parent Worksheet of this range.  
     Property Get or sets the flag which indicates whether word wrap is enabled in a cell.  
    Top
    Public Methods
     NameDescription
     Method Activates a single cell, which must be inside the current selection.  
     Method Adds comments to the current IRange.  
     Method Adds a threaded comment to the current IRange.  
     Method Filters a list using the AutoFilter.  
     MethodOverloaded.  Changes the width of the columns in the range or the height of the rows in the range to achieve the best fit.  
     Method Calculates formulas of the range as needed.  
     MethodReturns a ITextRun object that represents a range of characters within the cell text, this method can only be called when the value of cell is a string, or else System.InvalidOperationException is thrown.  
     Method Clears formulas, values, and all formatting from the current IRange.  
     Method Clears the comments from the current IRange  
     Method Clears the threaded comment from the current IRange  
     Method Clears formulas and values from the current IRange.  
     Method Clears all formatting from the current IRange.  
     Method Clears all hyperLinks from the current IRange.  
     Method Clears the outline for the specified range.  
     MethodOverloaded.  Copies the range to the specified range.  
     Method Cuts the range to the specified range.  
     MethodDeletes a cell or a range of cells from the worksheet and shifts other cells to replace deleted cells. Specifies which way to shift the cells.  
     Method Designates all the formulas of the range to be recalculated when the next calculation occurs.  
     Method Finds specific information in a range.  
     Method Generates the range data from the JSON string.  
     Method Generate the corresponding function "GETPIVOTDATA" for the cells in the pivot table.  
     MethodReturns a System.String value that represents the range reference. If all parameters are omitted, the return value is equal to the Address property.  
     MethodOverloaded.  Gets the dependent ranges of the left top cell of the range.  
     MethodOverloaded.  Gets the precedent ranges of the left top cell of the range.  
     MethodGets an IRange representing the used range in the current range.  
     Method Increments the OutlineLevel of the specified rows or columns.  
     MethodInserts a cell or a range of cells into the worksheet and shifts other cells away to make space. Specifies which way to shift the cells.  
     MethodOverloaded. Returns an IRange object that represents the intersection of two ranges.

    If range2 is from a different worksheet, an exception is thrown.  
     Method Merges the cells in the represented range into a single merged cell.  
     Method Returns an IRange object that represents the offset of this range.  
     Method Removes subtotals from a list.  
     Method Search in formulas and replace. Using this method doesn't change either the selection or the active cell.  
     Method Selects the object.  
     MethodOverloaded.  Sorts the cells represented by this range according to the specified options.  
     MethodGets a IRange object that represents all the cells that match the specified type and value.  
     Method Creates subtotals for the range.  
     MethodOverloaded.  Saves the range to the specified image file.  
     Method Generates a JSON string from the range.  
     Method Decrements the OutlineLevel of the specified rows or columns.  
     MethodOverloaded. Returns an IRange object that represents the union of two ranges.

    If range2 is from a different worksheet, an exception is thrown.  
     Method Converts merged cells in the represented range to normal cells.  
    Top
    See Also