Class DefinitionViewModel
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
IDefinitionDefinition (Model).
Exceptions
- ArgumentNullException
Thrown when
definition
is null.
Properties
Code
Gets the code line at Position.
public string Code { get; }
Property Value
Definition
Gets the definition.
public IDefinition Definition { get; }
Property Value
ExtendedCode
Gets the code line at Position and three preceding and following lines.
public string ExtendedCode { get; }
Property Value
Extension
Gets the file name extension without period.
public string Extension { get; }
Property Value
FileName
Gets the file name.
public string FileName { get; }
Property Value
FilePath
Gets the full path of the file name.
public string FilePath { get; }
Property Value
FirstVisibleLine
Gets the first visible line (one based).
public int FirstVisibleLine { get; }
Property Value
LastVisibleLine
Gets the last visible line (one based).
public int LastVisibleLine { get; }
Property Value
Position
Gets the Position.
public TextPosition Position { get; }