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

TreeView.Delete 方法 ()

 

從文件中刪除動態建立的 TreeView,並從 ControlCollection 中將它移除。

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

public void Delete()

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

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

回到頁首
顯示: