Range Class

Range class

Encapsulates the object that represents a range of cells within a spreadsheet.


type Range struct  {
	ptr unsafe.Pointer
}

Constructors

MethodDescription

Methods

MethodDescription
IsNullChecks whether the implementation object is nullptr.
AutoFill_RangeAutomaticall fill the target range.
AutoFill_Range_AutoFillTypeAutomaticall fill the target range.
GetCurrentRegionReturns a Range object that represents the current region.The current region is a range bounded by any combination of blank rows and blank columns.
AddHyperlinkAdds a hyperlink to a specified cell or a range of cells.
IsIntersectIndicates whether the range is intersect.
IntersectReturns a object that represents the rectangular intersection of two ranges.
GetRowCountGets the count of rows in the range.
GetColumnCountGets the count of columns in the range.
GetNameGets or sets the name of the range.
SetNameGets or sets the name of the range.
GetRefersToGets the range’s refers to.
GetAddressGets address of the range.
IsBlankIndicates whether the range contains values.
GetLeftGets the distance, in points, from the left edge of column A to the left edge of the range.
GetTopGets the distance, in points, from the top edge of row 1 to the top edge of the range.
GetWidthGets the width of a range in points.
GetHeightGets the width of a range in points.
GetFirstRowGets the index of the first row of the range.
GetFirstColumnGets the index of the first column of the range.
MergeCombines a range of cells into a single cell.
UnMergeUnmerges merged cells of this range.
PutValuePuts a value into the range, if appropriate the value will be converted to other data type and cell’s number format will be reset.
GetValueGets and sets the value of the range.
SetValueGets and sets the value of the range.
SetStyle_Style_BoolApply the cell style.
ApplyStyleApplies formats for a whole range.
SetStyle_StyleSets the style of the range.
SetOutlineBorders_CellBorderType_CellsColorSets the outline borders around a range of cells with same border style and color.
SetOutlineBorders_CellBorderType_ColorSets the outline borders around a range of cells with same border style and color.
SetOutlineBorder_BorderType_CellBorderType_CellsColorSets outline border around a range of cells.
SetOutlineBorder_BorderType_CellBorderType_ColorSets outline border around a range of cells.
SetInsideBordersSet inside borders of the range.
GetColumnWidthSets or gets the column width of this range
SetColumnWidthSets or gets the column width of this range
GetRowHeightSets or gets the height of rows in this range
SetRowHeightSets or gets the height of rows in this range
MoveToMove the current range to the dest range.
CopyDataCopies cell data (including formulas) from a source range.
CopyValueCopies cell value from a source range.
CopyStyleCopies style settings from a source range.
Copy_Range_PasteOptionsCopying the range with paste special options.
TransposeTranspose (rotate) data from rows to columns or vice versa.
Copy_RangeCopies data (including formulas), formatting, drawing objects etc. from a source range.
GetGets object in this range.
GetCellOrNullGets object or null in this range.
GetOffsetGets range by offset.
GetEntireColumnGets a Range object that represents the entire column (or columns) that contains the specified range.
GetEntireRowGets a Range object that represents the entire row (or rows) that contains the specified range.
GetWorksheetGets the object which contains this range.
ToStringReturns a string represents the current Range object.
ToJsonConvert the range to JSON value.