Table of contents
TOC
折叠目录
展开目录

PickerDialog 对象 (办公室)PickerDialog Object (Office)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

提供用于选择人员或选择数据的对话框用户界面功能。Provides dialog user interface functionality of for picking people or picking data.

注解Remarks

通过在应用程序对象的PickerDialog属性获得的PickerDialog对象。Get the PickerDialog object through the PickerDialog property in Application object.

示例Example

下面的代码设置选取器对话框的属性,然后显示选取器对话框。The following code sets the Picker Dialog properties and then displays the Picker Dialog.

Dim objPickerDialog As PickerDialog 
Dim objPickerProperties As PickerProperties 
Dim objPickerProperty As PickerProperty 
Dim objPickerExistingResults As PickerResults 
Dim objPickerExistingResult As PickerResult 
Dim objPickerResults As PickerResults 

' Configure the Picker Dialog properties. 
Set objPickerDialog = Application.PickerDialog 
objPickerDialog.DataHandlerId = "{000CDF0A-0000-0000-C000-000000000046}" 
objPickerDialog.Title = "Sample Picker Dialog" 
Set objPickerProperties = objPickerDialog.Properties 
Set objPickerProperty = objPickerProperties.Add("SiteUrl", "http://my", msoPickerFieldtypeText) 
Set objPickerExistingResults = objPickerDialog.CreatePickerResults 
Set objPickerExistingResult = objPickerExistingResults.Add("johndoe@contoso.com", "John Doe", "User") 

' Show the Picker Dialog and get the results. 
Set objPickerResults = objPickerDialog.Show(True, objPickerExistingResult)

方法Methods

名称Name
CreatePickerResultsCreatePickerResults
解决Resolve
ShowShow

属性Properties

名称Name
ApplicationApplication
CreatorCreator
DataHandlerIdDataHandlerId
属性Properties
标题Title

另请参阅See also

其他资源Other resources

对象模型引用Object Model Reference

© 2018 Microsoft