Table of Contents

Class GoToLineViewModel

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

Represents a view model for a go to line dialog.

public class GoToLineViewModel : Screen, IViewAware, IScreen, IHaveDisplayName, IActivate, IDeactivate, IGuardClose, IClose, INotifyPropertyChangedEx, INotifyPropertyChanged, IChild, IDataErrorInfo
Inheritance
PropertyChangedBase
ViewAware
Screen
GoToLineViewModel
Implements
IViewAware
IScreen
IHaveDisplayName
IActivate
IDeactivate
IGuardClose
IClose
INotifyPropertyChangedEx
IChild
Inherited Members
Screen.OnInitialize()
Screen.OnActivate()
Screen.Parent
Screen.DisplayName
Screen.IsActive
Screen.IsInitialized
Screen.Activated
Screen.AttemptingDeactivation
Screen.Deactivated
ViewAware.DefaultContext
ViewAware.Views
ViewAware.ViewAttached
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

GoToLineViewModel(TextFileViewModel)

Initializes a new instance of the GoToLineViewModel class.

public GoToLineViewModel(TextFileViewModel textFileViewModel)

Parameters

textFileViewModel TextFileViewModel

View model to go to line.

Exceptions

ArgumentNullException

Thrown when an argument is null.

ArgumentException

Thrown ProjectItemtextFileViewModel is not of type TextProjectItem.

Properties

Error

Gets an error message indicating what is wrong with this object.

public string Error { get; }

Property Value

string

An error message indicating what is wrong with this object. The default is an empty string.

GoToLineCommand

Gets the command to go to line.

public ICommand GoToLineCommand { get; }

Property Value

ICommand

this[string]

Gets the error message for the property with the given name.

public string this[string columnName] { get; }

Parameters

columnName string

The name of the property whose error message to get.

Property Value

string

The error message for the property. The default is an empty string ("").

LineToGo

Gets or sets the line to go.

public string LineToGo { get; set; }

Property Value

string

LinesCount

Gets the lines count.

public int LinesCount { get; }

Property Value

int