次の方法で共有


_OlkCommandButton.Enabled Property

Returns or sets a Boolean (bool in C#) that indicates if the control is allowed to function. Read/write.

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

Syntax

'Declaration
<DispIdAttribute()> _
Property Enabled As Boolean
    Get
    Set
'Usage
Dim instance As _OlkCommandButton
Dim value As Boolean

value = instance.Enabled

instance.Enabled = value
[DispIdAttribute()]
bool Enabled { get; set; }

Property Value

Type: System.Boolean

Remarks

The default value is False.

When the control is disabled, the contents of the control appear dimmed.

See Also

Reference

_OlkCommandButton Interface

_OlkCommandButton Members

Microsoft.Office.Interop.Outlook Namespace