Get Started
Usage API
More information

GetClassType

GetClassType() → { "range" }

Get the type of this class.

Parameters:

This method doesn't have any parameters.

Returns:

Type
"range"

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oRange = oWorksheet.GetRange("A1");
oRange.SetValue("This is just a sample text in the cell A1.");
oClassType = oRange.GetClassType();
oWorksheet.GetRange('A3').SetValue("Class type: " + oClassType);
builder.SaveFile("xlsx", "GetClassType.xlsx");
builder.CloseFile();

Resulting document