Button 類別 (2007 系統)

更新:2007 年 11 月

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

命名空間:  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 Button _
    Inherits Button _
    Implements ISupportInitializeExtendedControl

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

備註

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

請不要使用 New 建構函式來建立新的 Button。使用 AddButton 方法,將新的 Button 加入至工作表。

繼承階層架構

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      System.Windows.Forms.Control
        System.Windows.Forms.ButtonBase
          System.Windows.Forms.Button
            Microsoft.Office.Tools.Excel.Controls.Button

執行緒安全

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

請參閱

參考

Button 成員

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