RAD Studio |  |

Pages of Type Information
See Also
Collapse All

When you select an element in the object list pane, pages of type information appear in the Type Library Editor that are valid for the selected element. Which pages appear depends on the element selected in the object list panel, as follows:

Type Info element | Page of type information | Contents of page
Type library | Attributes | Name, version, and GUID for the type library, as well as information linking the type library to help.
| Uses | List of other type libraries that contain definitions on which this one depends.
| Flags | Flags that determine how other applications can use the type library.
| Text | All definitions and declarations defining the type library itself (see discussion below).
Interface | Attributes | Name, version, and GUID for the interface, the name of the interface from which it descends, and information linking the interface to help.
| Flags | Flags that indicate whether the interface is hidden, dual, Automation-compatible, and/or extensible.
| Text | The definitions and declarations for the Interface (see discussion below).
Dispinterface | Attributes | Name, version, and GUID for the interface, and information linking it to help.
| Flags | Flags that indicate whether the Dispinterface is hidden, dual, and/or extensible.
| Text | The definitions and declarations for the Dispinterface. (see discussion below).
CoClass | Attributes | Name, version, and GUID for the CoClass, and information linking it to help.
| Implements | A List of interfaces that the CoClass implements, as well as their attributes.
| COM+ | The attributes of transactional objects, such as the transaction model, call synchronization, just-in-time activation, object pooling, and so on. Also includes the attributes of COM+ event objects.
| Flags | Flags that indicate various attributes of the CoClass, including how clients can create and use instances, whether it is visible to users in a browser, whether it is an ActiveX control, and whether it can be aggregated (act as part of a composite).
| Text | The definitions and declarations for the CoClass (see discussion below).
Enumeration | Attributes | Name, version, and GUID for the enumeration, and information linking it to help.
| Text | The definitions and declarations for the enumerated type (see discussion below).
Alias | Attributes | Name, version, and GUID for the enumeration, the type the alias represents, and information linking it to help.
| Text | The definitions and declarations for the alias (see discussion below).
Record | Attributes | Name, version, and GUID for the record, and information linking it to help.
| Text | The definitions and declarations for the record (see discussion below).
Union | Attributes | Name, version, and GUID for the union, and information linking it to help.
| Text | The definitions and declarations for the union (see discussion below).
Module | Attributes | Name, version, GUID, and associated DLL for the module, and information linking it to help.
| Text | The definitions and declarations for the module (see discussion below).
Method | Attributes | Name, dispatch ID or DLL entry point, and information linking it to help.
| Parameters | Method return type, and a list of all parameters with their types and any modifiers.
| Flags | Flags to indicate how clients can view and use the method, whether this is a default method for the interface, and whether it is replaceable.
| Text | The definitions and declarations for the method (see discussion below).
Property | Attributes | Name, dispatch ID, type of property access method (getter vs. setter), and information linking it to help.
| Parameters | Property access method return type, and a list of all parameters with their types and any modifiers.
| Flags | Flags to indicate how clients can view and use the property, whether this is a default for the interface, whether the property is replaceable, bindable, and so on.
| Text | The definitions and declarations for the property access method (see discussion below).
Const | Attributes | Name, value, type (for module consts), and information linking it to help.
| Flags | Flags to indicate how clients can view and use the constant, whether this represents a default value, whether the constant is bindable, and so on.
| Text | The definitions and declarations for the constant (see discussion below).
Field | Attributes | Name, type, and information linking it to help.
| Flags | Flags to indicate how clients can view and use the field, whether this represents a default value, whether the field is bindable, and so on.
| Text | The definitions and declarations for the field (see discussion below).

You can use each of the pages of type information to view or edit the values it displays. Most of the pages organize the information into a set of controls so that you can type in values or select them from a list without requiring that you know the syntax of the corresponding declarations. This can prevent many small mistakes such as typographic errors when specifying values from a limited set. However, you may find it faster to type in the declarations directly. To do this, use the Text page.

All type library elements have a text page that displays the syntax for the element. This syntax appears in an IDL subset of Microsoft Interface Definition Language, or Delphi. See Using Delphi or IDL syntax for details. Any changes you make in other pages of the element are reflected on the text page. If you add code directly in the text page, changes are reflected in the other pages of the Type Library editor.

The Type Library Editor generates syntax errors if you add identifiers that are currently not supported by the editor; the editor currently supports only those identifiers that relate to type library support (not RPC support or constructs used by the Microsoft IDL compiler for C++ code generation or marshaling support).

See Also

Object List Pane

Toolbar

Status Bar

Type Library Elements

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