C# Class Alsing.Windows.Forms.SyntaxBox.Caret

Caret class used by the SyntaxBoxControl
Afficher le fichier Open project: vchelaru/FlatRedBall Class Usage Examples

Méthodes publiques

Свойство Type Description
Blink bool

Méthodes publiques

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

Private Methods

Méthode Description
OnChange ( ) : void
PositionChange ( object s, EventArgs e ) : void
RememberXPos ( ) : void

Method Details

Caret() public méthode

Caret constructor
public Caret ( EditViewControl control ) : System
control EditViewControl The control that will use the caret
Résultat System

CaretMoved() public méthode

public CaretMoved ( bool Select ) : void
Select bool
Résultat void

CropPosition() public méthode

Confines the caret to a valid position within the active document
public CropPosition ( ) : void
Résultat void

CurrentSegment() public méthode

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

GetWord() public méthode

public GetWord ( int countBefore ) : Word
countBefore int
Résultat Alsing.SourceCode.Word

GetWordText() public méthode

public GetWordText ( int countBefore ) : string
countBefore int
Résultat string

MoveAbsoluteEnd() public méthode

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

MoveAbsoluteHome() public méthode

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

MoveDown() public méthode

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

MoveDown() public méthode

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

MoveEnd() public méthode

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

MoveHome() public méthode

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

MoveLeft() public méthode

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

MoveRight() public méthode

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

MoveUp() public méthode

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

MoveUp() public méthode

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

SetPos() public méthode

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

Property Details

Blink public_oe property

Used by the painter to determine if the caret should be rendered or not
public bool Blink
Résultat bool