Skip to main content

GetClassType

Returns a type of the ApiTheme class.

Syntax

expression.GetClassType();

expression - A variable that represents a ApiTheme class.

Parameters

This method doesn't have any parameters.

Returns

"theme"

Example

This example shows how to get the class type of an ApiTheme object.

const workbook = Api.GetActiveWorkbook();
const theme = workbook.GetTheme();
const classType = theme.GetClassType();

const worksheet = Api.GetActiveSheet();
worksheet.GetRange('A1').SetValue('Theme class type: ' + classType);