Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Objective Views User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

9.4 Property Containers

A property container is an object that has properties. Property containers implement the IODPropertyContainer interface, which is derived from SFL's IPropertyContainer interface. The IPropertyContainer interface is shown in Example 8.

Example 8: IPropertyContainer interface

The IODPropertyContainer interface extends IPropertyContainer with a set of GetValue() and SetValue() methods that are overloaded for several common data types. The IODPropertyContainer interface is shown in Example 9.

Example 9: IODPropertyContainer interface

The GetPropertyValue() and PutPropertyValue() methods in the sfl::IPropertyContainer interface store and retrieve property values as VARIANTs. The GetValue() and SetValue() methods in the IODPropertyContainer also set property values, but are usually more convenient to use since simple data types can be used instead of VARIANTs.

Components are property containers. Nested properties, such as CODFontProperties and CODLineProperties, are also property containers. The CODPropertyContainer class provides an implementation of the IODPropertyContainer interface and is mixed into the CODComponent class and into the nested property classes, such as CODFontProperties and CODLineProperties.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.