Table of Contents

Class NamesViewModel

Namespace
Loehnert.Lisrt.Scripting.Editor.File.ViewModels
Assembly
Loehnert.Lisrt.Scripting.dll

Represents a view model for the named items in top of a text editor to show classes and methods.

public class NamesViewModel : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged
Inheritance
PropertyChangedBase
NamesViewModel
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

NamesViewModel(TextFileViewModel, INamesProvider)

Initializes a new instance of the NamesViewModel class.

public NamesViewModel(TextFileViewModel textFileViewModel, INamesProvider namesProvider)

Parameters

textFileViewModel TextFileViewModel

Associated text file view model.

namesProvider INamesProvider

Provider that provides the names.

Exceptions

ArgumentNullException

Thrown when an argument is null.

ArgumentException

Thrown when ProjectItem is not of type TextProjectItem.

Properties

CurrentSecondLevelName

Gets or sets the current second level name.

public IName CurrentSecondLevelName { get; set; }

Property Value

IName

CurrentTopLevelName

Gets or sets the current top level name.

public IName CurrentTopLevelName { get; set; }

Property Value

IName

NameWasFound

Gets a value indicating whether th CurrentName was found in Names.

public bool NameWasFound { get; }

Property Value

bool

SecondLevelNames

Gets the second level names (e.g. methods of a class).

public IEnumerable<IName> SecondLevelNames { get; }

Property Value

IEnumerable<IName>

TopLevelNames

Gets the top level names (e.g. classes).

public IEnumerable<IName> TopLevelNames { get; }

Property Value

IEnumerable<IName>