<div class="meta" robots="noindex">

</div>

Class

# Xojo.Introspection.TypeInfo

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2020r2. Please use `Introspection</api/language/introspection/introspection>` as a replacement.

</div>

## Description

Contains type information for objects, arrays, simple data types and structures.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                                         | Type                                             | Read-Only | Shared |
|--------------------------------------------------------------|--------------------------------------------------|-----------|--------|
| `BaseType<xojo.introspection.typeinfo.basetype>`             | `TypeInfo</api/language/introspection/typeinfo>` | ✓         |        |
| `FullName<xojo.introspection.typeinfo.fullname>`             | `Text</api/deprecated/text>`                     | ✓         |        |
| `HasElementType<xojo.introspection.typeinfo.haselementtype>` | `Boolean</api/data_types/boolean>`               | ✓         |        |
| `IsArray<xojo.introspection.typeinfo.isarray>`               | `Boolean</api/data_types/boolean>`               | ✓         |        |
| `IsClass<xojo.introspection.typeinfo.isclass>`               | `Boolean</api/data_types/boolean>`               | ✓         |        |
| `IsEnum<xojo.introspection.typeinfo.isenum>`                 | `Boolean</api/data_types/boolean>`               | ✓         |        |
| `IsInterface<xojo.introspection.typeinfo.isinterface>`       | `Boolean</api/data_types/boolean>`               | ✓         |        |
| `IsPointer<xojo.introspection.typeinfo.ispointer>`           | `Boolean</api/data_types/boolean>`               | ✓         |        |
| `IsPrimitive<xojo.introspection.typeinfo.isprimitive>`       | `Boolean</api/data_types/boolean>`               | ✓         |        |
| `IsPrivate<xojo.introspection.typeinfo.isprivate>`           | `Boolean</api/data_types/boolean>`               | ✓         |        |
| `IsProtected<xojo.introspection.typeinfo.isprotected>`       | `Boolean</api/data_types/boolean>`               | ✓         |        |
| `IsPublic<xojo.introspection.typeinfo.ispublic>`             | `Boolean</api/data_types/boolean>`               | ✓         |        |
| `IsValueType<xojo.introspection.typeinfo.isvaluetype>`       | `Boolean</api/data_types/boolean>`               | ✓         |        |
| `Name<xojo.introspection.typeinfo.name>`                     | `Text</api/deprecated/text>`                     | ✓         |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                                             | Parameters                                            | Returns                                                        | Shared |
|------------------------------------------------------------------|-------------------------------------------------------|----------------------------------------------------------------|--------|
| `ArrayElementType<xojo.introspection.typeinfo.arrayelementtype>` |                                                       | `TypeInfo</api/language/introspection/typeinfo>`               |        |
| `ArrayRank<xojo.introspection.typeinfo.arrayrank>`               |                                                       | `Integer</api/data_types/integer>`                             |        |
| `Constructors<xojo.introspection.typeinfo.constructors>`         |                                                       | `ConstructorInfo</api/language/introspection/constructorinfo>` |        |
| `GetAttributes<xojo.introspection.typeinfo.getattributes>`       |                                                       | `AttributeInfo</api/language/introspection/attributeinfo>`     |        |
| `IsSubClassOf<xojo.introspection.typeinfo.issubclassof>`         | c As `TypeInfo</api/language/introspection/typeinfo>` | `Boolean</api/data_types/boolean>`                             |        |
| `Methods<xojo.introspection.typeinfo.methods>`                   |                                                       | `MethodInfo</api/language/introspection/methodinfo>`           |        |
| `Parameters<xojo.introspection.typeinfo.parameters>`             |                                                       | `ParameterInfo</api/language/introspection/parameterinfo>`     |        |
| `Properties<xojo.introspection.typeinfo.properties>`             |                                                       | `PropertyInfo</api/language/introspection/propertyinfo>`       |        |

## Property descriptions

<div id="xojo.introspection.typeinfo.basetype">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.BaseType

**BaseType** As `TypeInfo</api/language/introspection/typeinfo>`

Gets parent (or Super) of the current object. Allows you to navigate the type hierarchy from child to parent.

This property is read-only.

<div id="xojo.introspection.typeinfo.fullname">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.FullName

**FullName** As `Text</api/deprecated/text>`

The fully qualified name used as a unique identifier. This can differ from the simple name whenever the type lives in a namespace.

This property is read-only.

<div id="xojo.introspection.typeinfo.haselementtype">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.HasElementType

**HasElementType** As `Boolean</api/data_types/boolean>`

Compound data types have their own attributes as well as an element type.

This property is read-only.

<div id="xojo.introspection.typeinfo.isarray">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.IsArray

**IsArray** As `Boolean</api/data_types/boolean>`

Indicates the item is an array.

This property is read-only.

<div id="xojo.introspection.typeinfo.isclass">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.IsClass

