FormCommandButtonControl.buttonDisplay Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
buttonDisplay(Int32) | |
buttonDisplay() |
Gets or sets the appearance of the button control. |
buttonDisplay(Int32)
buttonDisplay()
Gets or sets the appearance of the button control.
public:
virtual int buttonDisplay();
public virtual int buttonDisplay ();
abstract member buttonDisplay : unit -> int
override this.buttonDisplay : unit -> int
Public Overridable Function buttonDisplay () As Integer
Returns
An integer between zero and five, inclusive.
Remarks
The value of the property defines whether the text, the image, or both should be displayed on the button. This property also controls relative positions of text and image if both are displayed. The integer value that is returned contains the appearance of the button control as follows:
Value. | Description. |
---|---|
0 | Text only. |
1 | Image Only. |
2 | Text and image; the image is displayed below the text. |
3 | Text and image; the image is displayed above the text. |
4 | Text and image; the image is displayed to the left of the text. |
5 | Text and image; the image is displayed to the right of the text. |