Keyword

# Property

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

## Description

A <span class="title-ref">Property</span> is a value of a class or module. You can think of it as a variable that belongs to a class or module. Most of the built-in classes have properties. For example, the Date class has a <span class="title-ref">Property</span> to get the Year.

## Notes

You do not normally use the <span class="title-ref">Property</span> keyword in your own Xojo code. You add a <span class="title-ref">Property</span> by choose the Add button in the Command Bar and choosing <span class="title-ref">Property</span>, Computed <span class="title-ref">Property</span>, Shared <span class="title-ref">Property</span>, or Shared Computed <span class="title-ref">Property</span>.

The <span class="title-ref">Property</span> keyword can be used when writing XojoScript.

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | All |
| **Operating Systems** | All |

<div class="seealso">

`Shared</api/language/shared>` keyword

</div>
