Vertragsverwaltung-Klassenbibliothek  

ComboBoxTreeClass.SelectedItem -Eigenschaft

[Visual Basic]
Public Shadows Property SelectedItem() As TreeNode

Quellcode

[Visual Basic]
        Public Shadows Property SelectedItem() As TreeNode 
Get 
Dim CurrentSelection As TreeNodeEx = MyBase.SelectedItem 
If CurrentSelection Is Nothing Then 
Return Nothing 
Else 
Return CurrentSelection.TreeNode 
End If 
End Get 
Set(ByVal Value As TreeNode) 
If Value Is Nothing Then 
Dim Cancel As Boolean = False 
RaiseEvent BeforeSelect(Nothing, Cancel) 
If Cancel Then Exit Property 
Me.TreeView.SelectedNode = Nothing 
Me.Items.Clear() 
RaiseEvent AfterSelect() 
Else 
Me.TreeView.SelectedNode = Value 
End If 
End Set 
End Property

Forderungen

Plattformen: Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

Siehe auch

ComboBoxTreeClass