Xojo.Introspection.AttributeInfo.Name

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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

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

Var attributeNames() As Text
For Each a As AttributeInfo In attrs
attributeNames.AddRow(a.Name)
Next