本文為機器翻譯文章。如需檢視英文版,請選取 [原文] 核取方塊。您也可以將滑鼠指標移到文字上,即可在快顯視窗顯示英文原文。
譯文
原文

ListBox.Delete 方法 ()

 

從工作表中刪除動態建立的 ListBox,並從 ControlCollection 中將它移除。

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

public object Delete()

傳回值

Type: System.Object

This method should only be used with a ListBox that is created programmatically at run time. An exception is thrown if you call this method on a ListBox that is added to the worksheet at design time.

For a code example that demonstrates how to use this method, see Button.Delete. All controls in the Microsoft.Office.Tools.Excel.Controls namespace have a functionally equivalent Delete method.

回到頁首
顯示: