次の方法で共有


_FormRegion.SetControlItemProperty Method

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

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Sub SetControlItemProperty ( _
    Control As Object, _
    PropertyName As String _
)
'Usage
Dim instance As _FormRegion
Dim Control As Object
Dim PropertyName As String

instance.SetControlItemProperty(Control, _
    PropertyName)
[DispIdAttribute()]
void SetControlItemProperty(
    Object Control,
    string PropertyName
)

Parameters

  • Control
    Type: System.Object

    A control in the form region to which the property specified by PropertyName will be bound.

  • PropertyName
    Type: System.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, https://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 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"
myPage.Controls("bar").ItemProperty = "subject";

See Also

Reference

_FormRegion Interface

_FormRegion Members

Microsoft.Office.Interop.Outlook Namespace