**IsClass** As `Boolean</api/data_types/boolean>`

Indicates the item is a class.

This property is read-only.

<div id="xojo.introspection.typeinfo.isenum">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.IsEnum

**IsEnum** As `Boolean</api/data_types/boolean>`

Indicates the item is an enumeration.

This property is read-only.

<div id="xojo.introspection.typeinfo.isinterface">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.IsInterface

**IsInterface** As `Boolean</api/data_types/boolean>`

Indicates the item is a class interface.

This property is read-only.

<div id="xojo.introspection.typeinfo.ispointer">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.IsPointer

**IsPointer** As `Boolean</api/data_types/boolean>`

Indicates the item is a Ptr or another external pointer type.

This property is read-only.

<div id="xojo.introspection.typeinfo.isprimitive">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.IsPrimitive

**IsPrimitive** As `Boolean</api/data_types/boolean>`

Indicates the item is a primitive type, which are: `Boolean</api/data_types/boolean>`, `String</api/data_types/string>`, `String</api/data_types/string>`, `Color</api/data_types/color>`, `Integer</api/data_types/integer>`, `Double</api/data_types/double>`, `Single</api/data_types/single>`, `Currency</api/data_types/currency>` and other numeric types.

This property is read-only.

<div id="xojo.introspection.typeinfo.isprivate">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.IsPrivate

**IsPrivate** As `Boolean</api/data_types/boolean>`

Checks if the item has private scope.

This property is read-only.

<div id="xojo.introspection.typeinfo.isprotected">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.IsProtected

**IsProtected** As `Boolean</api/data_types/boolean>`

Checks if the item has protected scope.

This property is read-only.

<div id="xojo.introspection.typeinfo.ispublic">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.IsPublic

**IsPublic** As `Boolean</api/data_types/boolean>`

Checks if the item has public scope.

This property is read-only.

<div id="xojo.introspection.typeinfo.isvaluetype">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.IsValueType

**IsValueType** As `Boolean</api/data_types/boolean>`

Indicates the item is a value type, which means it is not a reference. With value types, assignments copy the value itself rather than the reference to the value. Primitive, pointer, structure and enum types are all value types.

This property is read-only.

<div id="xojo.introspection.typeinfo.name">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.Name

**Name** As `Text</api/deprecated/text>`

The name of the item.

This property is read-only.

Gets the names of methods on a class:

``` xojo
Using Xojo.Introspection

Var obj As New Class1
Var info As TypeInfo = GetType(obj)
Var methods() As MethodInfo = info.Methods

Var methodNames() As Text
For Each m As MethodInfo In methods
  methodNames.AddRow(m.Name)
Next
```

## Method descriptions

<div id="xojo.introspection.typeinfo.arrayelementtype">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.ArrayElementType

**ArrayElementType** As `TypeInfo</api/language/introspection/typeinfo>`

Returns the type information for the array.

<div id="xojo.introspection.typeinfo.arrayrank">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.ArrayRank

**ArrayRank** As `Integer</api/data_types/integer>`

The number of dimensions of an array. For arrays only (IsArray = True).

<div id="xojo.introspection.typeinfo.constructors">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.Constructors

**Constructors** As `ConstructorInfo</api/language/introspection/constructorinfo>`

<div class="note">

<div class="title">

Note

</div>

`Constructors</api/language/constructor>` are special methods called when you create an object with the `New</api/language/new>` keyword and pass in the parameters above.

</div>

<div id="xojo.introspection.typeinfo.getattributes">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.GetAttributes

**GetAttributes** As `AttributeInfo</api/language/introspection/attributeinfo>`

Gets the attributes for the associated item.

The following code gets the attributes for the window containing the code:

``` xojo
Var myAttributes() As Introspection.AttributeInfo
myAttributes = GetType(Self).GetAttributes
```

<div id="xojo.introspection.typeinfo.issubclassof">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.IsSubClassOf

**IsSubClassOf**(c As `TypeInfo</api/language/introspection/typeinfo>`) As `Boolean</api/data_types/boolean>`

Returns True if this item a subclass of the specified type c. False if not.

<div id="xojo.introspection.typeinfo.methods">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.Methods

**Methods** As `MethodInfo</api/language/introspection/methodinfo>`

Returns an array of methods for the item, which must be a class instance.

<div id="xojo.introspection.typeinfo.parameters">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.Parameters

**Parameters** As `ParameterInfo</api/language/introspection/parameterinfo>`

Gets the parameters for the member.

<div id="xojo.introspection.typeinfo.properties">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Xojo.Introspection.TypeInfo.Properties

**Properties** As `PropertyInfo</api/language/introspection/propertyinfo>`

Returns an array of the properties for the item, which must be a class instance.

## Notes

Xojo.Introspection.TypeInfo automatically converts to standard `Introspection.TypeInfo</api/language/introspection/typeinfo>`.

## Compatibility

All project types on all supported operating systems.
