Table of Contents

Class CodeSnippetRanges

Namespace
Alternet.Editor.TextSource
Assembly
Alternet.Editor.v9.dll

Represents collection containing list of code snippet literals.

public class CodeSnippetRanges : SortList<ICodeSnippetRange>, IList, ICollection, IReadOnlyList<ICodeSnippetRange>, IReadOnlyCollection<ICodeSnippetRange>, ISortList<ICodeSnippetRange>, ICodeSnippetRanges, IList<ICodeSnippetRange>, ICollection<ICodeSnippetRange>, IEnumerable<ICodeSnippetRange>, IEnumerable
Inheritance
CodeSnippetRanges
Implements
Extension Methods

Constructors

CodeSnippetRanges()

Initializes a new instance of the CodeSnippetList class with default settings.

Methods

BlockDeleting(Rectangle)

Removes all snippets from the snippet collection which position in the specified rectangle.

FindSnippet(Point, bool, out int)

Locates code snippet at specified position.

GetFirstSnippet()

Finds first snippet in snippet collection with nonempty id.

GetNextSnippet(int)

Finds next snippet in snippet collection with different id.

GetPrevSnippet(int)

Finds previous snippet in snippet collection with different id.

IsEditableRangeSelected(ICodeSnippetRange, Rectangle)
IsFirstSnippet(ICodeSnippetRange)

Checks whether code snippet represents first snippet in subset of snippets that have the same ids.

IsFirstSnippet(int)

Checks whether code snippet represents first snippet in subset of snippets that have the same ids.

NeedClear(Rectangle)

Obtains boolean value indicating whether all snippets need removing from the list.

NeedClear(int)

Obtains boolean value indicating whether all snippets need removing from the list.

PositionChanged(int, int, int, int, bool)

Changes positions of any code snippet located next to the specified position.

Sort()

Sorts the snippet list.