C# Класс _3PA.Npp.Indicator

Represents an indicator in a Scintilla control.
Показать файл Открыть проект

Открытые методы

Метод Описание
Add ( int start, int end ) : void

Adds the indicator and IndicatorValue value to the specified range of text.

Clear ( int start, int end ) : void

Clears the indicator and IndicatorValue value from the specified range of text.

DefinedAt ( int pos ) : bool

Returns true if the indicator is present at the given position

End ( int position ) : int

Find the end of an indicator range from a position Can be used to iterate through the document to discover all the indicator positions.

Specifying a position which is not filled with this indicator will cause this method to return the end position of the range where this indicator is not in use (the negative space). If this indicator is not in use anywhere within the document the return value will be 0.

FindRanges ( ) : List

List of points(start, end) that represents the range were the given indicator has been found

Indicator ( int index ) : System

Initializes a new instance of the Indicator class.

IndicatorAllOnFor ( int position ) : uint

Returns a bitmap representing the 32 indicators in use at the specified position.

IndicatorClearRange ( int position, int length ) : void

Removes the IndicatorCurrent indicator (and user-defined value) from the specified range of text.

IndicatorFillRange ( int position, int length ) : void

Adds the IndicatorCurrent indicator and IndicatorValue value to the specified range of text.

Start ( int position ) : int

Find the start of an indicator range from a position Can be used to iterate through the document to discover all the indicator positions.

Specifying a position which is not filled with this indicator will cause this method to return the start position of the range where this indicator is not in use (the negative space). If this indicator is not in use anywhere within the document the return value will be 0.

ValueAt ( int position ) : int

Returns the user-defined value for the indicator at the specified position.

Описание методов

Add() публичный Метод

Adds the indicator and IndicatorValue value to the specified range of text.
public Add ( int start, int end ) : void
start int
end int
Результат void

Clear() публичный Метод

Clears the indicator and IndicatorValue value from the specified range of text.
public Clear ( int start, int end ) : void
start int
end int
Результат void

DefinedAt() публичный Метод

Returns true if the indicator is present at the given position
public DefinedAt ( int pos ) : bool
pos int
Результат bool

End() публичный Метод

Find the end of an indicator range from a position Can be used to iterate through the document to discover all the indicator positions.
Specifying a position which is not filled with this indicator will cause this method to return the end position of the range where this indicator is not in use (the negative space). If this indicator is not in use anywhere within the document the return value will be 0.
public End ( int position ) : int
position int A zero-based document position using this indicator.
Результат int

FindRanges() публичный Метод

List of points(start, end) that represents the range were the given indicator has been found
public FindRanges ( ) : List
Результат List

Indicator() публичный Метод

Initializes a new instance of the Indicator class.
public Indicator ( int index ) : System
index int The index of this style within the IndicatorCollection that created it.
Результат System

IndicatorAllOnFor() публичный статический Метод

Returns a bitmap representing the 32 indicators in use at the specified position.
public static IndicatorAllOnFor ( int position ) : uint
position int The zero-based character position within the document to test.
Результат uint

IndicatorClearRange() публичный статический Метод

Removes the IndicatorCurrent indicator (and user-defined value) from the specified range of text.
public static IndicatorClearRange ( int position, int length ) : void
position int The zero-based character position within the document to start clearing.
length int The number of characters to clear.
Результат void

IndicatorFillRange() публичный статический Метод

Adds the IndicatorCurrent indicator and IndicatorValue value to the specified range of text.
public static IndicatorFillRange ( int position, int length ) : void
position int The zero-based character position within the document to start filling.
length int The number of characters to fill.
Результат void

Start() публичный Метод

Find the start of an indicator range from a position Can be used to iterate through the document to discover all the indicator positions.
Specifying a position which is not filled with this indicator will cause this method to return the start position of the range where this indicator is not in use (the negative space). If this indicator is not in use anywhere within the document the return value will be 0.
public Start ( int position ) : int
position int A zero-based document position using this indicator.
Результат int

ValueAt() публичный Метод

Returns the user-defined value for the indicator at the specified position.
public ValueAt ( int position ) : int
position int The zero-based document position to get the indicator value for.
Результат int