Implementing the Value Property

The Value property defines the default behavior of an object when no property or method is specified. It is typically used for the property that users associate most closely with the object. For example, a cell in a spreadsheet might have many properties (Font, Width, Height, and so on), but its Value property defines the value of the cell. To refer to this property, a user does not need to specify the property name Cell(1,1).Value, but can simply use Cell(1,1).The Value property is identified by the DISPID named DISPID_VALUE. In an .odl file, the Value property for an object has the attribute id(0).