_OlkCommandButton.Picture Property

Returns or sets a picture that is displayed on the control. Read/write.

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

Syntax

'Declaration
Property Picture As StdPicture
    Get
    Set
'Usage
Dim instance As _OlkCommandButton
Dim value As StdPicture

value = instance.Picture

instance.Picture = value
StdPicture Picture { get; set; }

Property Value

Type: StdPicture

Remarks

The picture is of the Microsoft Windows type StdPicture. The default value is Nothing (a null reference (Nothing in Visual Basic) in C#).

A picture and text cannot be displayed at the same time on the control, so when the picture property is set, the text property is ignored.

The picture is always displayed in the center of the button control. The picture will be clipped as necessary to fit in the available space.

See Also

Reference

_OlkCommandButton Interface

_OlkCommandButton Members

Microsoft.Office.Interop.Outlook Namespace