Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (32 sloc) 1.87 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date localization_priority
FormRegion.SetControlItemProperty method (Outlook)
vbaol11.chm2401
vbaol11.chm2401
outlook
Outlook.FormRegion.SetControlItemProperty
da0b3762-e10d-85d1-70bf-94156d21e900
06/08/2017
Normal

FormRegion.SetControlItemProperty method (Outlook)

Binds an explicit built-in property or a custom property to a control in the form region.

Syntax

expression. SetControlItemProperty( _Control_ , _PropertyName_ )

expression A variable that represents a FormRegion object.

Parameters

Name Required/Optional Data type Description
Control Required Object A control in the form region to which the property specified by PropertyName will be bound.
PropertyName Required String The name of the property that will be bound to the control.

Remarks

You can use this method to bind an explicit built-in property or a custom property to a control. You must reference the property by its string name, for example, Subject, and not by namespace, for example, http://schemas.microsoft.com/mapi/proptag/0x0037001E.

The PropertyName parameter is not case-sensitive. For example, SetControlItemProperty interprets an argument, CustomerId, to be the same as CustomerID and binds the specified control to the built-in ContactItem.CustomerID property.

Other than using the SetControlItemProperty method of a FormRegion object, you can also use code similar to the following to bind a property such as the Subject property to a control:

myPage.Controls("bar").ItemProperty = "subject"

See also

FormRegion Object

[!includeSupport and feedback]

You can’t perform that action at this time.