C# Class _3PA.Npp.Indicator

Represents an indicator in a Scintilla control.
Afficher le fichier Open project: jcaillon/3P

Méthodes publiques

Méthode Description
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.

Method Details

Add() public méthode

Adds the indicator and IndicatorValue value to the specified range of text.
public Add ( int start, int end ) : void
start int
end int
Résultat void

Clear() public méthode

Clears the indicator and IndicatorValue value from the specified range of text.
public Clear ( int start, int end ) : void
start int
end int
Résultat void

DefinedAt() public méthode

Returns true if the indicator is present at the given position
public DefinedAt ( int pos ) : bool
pos int
Résultat bool

End() public méthode

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.
Résultat int

FindRanges() public méthode

List of points(start, end) that represents the range were the given indicator has been found
public FindRanges ( ) : List
Résultat List

Indicator() public méthode

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.
Résultat System

IndicatorAllOnFor() public static méthode

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.
Résultat uint

IndicatorClearRange() public static méthode

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.
Résultat void

IndicatorFillRange() public static méthode

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.
Résultat void

Start() public méthode

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.
Résultat int

ValueAt() public méthode

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.
Résultat int