共用方式為


CheckedListBox 類別 (2007 系統)

更新:2007 年 11 月

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

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

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

備註

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

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

繼承階層架構

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      System.Windows.Forms.Control
        System.Windows.Forms.ListControl
          System.Windows.Forms.ListBox
            System.Windows.Forms.CheckedListBox
              Microsoft.Office.Tools.Excel.Controls.CheckedListBox

執行緒安全

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

請參閱

參考

CheckedListBox 成員

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