C# Class Alsing.Windows.Forms.SyntaxBoxControl

Inheritance: Alsing.Windows.Forms.CoreLib.SplitViewParentControl
Show file Open project: vchelaru/FlatRedBall Class Usage Examples

Protected Properties

Property Type Description
DisableAutoList bool
DisableFindForm bool
DisableInfoTip bool
DisableIntelliMouse bool

Private Properties

Property Type Description
InitGraphics void
InitializeComponent void
ParseTimer_Tick void
Redraw void
View_CaretChanged void
View_Click void
View_ClipboardUpdated void
View_DoubleClick void
View_DragDrop void
View_DragEnter void
View_DragLeave void
View_DragOver void
View_InfoTipSelectedIndexChanged void
View_KeyDown void
View_KeyPress void
View_KeyUp void
View_MouseDown void
View_MouseEnter void
View_MouseHover void
View_MouseLeave void
View_MouseMove void
View_MouseUp void
View_RowClick void
View_RowDoubleClick void
View_RowMouseDown void
View_RowMouseMove void
View_RowMouseUp void
View_SelectionChanged void

Public Methods

Method Description
AttachDocument ( SyntaxDocument document ) : void
AutoListAdd ( string text, int ImageIndex ) : void

Adds an item to the autolist control.

AutoListAdd ( string text, string InsertText, int ImageIndex ) : void

Adds an item to the autolist control.

AutoListAdd ( string text, string InsertText, string ToolTip, int ImageIndex ) : void

Adds an item to the autolist control.

AutoListBeginLoad ( ) : void

Disables painting while loading data into the Autolist

AutoListClear ( ) : void

Clears the content in the autolist.

AutoListEndLoad ( ) : void

Resumes painting and autosizes the Autolist.

AutoListInsertSelectedText ( ) : void
CharFromPixel ( int x, int y ) : TextPoint

Converts a Client pixel coordinate into a TextPoint (Column/Row)

ClearSelection ( ) : void

Clears the selection in the active view.

ConvertSpacesToTabs ( ) : void

Converts all spaces the size of .TabSize in the Document to tabs.

ConvertTabsToSpaces ( ) : void

Converts all tabs to spaces the size of .TabSize in the Document.

Copy ( ) : void

Executes a Copy action on the selection in the active view.

Cut ( ) : void

Executes a Cut action on the selection in the active view.

CutClear ( ) : void
Delete ( ) : void

Executes a Delete action on the selection in the active view.

FindNext ( ) : void

Finds the next occurance of the pattern in the find/replace dialog

FindNext ( string Pattern, bool MatchCase, bool WholeWords, bool UseRegEx ) : void

Selects the next word (from the current caret position) that matches the parameter criterias.

GotoLine ( int RowIndex ) : void

Moves the caret of the active view to a specific row.

GotoNextBookmark ( ) : void

Moves the caret of the active view to the next bookmark.

GotoPreviousBookmark ( ) : void

Moves the caret of the active view to the previous bookmark.

IsOverSelection ( int x, int y ) : bool

Takes a pixel position and returns true if that position is inside the selected text.

OnRenderRow ( RowPaintEventArgs e ) : void
OnWordMouseDown ( WordMouseEventArgs &e ) : void
OnWordMouseHover ( WordMouseEventArgs &e ) : void
Open ( string filename ) : void
Paste ( ) : void

Execute a Paste action if possible.

Redo ( ) : void

Execute a ReDo action if possible.

RemoveCurrentRow ( ) : void
Save ( string filename ) : void
ScrollIntoView ( ) : void

Makes the caret in the active view visible on screen.

ScrollIntoView ( TextPoint Pos ) : void

Scrolls the active view to a specific position.

ScrollIntoView ( int RowIndex ) : void
SelectAll ( ) : void

Select all the text in the active view.

ShowFind ( ) : void

Shows the Find dialog

ShowGotoLine ( ) : void

Shows the default GotoLine dialog.

ShowReplace ( ) : void

Shows the Replace dialog

ShowSettings ( ) : void

Not yet implemented

SyntaxBoxControl ( ) : System

Default constructor for the SyntaxBoxControl

ToggleBookmark ( ) : void

Toggles a bookmark on the active row of the active view.

Undo ( ) : void

Executes an undo action if possible.

Protected Methods

Method Description
CreateViews ( ) : void
Dispose ( bool disposing ) : void

GetNewView ( ) : SplitViewChildControl
OnCaretChange ( object sender ) : void
OnChange ( object Sender, EventArgs e ) : void
OnClipboardUpdated ( CopyEventArgs e ) : void
OnEnter ( EventArgs e ) : void

OnImeModeChanged ( EventArgs e ) : void
OnInfoTipSelectedIndexChanged ( ) : void
OnLoad ( EventArgs e ) : void
OnParse ( object Sender, EventArgs e ) : void
OnParsingCompleted ( object Sender, EventArgs e ) : void
OnRowClick ( RowMouseEventArgs e ) : void
OnRowDoubleClick ( RowMouseEventArgs e ) : void
OnRowMouseDown ( RowMouseEventArgs e ) : void
OnRowMouseMove ( RowMouseEventArgs e ) : void
OnRowMouseUp ( RowMouseEventArgs e ) : void
OnSelectionChange ( object sender ) : void

