UIHierarchyItems.Expanded 속성
계층 구조에서 노드가 확장되어 있는지 여부를 가져오거나 설정합니다.
네임스페이스: EnvDTE
어셈블리: EnvDTE(EnvDTE.dll)
구문
‘선언
Property Expanded As Boolean
Get
Set
bool Expanded { get; set; }
property bool Expanded {
bool get ();
void set (bool value);
}
abstract Expanded : bool with get, set
function get Expanded () : boolean
function set Expanded (value : boolean)
속성 값
형식: System.Boolean
노드가 확장되어 있으면 true를 나타내고 그렇지 않으면 false를 나타내는 부울 값입니다.
예제
Sub ExpandedExample()
Dim UIH As UIHierarchy = _
DTE.Windows.Item(Constants.vsWindowKindMacroExplorer).Object
Dim UIHItem As UIHierarchyItem = UIH.GetItem("Macros\Samples")
UIHItem.Select(vsUISelectionType.vsUISelectionTypeSetCaret)
If UIHItem.IsSelected = False Then
If UIH.UIHierarchyItems.Expanded = True Then
MsgBox("Node is expanded.")
Else
MsgBox("Node is not expanded.")
End If
End If
UIH.SelectDown(vsUISelectionType.vsUISelectionTypeSelect, 2)
UIH.DoDefaultAction()
UIH.SelectDown(vsUISelectionType.vsUISelectionTypeSelect, 1)
UIH.SelectUp(vsUISelectionType.vsUISelectionTypeExtend, 1)
End Sub
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.