Table of Contents

Class DefinitionViewModel

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

Represents a view model for a IDefinition.

public class DefinitionViewModel
Inheritance
DefinitionViewModel
Inherited Members

Constructors

DefinitionViewModel(IDefinition)

Initializes a new instance of the DefinitionViewModel class.

public DefinitionViewModel(IDefinition definition)

Parameters

definition IDefinition

Definition (Model).

Exceptions

ArgumentNullException

Thrown when definition is null.

Properties

Code

Gets the code line at Position.

public string Code { get; }

Property Value

string

Definition

Gets the definition.

public IDefinition Definition { get; }

Property Value

IDefinition

ExtendedCode

Gets the code line at Position and three preceding and following lines.

public string ExtendedCode { get; }

Property Value

string

Extension

Gets the file name extension without period.

public string Extension { get; }

Property Value

string

FileName

Gets the file name.

public string FileName { get; }

Property Value

string

FilePath

Gets the full path of the file name.

public string FilePath { get; }

Property Value

string

FirstVisibleLine

Gets the first visible line (one based).

public int FirstVisibleLine { get; }

Property Value

int

LastVisibleLine

Gets the last visible line (one based).

public int LastVisibleLine { get; }

Property Value

int

Position

Gets the Position.

public TextPosition Position { get; }

Property Value

TextPosition