接口的使用
com.grapecity.documents.excel.IRange
程序包
说明
-
com.grapecity.documents.excel中IRange的使用
修饰符和类型方法说明Finds specific information in a range, starts from the upper-left corner.IRange.find
(Object what, FindOptions options) Finds specific information in a range, starts from the upper-left corner.Finds specific information in a range.IRange.find
(Object what, IRange after, FindOptions options) Finds specific information in a range.ICellCollection.get
(int rowOffset, int columnOffset) Gets theIRange
object with the specified row and column offset.Gets theIRange
object with the specified reference.IRange.get
(int index) Returns a new instance ofIRange
by index which represents a cell.IRange.get
(int rowOffset, int columnOffset) Returns a new instance ofIRange
which is offset from this range.IRangeProvider.get
(int row, int column) Gets theIRange
object with the specified row and column.IRangeProvider.get
(int row, int column, int rowCount, int columnCount) Gets theIRange
object with the specified row and column.Gets theIRange
object with the specified reference.IWorksheet.getActiveCell()
Gets the active cell.IComment.getAnchorCell()
Gets the anchor cell of the comment.IAboveAverage.getAppliesTo()
Returns a range object specifying the cell range to which the formatting rule is applied.IColorScale.getAppliesTo()
Returns a Range object that specifies the cell range to which the formatting rule is applied.IDataBar.getAppliesTo()
Returns a Range object that specifies the cell range to which the formatting rule is applied.IFormatCondition.getAppliesTo()
Returns theIRange
object that specifies the cell range to which theformatting rule is applied.IIconSetCondition.getAppliesTo()
Returns a Range object that specifies the cell range to which the formatting rule is applied.ITop10.getAppliesTo()
Returns theIRange
object that specifies the cell range to which theformatting rule is applied.IUniqueValues.getAppliesTo()
Returns a Range object specifying the cell range to which the formatting rule is applied.IAreas.getArea
(int index) Returns the zero based instance ofIRange
specified by index.IRange.getCells()
Returns theIRange
object that represents the cells in the specifiedrange.IWorksheet.getCells()
Returns theIRange
object that represents all the cells on theworksheet (not just the cells that are currently in use).IPivotTable.getColumnRange()
Returns a Range object that represents the range that contains the column area in the PivotTable report.IRange.getColumns()
Returns theIRange
object that represents the columns in thespecified range.IWorksheet.getColumns()
Returns theIRange
object that represents all the columns on thespecified worksheet.IRange.getCurrentArray()
Gets whether the specified cell is part of an array, returns anIRange
object that represents the entire array.IPivotTable.getDataBodyRange()
Returns a Range object that represents the range that contains the data area in the list between the header row and the insert row.ITableColumn.getDataBodyRange()
Returns theIRange
object that is the size of the data portion of acolumn.ITable.getDataRange()
Returns theIRange
object that represents the range that contains thedata area in the table between the header row and the insert row.IRange.getEntireColumn()
Returns a new instance ofIRange
which represents the same range ofcells, but expanded to include all rows.IRange.getEntireMergeArea()
Returns anIRange
representing the area of the current range which isiteratively grown as needed until it includes no partial merged cells.IRange.getEntireRow()
Returns a new instance ofIRange
which represents the same range ofcells, but expanded to include all columns.ITable.getHeaderRange()
Returns theIRange
object that represents the range of the header rowfor a table.ISortField.getKey()
Gets the sort range.final IRange
SortFieldBase.getKey()
Specifies the column index.IHPageBreak.getLocation()
Returns or sets the range that defines the page-break location.ISparkline.getLocation()
Gets or sets the location of a single sparkline.ISparklineGroup.getLocation()
Gets theIRange
object that represents the location of the sparklinegroup.IVPageBreak.getLocation()
Returns or sets the range that defines the page-break location.IRange.getMergeArea()
Returns anIRange
representing the merged range containing thespecified cell.IPivotTable.getPageRange()
Returns a Range object that represents the range that contains the page area in the PivotTable report.IAutoFilter.getRange()
Returns a Range object that represents the range to which the specified autoFilter applies.IHyperlink.getRange()
Returns theIRange
object that represents the range the specifiedhyperlink is attached to.IPivotCell.getRange()
Returns a Range object that represents the range the specified PivotCell applies to.ISort.getRange()
Gets the sort range.ITable.getRange()
Returns theIRange
object that represents the range to which thespecified table object applies.ITableColumn.getRange()
Returns theIRange
object that represents the range to which thespecified list object in the above list applies.ITableRow.getRange()
Returns theIRange
object that represents the range to which thespecified list object applies.IWorksheet.getRange
(int row, int column) Gets theIRange
object with the specified row and column.IWorksheet.getRange
(int row, int column, int rowCount, int columnCount) Gets theIRange
object with the specified row and column.Gets theIRange
object with the specified reference.final IRange
PageContentInfo.getRange()
Returns the range to be printed.final IRange
RangeEventArgs.getRange()
Represents theIRange
ofRangeEventArgs
.final IRange
RepeatSetting.getRange()
Returns an instance of IRange whose repeat settings are the same.IPivotTable.getRowRange()
Returns a Range object that represents the range including the row area on the PivotTable report.IRange.getRows()
Returns theIRange
object that represents the rows in the specifiedrange.IWorksheet.getRows()
Returns theIRange
object that represents all the rows on thespecified worksheet.IWorksheet.getSelection()
Gets the selection range.IPivotCache.getSourceData()
Gets the data source for the PivotTable report.IPivotTable.getTableRange1()
Returns a Range object that represents the range containing the entire PivotTable report, but doesn’t include page fields.IPivotTable.getTableRange2()
Returns a Range object that represents the range containing the entire PivotTable report, including page fields.ITableColumn.getTotal()
Returns the Total row for theITableColumn
object.ITable.getTotalsRange()
IRange.getUsedRange()
Returns anIRange
representing the used range in the current range.IWorksheet.getUsedRange()
Gets the used range, its behavior is equivalent to getUsedRange(EnumSet.of(UsedRangeType.Axis, UsedRangeType.Data, UsedRangeType.Comment, UsedRangeType.Style, UsedRangeType.Merge))Returns an IRange object that represents the intersection of two ranges.Returns an IRange object that represents the intersection of several ranges.IRange.offset
(int rowOffset, int columnOffset) Returns an IRange object that represents the offset of this range.IRange.specialCells
(SpecialCellType type) Gets a IRange object that represents all the cells that match the specified type and value.IRange.specialCells
(SpecialCellType type, SpecialCellsValue value) Gets a IRange object that represents all the cells that match the specified type and value.Returns an IRange object that represents the union of two ranges.Returns an IRange object that represents the union of several ranges.修饰符和类型方法说明Adds a horizontal page break within the print area.Adds a hyperlink to the specified range (IHyperlink
object).IHyperlinks.add
(IRange anchor, String address, String subAddress, String screenTip, String textToDisplay) Adds a hyperlink to the specified range (IHyperlink
object).IPivotTables.add
(IPivotCache PivotCache, IRange TableDestination) Adds a new PivotTable report.IPivotTables.add
(IPivotCache PivotCache, IRange TableDestination, String TableName) Adds a new PivotTable report.Creates a table that includes the specified range of cells and returns the newly created object.Creates a table that includes the specified range of cells and returns the newly created object.Adds a vertical page break within the print area.void
Copies the range to the specified rangevoid
IRange.copy
(IRange destination, PasteOption pasteOption) Copies the range to the specified range.IPivotCache.createPivotTable
(IRange TableDestination) Creates a PivotTable report based on a PivotCache object.IPivotCache.createPivotTable
(IRange TableDestination, String TableName) Creates a PivotTable report based on a PivotCache object.void
Cuts the range to the specified range.final void
PrintManager.draw
(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Point location, IRange range) Draw the range data to the specific location in a specified pdf page.final void
PrintManager.draw
(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Point location, IRange range, PdfSaveOptions options) Draw the range data to the specific location in a specified pdf page.final void
PrintManager.draw
(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Rectangle rect, IRange range) Draw the range data to the specific location in a specified pdf page.final void
PrintManager.draw
(org.apache.pdfbox.pdmodel.PDDocument doc, org.apache.pdfbox.pdmodel.PDPage page, Rectangle rect, IRange range, PdfSaveOptions options) Draw the range data to the specific location in a specified pdf page.Finds specific information in a range.IRange.find
(Object what, IRange after, FindOptions options) Finds specific information in a range.IRange.generateGetPivotDataFunction
(IRange destination) Generate the corresponding function "GETPIVOTDATA" for the cells in the pivot table.final PageContentInfo
PrintManager.generatePageContentInfo
(IRange printArea, Size availableSize, int rowStart, int columnStart, boolean rowHeaderVisible, boolean columnHeaderVisible) Returns a PageContentInfo object.IRange.getAddress
(boolean rowAbsolute, boolean columnAbsolute, ReferenceStyle referenceStyle, IRange relativeTo) Returns a String value that represents the range reference.static Rectangle
CellInfo.GetRangeBoundary
(IRange range) Gets the position and size (in pixels) of the specified range.final Size
Returns the size of the range.void
Groups the selected sparklines.final boolean
PrintManager.hasPrintContent
(IRange range) Returns whether there has content to print.Returns an IRange object that represents the intersection of two ranges.Returns an IRange object that represents the intersection of several ranges.boolean
RangeFindReplace.FindReplaceImpl.FindMatch.invoke
(IRange range, Object what, String whatString, boolean useContains, boolean matchCase, boolean matchByte, IDisplayFormat searchFormat) boolean
RangePartialClasses.FindReplaceImpl.FindMatch.invoke
(IRange range, Object what, String whatString, boolean useContains, boolean matchCase, boolean matchByte, IDisplayFormat searchFormat) void
The Resize method allows theITable
object to be resized over a newrange.void
IAboveAverage.setAppliesTo
(IRange value) Sets a range object specifying the cell range to which the formatting rule is applied.void
IColorScale.setAppliesTo
(IRange value) Sets a Range object that specifies the cell range to which the formatting rule is applied.void
IDataBar.setAppliesTo
(IRange value) Sets a Range object that specifies the cell range to which the formatting rule is applied.void
IFormatCondition.setAppliesTo
(IRange value) Sets theIRange
object that specifies the cell range to which theformatting rule is applied.void
IIconSetCondition.setAppliesTo
(IRange value) Sets a Range object that specifies the cell range to which the formatting rule is applied.void
ITop10.setAppliesTo
(IRange value) Sets theIRange
object that specifies the cell range to which theformatting rule is applied.void
IUniqueValues.setAppliesTo
(IRange value) Sets a Range object specifying the cell range to which the formatting rule is applied.void
ISparkline.setLocation
(IRange value) Sets the location of a single sparkline.void
ISparklineGroup.setLocation
(IRange value) Sets theIRange
object that represents the location of the sparklinegroup.void
Sets the sort range.final void
Sets the range to be printed.final void
Sets an instance of IRange whose repeat settings are the same.void
IPivotCache.setSourceData
(IRange value) Sets the data source for the PivotTable report.void
IRange.sort
(IRange key, SortOrder order, SortOrientation orientation) Sorts the cells represented by this range according to the specified options.void
IRange.sort
(IRange key, SortOrder order, SortOrientation orientation, boolean caseSensitive) Sorts the cells represented by this range according to the specified options.Returns an IRange object that represents the union of two ranges.Returns an IRange object that represents the union of several ranges.限定符构造器说明CellColorSortField
(IRange key, IInterior interior) Sorts the interior based on color.CellColorSortField
(IRange key, IInterior interior, SortOrder order) FontColorSortField
(IRange key, Color color) Sorts the font color.FontColorSortField
(IRange key, Color color, SortOrder order) Sorts the font color.IconSortField
(IRange key, IIcon icon) Sorts the icon.IconSortField
(IRange key, IIcon icon, SortOrder order) Sorts the icon.RangeEventArgs
(IRange range) Represents the construction.RangeTemplateCellType
(IRange range) Use a specific range to create a RangeTemplateCellType.ValueSortField
(IRange key) Specifies the normal construct method.ValueSortField
(IRange key, SortOrder order) Specifies the normal construct method.ValueSortField
(IRange key, String customValues) Specifies the custom sort construct method. -
com.grapecity.documents.excel.drawing中IRange的使用
修饰符和类型方法说明IShape.getBottomRightCell()
Returns theIRange
object that represents the cell that lies underthe lower-right corner of the object.IShape.getTopLeftCell()
Returns theIRange
object that represents the cell that lies underthe upper-left corner of the specified object.修饰符和类型方法说明void
Adds one or more new series to theISeriesCollection
collection.Spread will determine where the values are by the size and orientation of the selected range.void
Adds one or more new series to theISeriesCollection
collection.void
Adds one or more new series to theISeriesCollection
collection.IShapes.addCameraPicture
(String reference, IRange range) Creates a picture from reference range to the specified range on the current sheet.IShapes.addCameraPicture
(String reference, String name, IRange range) Creates a picture from reference range to the specified range on the current sheet.Creates a chart at the specified range on the current sheet.Creates a chart at the specified range on the current sheet.IShapes.addConnector
(ConnectorType type, IRange range) Creates a connector at the specified range on the current sheet.IShapes.addConnector
(String name, ConnectorType type, IRange range) Creates a connector at the specified range on the current sheet.IShapes.addPicture
(InputStream stream, ImageType type, IRange range) Creates a picture from an existing stream at the specified range on the current sheet.IShapes.addPicture
(String filename, IRange range) Creates a picture from an existing file at the specified range on the current sheet.IShapes.addPicture
(String name, InputStream stream, ImageType type, IRange range) Creates a picture from an existing stream at the specified range on the current sheet.IShapes.addPicture
(String name, String filename, IRange range) Creates a picture from an existing file at the specified range on the current sheet.IShapes.addShape
(AutoShapeType type, IRange range) Returns theIShape
object that represents the new AutoShapeat the specified range on the current sheet.IShapes.addShape
(String name, AutoShapeType type, IRange range) Returns theIShape
object that represents the new AutoShapeat the specified range on the current sheet.void
Adds new data points to an existing series collection.void
IChart.setSourceData
(IRange source) Sets the source data range for the chart.void
IChart.setSourceData
(IRange source, RowCol plotBy) Sets the source data range for the chart. -
com.grapecity.documents.excel.forms中IRange的使用
修饰符和类型方法说明IControl.getBottomRightCell()
Gets the bottom right cell of this control.ISelector.getItemsSourceRange()
Represents the items source of this control.ICellLinkControl.getLinkedCell()
Gets a cell reference to bind theValue
property and theIRange.Value
property of a cellwith the two-way binding modeIControl.getTopLeftCell()
Gets the top left cell of this control.修饰符和类型方法说明void
ISelector.setItemsSourceRange
(IRange value) Represents the items source of this control.void
ICellLinkControl.setLinkedCell
(IRange value) Sets a cell reference to bind theValue
property and theIRange.Value
property of a cellwith the two-way binding mode