本文整理匯總了C#中System.Windows.Forms.NumericUpDown.DownButton方法的典型用法代碼示例。如果您正苦於以下問題:C# NumericUpDown.DownButton方法的具體用法?C# NumericUpDown.DownButton怎麽用?C# NumericUpDown.DownButton使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Windows.Forms.NumericUpDown
的用法示例。
在下文中一共展示了NumericUpDown.DownButton方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: NumericUpDownEnhancedPropTest
public void NumericUpDownEnhancedPropTest ()
{
NumericUpDown n1 = new NumericUpDown ();
n1.Minimum = 200;
Assert.AreEqual (200, n1.Maximum, "#11");
Assert.AreEqual (200, n1.Value, "#12");
n1.Minimum = 100;
n1.Maximum = 50;
Assert.AreEqual (50, n1.Minimum, "#13");
n1.Minimum = 0;
n1.Maximum = 100;
n1.Value = 90;
n1.Maximum = 50;
Assert.AreEqual (50, n1.Value, "#14");
n1.Minimum = 0;
n1.Maximum = 100;
n1.Value = 90;
n1.DownButton ();
Assert.AreEqual (89, n1.Value, "#15");
n1.UpButton ();
Assert.AreEqual (90, n1.Value, "#16");
}