Class BreakPointCollection
Collection for break points.
Implements
Inherited Members
Namespace: Loehnert.Lisrt.Scripting.Project
Assembly: Loehnert.Lisrt.Scripting.dll
Syntax
public class BreakPointCollection : IEnumerable<BreakPoint>, IEnumerable, INotifyCollectionChanged
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<BreakPoint> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<BreakPoint> | A System.Collections.IEnumerator that can be used to iterate through the collection. |
IsBreakPoint(Int32)
Gets a value indicating whether there is a break point on the line.
Declaration
public bool IsBreakPoint(int lineNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | lineNumber | Line of the break point. |
Returns
Type | Description |
---|---|
Boolean | True if there is a break point on the line number, otherwise false. |
MoveBreakPoints(Int32, Int32)
Moves the break points which are equal or greater than the startLine
, by the lineCount
.
Declaration
public void MoveBreakPoints(int startLine, int lineCount)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | startLine | Line number where moving breakpoints starts. |
System.Int32 | lineCount | Number of lines to move. |
Remarks
lineCount
can be zero or less than zero.
Toggle(Int32)
Toggles the break point on the line number.
Declaration
public void Toggle(int lineNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | lineNumber | Line to toggle. |
Events
CollectionChanged
Occurs when a break point is added or removed.
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type | Description |
---|---|
System.Collections.Specialized.NotifyCollectionChangedEventHandler |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | An System.Collections.IEnumerator object that can be used to iterate through the collection. |