TypeInfo.IsClass

From Xojo Documentation

Read-Only Property (As Boolean )
BooleanValue = aTypeInfo.IsClass

Supported for all project types and targets.

True if the datatype represents a class.