Table of Contents

Class ErrorListItem

Namespace
Loehnert.Lisrt.Scripting.ErrorList
Assembly
Loehnert.Lisrt.Scripting.dll

Class for an item in the error list.

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

Constructors

ErrorListItem()

Initializes a new instance of the ErrorListItem class.

public ErrorListItem()

ErrorListItem(ErrorListItemType, string, string, int?, int?)

Initializes a new instance of the ErrorListItem class.

public ErrorListItem(ErrorListItemType itemType, string description, string path = null, int? line = null, int? column = null)

Parameters

itemType ErrorListItemType

Type for the item.

description string

Description for the item.

path string

Path of the file where the error occurred.

line int?

Line in the file where the error occurred.

column int?

Column in the file where the error occurred.

Properties

Column

Gets or sets the column in the file where the error occurred.

public int? Column { get; set; }

Property Value

int?

Description

Gets or sets the description (the shown message) of the list item.

public string Description { get; set; }

Property Value

string

File

Gets the name of the file where the error occurred.

public string File { get; }

Property Value

string

ItemType

Gets or sets the ErrorListItemType.

public ErrorListItemType ItemType { get; set; }

Property Value

ErrorListItemType

Line

Gets or sets the line in the file where the error occurred.

public int? Line { get; set; }

Property Value

int?

OnClick

Gets or sets the action on a click on the item in the list.

public Action OnClick { get; set; }

Property Value

Action

Path

Gets or sets the path of the file where the error occurred.

public string Path { get; set; }

Property Value

string

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.