共用方式為


NumericUpDown 類別 (2007 系統)

更新:2007 年 11 月

表示可以加入 Microsoft Office Excel 工作表的 Windows Form NumericUpDown。

命名空間:  Microsoft.Office.Tools.Excel.Controls
組件:  Microsoft.Office.Tools.Excel.v9.0 (在 Microsoft.Office.Tools.Excel.v9.0.dll 中)

語法

<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public Class NumericUpDown _
    Inherits NumericUpDown _
    Implements ISupportInitializeExtendedControl

Dim instance As NumericUpDown
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public class NumericUpDown : NumericUpDown, 
    ISupportInitializeExtendedControl

備註

Microsoft.Office.Tools.Excel.Controls.NumericUpDown 與 System.Windows.Forms.NumericUpDown 不同。Microsoft.Office.Tools.Excel.Controls.NumericUpDown 具有其他成員,這些成員可以讓它加入 Excel 工作表,並為它提供其他方法和屬性。

請不要使用 New 建構函式 (Constructor) 建立新的 NumericUpDown。使用 AddNumericUpDown 方法,將新的 NumericUpDown 加入至工作表。

繼承階層架構

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      System.Windows.Forms.Control
        System.Windows.Forms.ScrollableControl
          System.Windows.Forms.ContainerControl
            System.Windows.Forms.UpDownBase
              System.Windows.Forms.NumericUpDown
                Microsoft.Office.Tools.Excel.Controls.NumericUpDown

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

NumericUpDown 成員

Microsoft.Office.Tools.Excel.Controls 命名空間