C# Class Alsing.Windows.Forms.SyntaxBoxControl

Inheritance: Alsing.Windows.Forms.CoreLib.SplitViewParentControl
Afficher le fichier Open project: vchelaru/FlatRedBall Class Usage Examples

Protected Properties

Свойство Type Description
DisableAutoList bool
DisableFindForm bool
DisableInfoTip bool
DisableIntelliMouse bool

Private Properties

Свойство 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

Méthodes publiques

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

Méthodes protégées

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

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

public AttachDocument ( SyntaxDocument document ) : void
document Alsing.SourceCode.SyntaxDocument
Résultat void

AutoListAdd() public méthode

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

AutoListAdd() public méthode

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

AutoListAdd() public méthode

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

AutoListBeginLoad() public méthode

Disables painting while loading data into the Autolist
public AutoListBeginLoad ( ) : void
Résultat void

AutoListClear() public méthode

Clears the content in the autolist.
public AutoListClear ( ) : void
Résultat void

AutoListEndLoad() public méthode

Resumes painting and autosizes the Autolist.
public AutoListEndLoad ( ) : void
Résultat void

AutoListInsertSelectedText() public méthode

public AutoListInsertSelectedText ( ) : void
Résultat void

CharFromPixel() public méthode

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
Résultat Alsing.SourceCode.TextPoint

ClearSelection() public méthode

Clears the selection in the active view.
public ClearSelection ( ) : void
Résultat void

ConvertSpacesToTabs() public méthode

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

ConvertTabsToSpaces() public méthode

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

Copy() public méthode

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

CreateViews() protected méthode

protected CreateViews ( ) : void
Résultat void

Cut() public méthode

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

CutClear() public méthode

public CutClear ( ) : void
Résultat void

Delete() public méthode

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

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

FindNext() public méthode

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

FindNext() public méthode

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

GetNewView() protected méthode

protected GetNewView ( ) : SplitViewChildControl
Résultat Alsing.Windows.Forms.CoreLib.SplitViewChildControl

GotoLine() public méthode

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

GotoNextBookmark() public méthode

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

GotoPreviousBookmark() public méthode

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

IsOverSelection() public méthode

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

OnCaretChange() protected méthode

protected OnCaretChange ( object sender ) : void
sender object
Résultat void

OnChange() protected méthode

protected OnChange ( object Sender, EventArgs e ) : void
Sender object
e System.EventArgs
Résultat void

OnClipboardUpdated() protected méthode

protected OnClipboardUpdated ( CopyEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.CopyEventArgs
Résultat void

OnEnter() protected méthode

protected OnEnter ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnImeModeChanged() protected méthode

protected OnImeModeChanged ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnInfoTipSelectedIndexChanged() protected méthode

protected OnInfoTipSelectedIndexChanged ( ) : void
Résultat void

OnLoad() protected méthode

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnParse() protected méthode

protected OnParse ( object Sender, EventArgs e ) : void
Sender object
e System.EventArgs
Résultat void

OnParsingCompleted() protected méthode

protected OnParsingCompleted ( object Sender, EventArgs e ) : void
Sender object
e System.EventArgs
Résultat void

OnRenderRow() public méthode

public OnRenderRow ( RowPaintEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowPaintEventArgs
Résultat void

OnRowClick() protected méthode

protected OnRowClick ( RowMouseEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowMouseEventArgs
Résultat void

OnRowDoubleClick() protected méthode

protected OnRowDoubleClick ( RowMouseEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowMouseEventArgs
Résultat void

OnRowMouseDown() protected méthode

protected OnRowMouseDown ( RowMouseEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowMouseEventArgs
Résultat void

OnRowMouseMove() protected méthode

protected OnRowMouseMove ( RowMouseEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowMouseEventArgs
Résultat void

OnRowMouseUp() protected méthode

protected OnRowMouseUp ( RowMouseEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowMouseEventArgs
Résultat void

OnSelectionChange() protected méthode

protected OnSelectionChange ( object sender ) : void
sender object
Résultat void

OnWordMouseDown() public méthode

public OnWordMouseDown ( WordMouseEventArgs &e ) : void
e Alsing.Windows.Forms.SyntaxBox.WordMouseEventArgs
Résultat void

OnWordMouseHover() public méthode

public OnWordMouseHover ( WordMouseEventArgs &e ) : void
e Alsing.Windows.Forms.SyntaxBox.WordMouseEventArgs
Résultat void

Open() public méthode

public Open ( string filename ) : void
filename string
Résultat void

Paste() public méthode

Execute a Paste action if possible.
public Paste ( ) : void
Résultat void

Redo() public méthode

Execute a ReDo action if possible.
public Redo ( ) : void
Résultat void

RemoveCurrentRow() public méthode

public RemoveCurrentRow ( ) : void
Résultat void

Save() public méthode

public Save ( string filename ) : void
filename string
Résultat void

ScrollIntoView() public méthode

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

ScrollIntoView() public méthode

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

ScrollIntoView() public méthode

public ScrollIntoView ( int RowIndex ) : void
RowIndex int
Résultat void

SelectAll() public méthode

Select all the text in the active view.
public SelectAll ( ) : void
Résultat void

ShowFind() public méthode

Shows the Find dialog
public ShowFind ( ) : void
Résultat void

ShowGotoLine() public méthode

Shows the default GotoLine dialog.
public ShowGotoLine ( ) : void
Résultat void

ShowReplace() public méthode

Shows the Replace dialog
public ShowReplace ( ) : void
Résultat void

ShowSettings() public méthode

Not yet implemented
public ShowSettings ( ) : void
Résultat void

SyntaxBoxControl() public méthode

Default constructor for the SyntaxBoxControl
public SyntaxBoxControl ( ) : System
Résultat System

ToggleBookmark() public méthode

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

Undo() public méthode

Executes an undo action if possible.
public Undo ( ) : void
Résultat void

Property Details

DisableAutoList protected_oe property

protected bool DisableAutoList
Résultat bool

DisableFindForm protected_oe property

protected bool DisableFindForm
Résultat bool

DisableInfoTip protected_oe property

protected bool DisableInfoTip
Résultat bool

DisableIntelliMouse protected_oe property

protected bool DisableIntelliMouse
Résultat bool