Infragistics(R) NetAdvantage(R) Windows Forms
SelectedLocation Property
See Also  E-mail your feedback on this topic.
Infragistics.Win.Misc Namespace > UltraNavigationBarLocation Class : SelectedLocation Property

Returns the member of this instance’s UltraNavigationBarLocation.Locations collection whose IsSelected property returns true, or null if this instance has no selected child.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property SelectedLocation As UltraNavigationBarLocation
C# 
public UltraNavigationBarLocation SelectedLocation {get;}

Remarks

The UltraNavigationBar's SelectedLocation property returns the terminal location in the navigation path. This is always the "rightmost" location displayed by the control. The UltraNavigationBar's SelectedLocation property always returns a non-null value; in the case where no locations are specifically selected, the RootLocation is returned, i.e., the root location is always selected. The UltraNavigationBarLocation's Infragistics.Win.Misc.UltraNavigationBarLocation.SelectedLocation property return the one member of its UltraNavigationBarLocation.Locations collection which is also present on the navigation path; this location appears to the immediate right of its parent. Setting the UltraNavigationBarLocation's SelectedLocation property to null causes all members of the navigation path which follow that location to be removed from the navigation path; the location whose SelectedLocation property was set to null then becomes the control's SelectedLocation.

See Also