IWebMatrixHost.TreeItemCreated 事件
適用於版本2
在將項目新增至檔案樹狀結構時發生。
命名空間: Microsoft.WebMatrix.Extensibility
組件: Microsoft.WebMatrix.Extensibility (在 Microsoft.WebMatrix.Extensibility.dll 中)
語法
'宣告
Event TreeItemCreated As EventHandler(Of TreeItemEventArgs)
'用途
Dim instance As IWebMatrixHost
Dim handler As EventHandler(Of TreeItemEventArgs)
AddHandler instance.TreeItemCreated, handler
event EventHandler<TreeItemEventArgs> TreeItemCreated
event EventHandler<TreeItemEventArgs^>^ TreeItemCreated {
void add (EventHandler<TreeItemEventArgs^>^ value);
void remove (EventHandler<TreeItemEventArgs^>^ value);
}
abstract TreeItemCreated : IEvent<EventHandler<TreeItemEventArgs>,
TreeItemEventArgs>
JScript supports the use of events, but not the declaration of new ones.
備註
可以設定圖示和工具提示;只有最後一項指派會生效。