C# 클래스 Alsing.Windows.Forms.SyntaxBox.Caret

Caret class used by the SyntaxBoxControl
파일 보기 프로젝트 열기: vchelaru/FlatRedBall 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Blink bool

공개 메소드들

메소드 설명
Caret ( EditViewControl control ) : System

Caret constructor

CaretMoved ( bool Select ) : void
CropPosition ( ) : void

Confines the caret to a valid position within the active document

CurrentSegment ( ) : Span

Gets the word that the caret is placed on. This only applies if the active row is fully parsed.

GetWord ( int countBefore ) : Word
GetWordText ( int countBefore ) : string
MoveAbsoluteEnd ( bool Select ) : void

Moves the caret to the absolute end of the active row

MoveAbsoluteHome ( bool Select ) : void

Moves the caret to the first column of the active row

MoveDown ( bool Select ) : void

Moves the caret down one row.

MoveDown ( int rows, bool Select ) : void

Moves the caret down x rows.

MoveEnd ( bool Select ) : void

Moves the caret to the end of a row ignoring any whitespace characters at the end of the row

MoveHome ( bool Select ) : void

Moves the caret to the first non whitespace column at the active row

MoveLeft ( bool Select ) : void

Moves the caret left one step. if the caret is placed at the first column the caret will be moved up one line and placed at the last column of the row.

MoveRight ( bool Select ) : void

Moves the caret right one step. if the caret is placed at the last column of a row the caret will move down one row and be placed at the first column of that row.

MoveUp ( bool Select ) : void

Moves the caret up one row.

MoveUp ( int rows, bool Select ) : void

Moves the caret up x rows

SetPos ( TextPoint pos ) : void

Sets the position of the caret

비공개 메소드들

메소드 설명
OnChange ( ) : void
PositionChange ( object s, EventArgs e ) : void
RememberXPos ( ) : void

메소드 상세

Caret() 공개 메소드

Caret constructor
public Caret ( EditViewControl control ) : System
control EditViewControl The control that will use the caret
리턴 System

CaretMoved() 공개 메소드

public CaretMoved ( bool Select ) : void
Select bool
리턴 void

CropPosition() 공개 메소드

Confines the caret to a valid position within the active document
public CropPosition ( ) : void
리턴 void

CurrentSegment() 공개 메소드

Gets the word that the caret is placed on. This only applies if the active row is fully parsed.
public CurrentSegment ( ) : Span
리턴 Alsing.SourceCode.Span

GetWord() 공개 메소드

public GetWord ( int countBefore ) : Word
countBefore int
리턴 Alsing.SourceCode.Word

GetWordText() 공개 메소드

public GetWordText ( int countBefore ) : string
countBefore int
리턴 string

MoveAbsoluteEnd() 공개 메소드

Moves the caret to the absolute end of the active row
public MoveAbsoluteEnd ( bool Select ) : void
Select bool True if a selection should be created from the current caret pos to the new pos
리턴 void

MoveAbsoluteHome() 공개 메소드

Moves the caret to the first column of the active row
public MoveAbsoluteHome ( bool Select ) : void
Select bool True if a selection should be created from the current caret pos to the new pos
리턴 void

MoveDown() 공개 메소드

Moves the caret down one row.
public MoveDown ( bool Select ) : void
Select bool True if a selection should be created from the current caret pos to the new pos
리턴 void

MoveDown() 공개 메소드

Moves the caret down x rows.
public MoveDown ( int rows, bool Select ) : void
rows int The number of rows the caret should be moved down
Select bool True if a selection should be created from the current caret pos to the new pos
리턴 void

MoveEnd() 공개 메소드

Moves the caret to the end of a row ignoring any whitespace characters at the end of the row
public MoveEnd ( bool Select ) : void
Select bool True if a selection should be created from the current caret pos to the new pos
리턴 void

MoveHome() 공개 메소드

Moves the caret to the first non whitespace column at the active row
public MoveHome ( bool Select ) : void
Select bool True if a selection should be created from the current caret pos to the new pos
리턴 void

MoveLeft() 공개 메소드

Moves the caret left one step. if the caret is placed at the first column the caret will be moved up one line and placed at the last column of the row.
public MoveLeft ( bool Select ) : void
Select bool True if a selection should be created from the current caret pos to the new pos
리턴 void

MoveRight() 공개 메소드

Moves the caret right one step. if the caret is placed at the last column of a row the caret will move down one row and be placed at the first column of that row.
public MoveRight ( bool Select ) : void
Select bool True if a selection should be created from the current caret pos to the new pos
리턴 void

MoveUp() 공개 메소드

Moves the caret up one row.
public MoveUp ( bool Select ) : void
Select bool True if a selection should be created from the current caret pos to the new pos
리턴 void

MoveUp() 공개 메소드

Moves the caret up x rows
public MoveUp ( int rows, bool Select ) : void
rows int Number of rows the caret should be moved up
Select bool True if a selection should be created from the current caret pos to the new pos
리턴 void

SetPos() 공개 메소드

Sets the position of the caret
public SetPos ( TextPoint pos ) : void
pos Alsing.SourceCode.TextPoint Point containing the new x and y positions
리턴 void

프로퍼티 상세

Blink 공개적으로 프로퍼티

Used by the painter to determine if the caret should be rendered or not
public bool Blink
리턴 bool