Private Methods

Method Description
InitGraphics ( ) : void
InitializeComponent ( ) : void
ParseTimer_Tick ( object sender, EventArgs e ) : void
Redraw ( ) : void
View_CaretChanged ( object s, EventArgs e ) : void
View_Click ( object sender, EventArgs e ) : void
View_ClipboardUpdated ( object sender, CopyEventArgs e ) : void
View_DoubleClick ( object sender, EventArgs e ) : void
View_DragDrop ( object sender, DragEventArgs e ) : void
View_DragEnter ( object sender, DragEventArgs e ) : void
View_DragLeave ( object sender, EventArgs e ) : void
View_DragOver ( object sender, DragEventArgs e ) : void
View_InfoTipSelectedIndexChanged ( object sender, EventArgs e ) : void
View_KeyDown ( object sender, KeyEventArgs e ) : void
View_KeyPress ( object sender, KeyPressEventArgs e ) : void
View_KeyUp ( object sender, KeyEventArgs e ) : void
View_MouseDown ( object sender, MouseEventArgs e ) : void
View_MouseEnter ( object sender, EventArgs e ) : void
View_MouseHover ( object sender, EventArgs e ) : void
View_MouseLeave ( object sender, EventArgs e ) : void
View_MouseMove ( object sender, MouseEventArgs e ) : void
View_MouseUp ( object sender, MouseEventArgs e ) : void
View_RowClick ( object sender, RowMouseEventArgs e ) : void
View_RowDoubleClick ( object sender, RowMouseEventArgs e ) : void
View_RowMouseDown ( object sender, RowMouseEventArgs e ) : void
View_RowMouseMove ( object sender, RowMouseEventArgs e ) : void
View_RowMouseUp ( object sender, RowMouseEventArgs e ) : void
View_SelectionChanged ( object s, EventArgs e ) : void

Method Details

AttachDocument() public method

public AttachDocument ( SyntaxDocument document ) : void
document Alsing.SourceCode.SyntaxDocument
return void

AutoListAdd() public method

Adds an item to the autolist control.
public AutoListAdd ( string text, int ImageIndex ) : void
text string The text to display in the autolist
ImageIndex int The image index in the AutoListIcons
return void

AutoListAdd() public method

Adds an item to the autolist control.
public AutoListAdd ( string text, string InsertText, int ImageIndex ) : void
text string The text to display in the autolist
InsertText string The text to insert in the code
ImageIndex int The image index in the AutoListIcons
return void

AutoListAdd() public method

Adds an item to the autolist control.
public AutoListAdd ( string text, string InsertText, string ToolTip, int ImageIndex ) : void
text string The text to display in the autolist
InsertText string The text to insert in the code
ToolTip string
ImageIndex int The image index in the AutoListIcons
return void

AutoListBeginLoad() public method

Disables painting while loading data into the Autolist
public AutoListBeginLoad ( ) : void
return void

AutoListClear() public method

Clears the content in the autolist.
public AutoListClear ( ) : void
return void

AutoListEndLoad() public method

Resumes painting and autosizes the Autolist.
public AutoListEndLoad ( ) : void
return void

AutoListInsertSelectedText() public method

public AutoListInsertSelectedText ( ) : void
return void

CharFromPixel() public method

Converts a Client pixel coordinate into a TextPoint (Column/Row)
public CharFromPixel ( int x, int y ) : TextPoint
x int Pixel x position
y int Pixel y position
return Alsing.SourceCode.TextPoint

ClearSelection() public method

Clears the selection in the active view.
public ClearSelection ( ) : void
return void

ConvertSpacesToTabs() public method

Converts all spaces the size of .TabSize in the Document to tabs.
public ConvertSpacesToTabs ( ) : void
return void

ConvertTabsToSpaces() public method

Converts all tabs to spaces the size of .TabSize in the Document.
public ConvertTabsToSpaces ( ) : void
return void

Copy() public method

Executes a Copy action on the selection in the active view.
public Copy ( ) : void
return void

CreateViews() protected method

protected CreateViews ( ) : void
return void

Cut() public method

Executes a Cut action on the selection in the active view.
public Cut ( ) : void
return void

CutClear() public method

public CutClear ( ) : void
return void

Delete() public method

Executes a Delete action on the selection in the active view.
public Delete ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

FindNext() public method

Finds the next occurance of the pattern in the find/replace dialog
public FindNext ( ) : void
return void

FindNext() public method

Selects the next word (from the current caret position) that matches the parameter criterias.
public FindNext ( string Pattern, bool MatchCase, bool WholeWords, bool UseRegEx ) : void
Pattern string The pattern to find
MatchCase bool Match case , true/false
WholeWords bool Match whole words only , true/false
UseRegEx bool To be implemented
return void

