Upravit

Sdílet prostřednictvím


_OlkCommandButton.Picture Property

Definition

Returns or sets an StdPicture that represents the picture that is displayed on the control. Read/write.

public:
 property stdole::StdPicture ^ Picture { stdole::StdPicture ^ get(); void set(stdole::StdPicture ^ value); };
public stdole.StdPicture Picture { get; set; }
Public Property Picture As StdPicture

Property Value

Remarks

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.

Applies to