NumericUpDown.DownButton 方法

定义

减小数字显示框(也称作 up-down 控件)中的值。Decrements the value of the spin box (also known as an up-down control).

public:
 override void DownButton();
public override void DownButton ();
override this.DownButton : unit -> unit
Public Overrides Sub DownButton ()

注解

调用 DownButton 方法时,无论是在代码中还是通过单击 "向下" 按钮,都将验证新值并使用适当的格式更新控件。When the DownButton method is called, either in code or by the click of the down button, the new value is validated and the control is updated with the new value in the appropriate format. 具体而言,如果 UserEdit 属性设置为 true,则在验证或更新值之前调用 ParseEditText 方法。Specifically, if the UserEdit property is set to true, the ParseEditText method is called prior to validating or updating the value. 然后,将值验证为介于 MinimumMaximum 值之间,并调用 UpdateEditText 方法。The value is then validated to be between the Minimum and Maximum values, and the UpdateEditText method is called.

适用于

另请参阅