IVsHierarchyItem インターフェイス

定義

重要

この API は CLS 準拠ではありません。

内の 1 つの項目のインスタンス プロパティ情報を IVsUIHierarchyWindow格納します。

public interface class IVsHierarchyItem : Microsoft::VisualStudio::Shell::ISupportDisposalNotification, System::ComponentModel::INotifyPropertyChanged, System::ComponentModel::INotifyPropertyChanging
[System.CLSCompliant(false)]
public interface IVsHierarchyItem : Microsoft.VisualStudio.Shell.ISupportDisposalNotification, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging
public interface IVsHierarchyItem : Microsoft.VisualStudio.Shell.ISupportDisposalNotification, System.ComponentModel.INotifyPropertyChanged, System.ComponentModel.INotifyPropertyChanging
[<System.CLSCompliant(false)>]
type IVsHierarchyItem = interface
    interface ISupportDisposalNotification
    interface INotifyPropertyChanged
    interface INotifyPropertyChanging
type IVsHierarchyItem = interface
    interface ISupportDisposalNotification
    interface INotifyPropertyChanged
    interface INotifyPropertyChanging
Public Interface IVsHierarchyItem
Implements INotifyPropertyChanged, INotifyPropertyChanging, ISupportDisposalNotification
属性
実装

注釈

IVsHierarchyItemには、アイテムを表す /item 識別子または IVsHierarchy/item 識別子のペアを定義IVsHierarchyする が関連付けられていますIVsHierarchyItemIdentity。 このインターフェイスでは、アイテムのテキストなどのプロパティを取得し、その子アイテムと親アイテムを列挙することもできます。

実際には、ソリューション エクスプローラー内の 1 つの項目 (C# プロジェクト ノードなど) は、2 つの異なる項目識別子を持つ 2 つの異なるIVsHierarchy実装で構成できます。 具体的な例として、"ソリューション" は IVsHierarchy ソリューション内の項目の "ツリー" を表す ですが、ソリューション IVsHierarchy はプロジェクトの内容について知りません。 ソリューション内の特定の C# プロジェクトも別 IVsHierarchyの です。 プロジェクト自体を表すノードは、ソリューションの のノード #50IVsHierarchy、プロジェクトの の IVsHierarchy ノードVSITEMID_ROOTである可能性があります。 IVsHierarchyItemIdentity と は、 IVsHierarchyItem これら 2 つの異なる IVsHierarchy 項目識別子を 1 つの概念にバインドします。

プロパティ

AreChildrenRealized

の子項目が既に IVsHierarchyItem 列挙されているかどうかを示します。

CanonicalName

に対応するアイテムの正規名を GetCanonicalName(UInt32, String)取得します。

Children

この IVsHierarchyItemの子項目を取得します。

HierarchyIdentity

この項目を表す ID を取得します。

IsBold

この項目を で太字に IVsUIHierarchyWindowするかどうかを取得または設定します。

IsCut

この項目を の IVsUIHierarchyWindow切り取り項目としてレンダリングするかどうかを取得または設定します。

IsDisposed

アイテムが破棄されるかどうかを判断します。 このプロパティの変更は、INotifyPropertyChanged.PropertyChanged を通じて通知されます。これにより、コンシューマーは PropertyChangedEventManager を介して弱いイベント リスナーを簡単に使用できます。

(継承元 ISupportDisposalNotification)
Parent

この項目の親 IVsHierarchyItem を取得します。

Text

GetProperty(UInt32, Int32, Object)プロパティに対応する 内のIVsUIHierarchyWindow項目のテキスト キャプションをVSHPROPID_Caption取得します。

適用対象