Xojo.Introspection.AttributeInfo.Name

From Xojo Documentation

Property (As Text )
aXojo.Introspection.AttributeInfo.Name = newTextValue
or
TextValue = aXojo.Introspection.AttributeInfo.Name

Supported for all project types and targets.

The name of the attribute.

Sample Code

This code gets the names of all the attributes on Class1:

Using Xojo.Introspection

Dim obj As New Class1
Dim info As TypeInfo = GetType(obj)
Dim attrs() As AttributeInfo = info.GetAttributes

Dim attributeNames() As Text
For Each a As AttributeInfo In attrs
attributeNames.Append(a.Name)
Next