C# 클래스 _3PA.Npp.Indicator

Represents an indicator in a Scintilla control.
파일 보기 프로젝트 열기: jcaillon/3P

공개 메소드들

메소드 설명
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