About the Interface Painter

You can create interfaces in the Interface painter. It is similar to the Custom Class (nonvisual object) painter, with a few notable differences.

You can define functions, events, indexers, and .NET properties for interfaces using the prototype pane of the Interface painter. However, you cannot edit the scripting area of the painter, since scripting is not allowed for the members of an interface. You must do the scripting in the objects that implement the interface.

The fields in the prototype pane are similar to those for other painters. However, for functions that you create in the Interface painter, the Access field is not available. Access is always public for interfaces. Also, you cannot select Enumerations or Structures for interfaces.

When you select Declare from the drop-down list at the upper left of the Interface painter, you can select Global Variables, Global External Functions, Namespace, and Interfaces from the second drop-down list. You cannot declare instance or shared variables for an interface.

Related tasks
Defining an Interface