GetNewView() protected method

protected GetNewView ( ) : SplitViewChildControl
return Alsing.Windows.Forms.CoreLib.SplitViewChildControl

GotoLine() public method

Moves the caret of the active view to a specific row.
public GotoLine ( int RowIndex ) : void
RowIndex int the row to jump to
return void

GotoNextBookmark() public method

Moves the caret of the active view to the next bookmark.
public GotoNextBookmark ( ) : void
return void

GotoPreviousBookmark() public method

Moves the caret of the active view to the previous bookmark.
public GotoPreviousBookmark ( ) : void
return void

IsOverSelection() public method

Takes a pixel position and returns true if that position is inside the selected text.
public IsOverSelection ( int x, int y ) : bool
x int Pixel x position.
y int Pixel y position
return bool

OnCaretChange() protected method

protected OnCaretChange ( object sender ) : void
sender object
return void

OnChange() protected method

protected OnChange ( object Sender, EventArgs e ) : void
Sender object
e System.EventArgs
return void

OnClipboardUpdated() protected method

protected OnClipboardUpdated ( CopyEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.CopyEventArgs
return void

OnEnter() protected method

protected OnEnter ( EventArgs e ) : void
e System.EventArgs
return void

OnImeModeChanged() protected method

protected OnImeModeChanged ( EventArgs e ) : void
e System.EventArgs
return void

OnInfoTipSelectedIndexChanged() protected method

protected OnInfoTipSelectedIndexChanged ( ) : void
return void

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

OnParse() protected method

protected OnParse ( object Sender, EventArgs e ) : void
Sender object
e System.EventArgs
return void

OnParsingCompleted() protected method

protected OnParsingCompleted ( object Sender, EventArgs e ) : void
Sender object
e System.EventArgs
return void

OnRenderRow() public method

public OnRenderRow ( RowPaintEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowPaintEventArgs
return void

OnRowClick() protected method

protected OnRowClick ( RowMouseEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowMouseEventArgs
return void

OnRowDoubleClick() protected method

protected OnRowDoubleClick ( RowMouseEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowMouseEventArgs
return void

OnRowMouseDown() protected method

protected OnRowMouseDown ( RowMouseEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowMouseEventArgs
return void

OnRowMouseMove() protected method

protected OnRowMouseMove ( RowMouseEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowMouseEventArgs
return void

OnRowMouseUp() protected method

protected OnRowMouseUp ( RowMouseEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowMouseEventArgs
return void

OnSelectionChange() protected method

protected OnSelectionChange ( object sender ) : void
sender object
return void

OnWordMouseDown() public method

public OnWordMouseDown ( WordMouseEventArgs &e ) : void
e Alsing.Windows.Forms.SyntaxBox.WordMouseEventArgs
return void

OnWordMouseHover() public method

public OnWordMouseHover ( WordMouseEventArgs &e ) : void
e Alsing.Windows.Forms.SyntaxBox.WordMouseEventArgs
return void

Open() public method

public Open ( string filename ) : void
filename string
return void

Paste() public method

Execute a Paste action if possible.
public Paste ( ) : void
return void

Redo() public method

Execute a ReDo action if possible.
public Redo ( ) : void
return void

RemoveCurrentRow() public method

public RemoveCurrentRow ( ) : void
return void

Save() public method

public Save ( string filename ) : void
filename string
return void

ScrollIntoView() public method

Makes the caret in the active view visible on screen.
public ScrollIntoView ( ) : void
return void

ScrollIntoView() public method

Scrolls the active view to a specific position.
public ScrollIntoView ( TextPoint Pos ) : void
Pos Alsing.SourceCode.TextPoint
return void

ScrollIntoView() public method

public ScrollIntoView ( int RowIndex ) : void
RowIndex int
return void

SelectAll() public method

Select all the text in the active view.
public SelectAll ( ) : void
return void

ShowFind() public method

Shows the Find dialog
public ShowFind ( ) : void
return void

ShowGotoLine() public method

Shows the default GotoLine dialog.
public ShowGotoLine ( ) : void
return void

ShowReplace() public method

Shows the Replace dialog
public ShowReplace ( ) : void
return void

ShowSettings() public method

Not yet implemented
public ShowSettings ( ) : void
return void

SyntaxBoxControl() public method

Default constructor for the SyntaxBoxControl
public SyntaxBoxControl ( ) : System
return System

ToggleBookmark() public method

Toggles a bookmark on the active row of the active view.
public ToggleBookmark ( ) : void
return void

Undo() public method

Executes an undo action if possible.
public Undo ( ) : void
return void

Property Details

DisableAutoList protected property

protected bool DisableAutoList
return bool

DisableFindForm protected property

protected bool DisableFindForm
return bool

DisableInfoTip protected property

protected bool DisableInfoTip
return bool

DisableIntelliMouse protected property

protected bool DisableIntelliMouse
return bool