PickerProperties 对象 (Office)PickerProperties object (Office)

PickerProperty对象的集合。A collection of PickerProperty objects.

注释Remarks

每个PickerProperty对象是 (ID) 名称 / 值对传递到 PickerDialog 对象的选项值。Each PickerProperty object is a Name(ID)/Value pair for passing option values to a PickerDialog object. 您可以通过PickerDialog对象的Properties属性获取PickerProperties集合对象。You can get a PickerProperties collection object through the Properties property of PickerDialog 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", "https://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
AddAdd
RemoveRemove

属性Properties

名称Name
ApplicationApplication
CountCount
CreatorCreator
ItemItem

另请参阅See also

对象模型参考Object Model Reference