Class ErrorListItem
Class for an item in the error list.
public class ErrorListItem : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged, IErrorListItem
- Inheritance
-
PropertyChangedBaseErrorListItem
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.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
ErrorListItemTypeType for the item.
description
stringDescription for the item.
path
stringPath 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
File
Gets the name of the file where the error occurred.
public string File { get; }
Property Value
ItemType
Gets or sets the ErrorListItemType.
public ErrorListItemType ItemType { get; set; }
Property Value
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
Path
Gets or sets the path of the file where the error occurred.
public string Path { get; set; }
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe 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.