In This Article

NavigableSymbolSelector Class

Represents a control that contains drop-down lists of accessible symbols (typically types and members) for a document.

[ToolboxBitmap(typeof(NavigableSymbolSelector))]
public class NavigableSymbolSelector : DpiAwareControl, IDisposable, IDpiAwareElement
Inheritance:
object MarshalByRefObject Component Control DpiAwareControl object
Implements:
IDisposable IDpiAwareElement

Constructors

NavigableSymbolSelector()

Initializes an instance of the NavigableSymbolSelector class.

public NavigableSymbolSelector()

Properties

AreMemberSymbolsSupported

Gets or sets whether the member symbols drop-down is displayed.

public bool AreMemberSymbolsSupported { get; set; }

Property Value

bool:

true if the member symbols drop-down is displayed; otherwise, false. The default value is true.

AreRootSymbolsSupported

Gets or sets whether the root symbols drop-down is displayed.

public bool AreRootSymbolsSupported { get; set; }

Property Value

bool:

true if the root symbols drop-down is displayed; otherwise, false. The default value is true.

IsInSelectedMemberSymbol

Gets whether the attached SyntaxEditor's caret is within the SelectedMemberSymbol.

public bool IsInSelectedMemberSymbol { get; }

Property Value

bool:

true if the attached SyntaxEditor's caret is within the SelectedMemberSymbol; otherwise, false.

IsInSelectedRootSymbol

Gets whether the attached SyntaxEditor's caret is within the SelectedRootSymbol.

public bool IsInSelectedRootSymbol { get; }

Property Value

bool:

true if the attached SyntaxEditor's caret is within the SelectedRootSymbol; otherwise, false.

MemberSymbols

Gets the collection of member INavigableSymbol objects.

public IEnumerable<INavigableSymbol> MemberSymbols { get; }

Property Value

IEnumerable<INavigableSymbol>:

The collection of member INavigableSymbol objects.

RootSymbols

Gets the collection of root INavigableSymbol objects.

public IEnumerable<INavigableSymbol> RootSymbols { get; }

Property Value

IEnumerable<INavigableSymbol>:

The collection of root INavigableSymbol objects.

SelectedMemberSymbol

Gets or sets the currently-selected INavigableSymbol for a member symbol.

[Browsable(false)]
public INavigableSymbol SelectedMemberSymbol { get; set; }

Property Value

INavigableSymbol:

The currently-selected INavigableSymbol for a member symbol.

SelectedRootSymbol

Gets or sets the currently-selected INavigableSymbol for a root symbol.

[Browsable(false)]
public INavigableSymbol SelectedRootSymbol { get; set; }

Property Value

INavigableSymbol:

The currently-selected INavigableSymbol for a root symbol.

SyntaxEditor

Gets or sets the SyntaxEditor to monitor.

public SyntaxEditor SyntaxEditor { get; set; }

Property Value

SyntaxEditor:

The SyntaxEditor to monitor.

Methods

Dispose(bool)

Disposes any resources used by the object.

protected override void Dispose(bool disposing)
Parameter Type Description
disposing bool

Whether the object is being disposed.

DpiScaleChanged(SizeF)

Called when the DPI-based scale factor of the element changes.

protected override void DpiScaleChanged(SizeF scaleFactor)
Parameter Type Description
scaleFactor SizeF

The new scale factor where Width is applied to the x-axis, and Height is applied to the y-axis.

See Also

NotifyPropertyChanged(string)

Notifies that a property has changed.

protected void NotifyPropertyChanged(string propertyName)
Parameter Type Description
propertyName string

The name of the property that was changed.

OnInvalidated(InvalidateEventArgs)

Raises the Invalidated event.

protected override void OnInvalidated(InvalidateEventArgs e)
Parameter Type Description
e InvalidateEventArgs

An InvalidateEventArgs that contains the event data.

OnLayout(LayoutEventArgs)

Raises the Layout event.

protected override void OnLayout(LayoutEventArgs e)
Parameter Type Description
e LayoutEventArgs

A LayoutEventArgs that contains the event data.

Remarks

The OnLayout method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

When overriding OnLayout in a derived class, be sure to call the base class's OnLayout method so that registered delegates receive the event.

OnPropertyChanged(PropertyChangedEventArgs)

Raises the PropertyChanged event.

protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
Parameter Type Description
e PropertyChangedEventArgs

The PropertyChangedEventArgs that contains the event data.

OnResize(EventArgs)

Raises the Resize event.

protected override void OnResize(EventArgs e)
Parameter Type Description
e EventArgs

An EventArgs that contains the event data.

Remarks

The OnResize method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

When overriding OnResize in a derived class, be sure to call the base class's OnResize method so that registered delegates receive the event.

Events

PropertyChanged

Occurs when a property has been changed.

public event PropertyChangedEventHandler PropertyChanged

Event Type

PropertyChangedEventHandler

Inherited Members