Düzenle

Aracılığıyla paylaş


PropertyPage object (Outlook)

Represents a custom property page in the Options dialog box or in the folder Properties dialog box.

Remarks

Outlook uses this object to allow a custom property page to interact with the Apply button in the dialog box.

The PropertyPage object is an abstract object. That is, the PropertyPage object in the Microsoft Outlook Object Library contains no implementation code. Instead, it is provided as a template to help you implement the object in Microsoft Visual Basic for Applications (VBA). This provides a predefined set of interfaces that Outlook can use to determine whether your custom property page has changed and to notify your program that the user has clicked the Apply or OK button. (If your custom property page does not rely on the Apply button, then you don't need to implement the PropertyPage object.)

A custom property page is an ActiveX control that is displayed by Outlook in the Options dialog box or in the folder Properties dialog box when the user clicks on the custom property page's tab. To implement the PropertyPage object, the module that contains the implementation code must contain the following statement.

Implements Outlook.PropertyPage

The module must also contain procedures that implement the properties and methods of the PropertyPage object. For example, to implement the Dirty property, a procedure similar to the following appears in the module.

Private Property Get PropertyPage_Dirty() As Boolean 
 
 PropertyPage_Dirty = gblDirty 
 
End Property

To implement a method of the PropertyPage object, the module must contain a statement similar to the following.

Private Sub PropertyPage_Apply() 
 
 ' Code to set properties according to the user's 
 
 ' selections goes here. 
 
End Sub

Methods

Name
Apply
GetPageInfo

Properties

Name
Dirty

See also

Outlook Object Model Reference

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.