Early binding

Although all available DataWindow object properties can be accessed with the four methods described in “Late binding,” the fact that properties and values are provided as string arguments at runtime requires defensive programming techniques to handle the exceptions that are thrown when invalid property names or values with invalid datatypes are supplied.

DataWindow .NET provides an object-oriented presentation of the properties of a DataWindow object through which many of the controls on the DataWindow object can be treated as class instances with their own sets of properties and methods. Using these classes allows the .NET programmer to access some properties in an early-binding fashion, resulting in more maintainable code.

The classes that support this “dot notation” approach are the GraphicObject classes, ExpressionBasedProperty classes, EditStyle classes, and the PrintProperties class.