RAD Studio
ContentsIndex
PreviousUpNext
Property Declarations

A property is declared in the declaration of its component class. To declare a property, you specify three things:

  • The name of the property.
  • The type of the property.
  • The methods used to read and write the value of the property. If no write method is declared, the property is read-only.
Properties declared in a published section of the component's class declaration are editable in the Object Inspector at design time. The value of a published property is saved with the component in the form file. Properties declared in a public section are available at runtime and can be read or set in program code.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!