GetCols
Returns the ApiRange object that represents all the cells on the columns range.
Syntax
expression.GetCols(sRange);
expression
- A variable that represents a ApiWorksheet class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
sRange | Required | string | Specifies the columns range in the string format. |
Returns
Example
This example shows how to get the ApiRange object that represents all the cells on the columns range.
var oWorksheet = Api.GetActiveSheet();
var oCols = oWorksheet.GetCols("A1:C1");
oCols.SetFillColor(Api.CreateColorFromRGB(255, 213, 191));