Class GoToLineViewModel
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
-
PropertyChangedBaseViewAwareScreenGoToLineViewModel
- Implements
-
IViewAwareIScreenIHaveDisplayNameIActivateIDeactivateIGuardCloseICloseINotifyPropertyChangedExIChild
- Inherited Members
-
Screen.OnInitialize()Screen.OnActivate()Screen.ParentScreen.DisplayNameScreen.IsActiveScreen.IsInitializedScreen.ActivatedScreen.AttemptingDeactivationScreen.DeactivatedViewAware.DefaultContextViewAware.ViewsViewAware.ViewAttachedPropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
GoToLineViewModel(TextFileViewModel)
Initializes a new instance of the GoToLineViewModel class.
public GoToLineViewModel(TextFileViewModel textFileViewModel)
Parameters
textFileViewModel
TextFileViewModelView model to go to line.
Exceptions
- ArgumentNullException
Thrown when an argument is null.
- ArgumentException
Thrown ProjectItem
textFileViewModel
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
this[string]
Gets the error message for the property with the given name.
public string this[string columnName] { get; }
Parameters
columnName
stringThe 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
LinesCount
Gets the lines count.
public int LinesCount { get; }