C# Class FastColoredTextBoxNS.InsertCharCommand

Insert single char
This operation includes also insertion of new line and removing char by backspace
Inheritance: UndoableCommand
Datei anzeigen Open project: samarjeet27/ynoteclassic Class Usage Examples

Public Properties

Property Type Description
c char

Public Methods

Method Description
Clone ( ) : UndoableCommand
Execute ( ) : void

Execute operation

InsertCharCommand ( TextSource ts, char c ) : System

Constructor

Undo ( ) : void

Undo operation

Private Methods

Method Description
BreakLines ( int iLine, int pos, TextSource ts ) : void
InsertChar ( char c, char &deletedChar, TextSource ts ) : void
InsertLine ( TextSource ts ) : void
MergeLines ( int i, TextSource ts ) : void

Merge lines i and i+1

Method Details

Clone() public method

public Clone ( ) : UndoableCommand
return UndoableCommand

Execute() public method

Execute operation
public Execute ( ) : void
return void

InsertCharCommand() public method

Constructor
public InsertCharCommand ( TextSource ts, char c ) : System
ts TextSource
c char Inserting char
return System

Undo() public method

Undo operation
public Undo ( ) : void
return void

Property Details

c public_oe property

public char c
return char