C# Класс Alsing.Windows.Forms.SyntaxBoxControl

Наследование: Alsing.Windows.Forms.CoreLib.SplitViewParentControl
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
DisableAutoList bool
DisableFindForm bool
DisableInfoTip bool
DisableIntelliMouse bool

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AttachDocument() публичный метод

public AttachDocument ( SyntaxDocument document ) : void
document Alsing.SourceCode.SyntaxDocument
Результат void

AutoListAdd() публичный метод

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
Результат void

AutoListAdd() публичный метод

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
Результат void

AutoListAdd() публичный метод

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
Результат void

AutoListBeginLoad() публичный метод

Disables painting while loading data into the Autolist
public AutoListBeginLoad ( ) : void
Результат void

AutoListClear() публичный метод

Clears the content in the autolist.
public AutoListClear ( ) : void
Результат void

AutoListEndLoad() публичный метод

Resumes painting and autosizes the Autolist.
public AutoListEndLoad ( ) : void
Результат void

AutoListInsertSelectedText() публичный метод

public AutoListInsertSelectedText ( ) : void
Результат void

CharFromPixel() публичный метод

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
Результат Alsing.SourceCode.TextPoint

ClearSelection() публичный метод

Clears the selection in the active view.
public ClearSelection ( ) : void
Результат void

ConvertSpacesToTabs() публичный метод

Converts all spaces the size of .TabSize in the Document to tabs.
public ConvertSpacesToTabs ( ) : void
Результат void

ConvertTabsToSpaces() публичный метод

Converts all tabs to spaces the size of .TabSize in the Document.
public ConvertTabsToSpaces ( ) : void
Результат void

Copy() публичный метод

Executes a Copy action on the selection in the active view.
public Copy ( ) : void
Результат void

CreateViews() защищенный метод

protected CreateViews ( ) : void
Результат void

Cut() публичный метод

Executes a Cut action on the selection in the active view.
public Cut ( ) : void
Результат void

CutClear() публичный метод

public CutClear ( ) : void
Результат void

Delete() публичный метод

Executes a Delete action on the selection in the active view.
public Delete ( ) : void
Результат void

Dispose() защищенный метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

FindNext() публичный метод

Finds the next occurance of the pattern in the find/replace dialog
public FindNext ( ) : void
Результат void

FindNext() публичный метод

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
Результат void

GetNewView() защищенный метод

protected GetNewView ( ) : SplitViewChildControl
Результат Alsing.Windows.Forms.CoreLib.SplitViewChildControl

GotoLine() публичный метод

Moves the caret of the active view to a specific row.
public GotoLine ( int RowIndex ) : void
RowIndex int the row to jump to
Результат void

GotoNextBookmark() публичный метод

Moves the caret of the active view to the next bookmark.
public GotoNextBookmark ( ) : void
Результат void

GotoPreviousBookmark() публичный метод

Moves the caret of the active view to the previous bookmark.
public GotoPreviousBookmark ( ) : void
Результат void

IsOverSelection() публичный метод

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
Результат bool

OnCaretChange() защищенный метод

protected OnCaretChange ( object sender ) : void
sender object
Результат void

OnChange() защищенный метод

protected OnChange ( object Sender, EventArgs e ) : void
Sender object
e System.EventArgs
Результат void

OnClipboardUpdated() защищенный метод

protected OnClipboardUpdated ( CopyEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.CopyEventArgs
Результат void

OnEnter() защищенный метод

protected OnEnter ( EventArgs e ) : void
e System.EventArgs
Результат void

OnImeModeChanged() защищенный метод

protected OnImeModeChanged ( EventArgs e ) : void
e System.EventArgs
Результат void

OnInfoTipSelectedIndexChanged() защищенный метод

protected OnInfoTipSelectedIndexChanged ( ) : void
Результат void

OnLoad() защищенный метод

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Результат void

OnParse() защищенный метод

protected OnParse ( object Sender, EventArgs e ) : void
Sender object
e System.EventArgs
Результат void

OnParsingCompleted() защищенный метод

protected OnParsingCompleted ( object Sender, EventArgs e ) : void
Sender object
e System.EventArgs
Результат void

OnRenderRow() публичный метод

public OnRenderRow ( RowPaintEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowPaintEventArgs
Результат void

OnRowClick() защищенный метод

protected OnRowClick ( RowMouseEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowMouseEventArgs
Результат void

OnRowDoubleClick() защищенный метод

protected OnRowDoubleClick ( RowMouseEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowMouseEventArgs
Результат void

OnRowMouseDown() защищенный метод

protected OnRowMouseDown ( RowMouseEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowMouseEventArgs
Результат void

OnRowMouseMove() защищенный метод

protected OnRowMouseMove ( RowMouseEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowMouseEventArgs
Результат void

OnRowMouseUp() защищенный метод

protected OnRowMouseUp ( RowMouseEventArgs e ) : void
e Alsing.Windows.Forms.SyntaxBox.RowMouseEventArgs
Результат void

OnSelectionChange() защищенный метод

protected OnSelectionChange ( object sender ) : void
sender object
Результат void

OnWordMouseDown() публичный метод

public OnWordMouseDown ( WordMouseEventArgs &e ) : void
e Alsing.Windows.Forms.SyntaxBox.WordMouseEventArgs
Результат void

OnWordMouseHover() публичный метод

public OnWordMouseHover ( WordMouseEventArgs &e ) : void
e Alsing.Windows.Forms.SyntaxBox.WordMouseEventArgs
Результат void

Open() публичный метод

public Open ( string filename ) : void
filename string
Результат void

Paste() публичный метод

Execute a Paste action if possible.
public Paste ( ) : void
Результат void

Redo() публичный метод

Execute a ReDo action if possible.
public Redo ( ) : void
Результат void

RemoveCurrentRow() публичный метод

public RemoveCurrentRow ( ) : void
Результат void

Save() публичный метод

public Save ( string filename ) : void
filename string
Результат void

ScrollIntoView() публичный метод

Makes the caret in the active view visible on screen.
public ScrollIntoView ( ) : void
Результат void

ScrollIntoView() публичный метод

Scrolls the active view to a specific position.
public ScrollIntoView ( TextPoint Pos ) : void
Pos Alsing.SourceCode.TextPoint
Результат void

ScrollIntoView() публичный метод

public ScrollIntoView ( int RowIndex ) : void
RowIndex int
Результат void

SelectAll() публичный метод

Select all the text in the active view.
public SelectAll ( ) : void
Результат void

ShowFind() публичный метод

Shows the Find dialog
public ShowFind ( ) : void
Результат void

ShowGotoLine() публичный метод

Shows the default GotoLine dialog.
public ShowGotoLine ( ) : void
Результат void

ShowReplace() публичный метод

Shows the Replace dialog
public ShowReplace ( ) : void
Результат void

ShowSettings() публичный метод

Not yet implemented
public ShowSettings ( ) : void
Результат void

SyntaxBoxControl() публичный метод

Default constructor for the SyntaxBoxControl
public SyntaxBoxControl ( ) : System
Результат System

ToggleBookmark() публичный метод

Toggles a bookmark on the active row of the active view.
public ToggleBookmark ( ) : void
Результат void

Undo() публичный метод

Executes an undo action if possible.
public Undo ( ) : void
Результат void

Описание свойств

DisableAutoList защищенное свойство

protected bool DisableAutoList
Результат bool

DisableFindForm защищенное свойство

protected bool DisableFindForm
Результат bool

DisableInfoTip защищенное свойство

protected bool DisableInfoTip
Результат bool

DisableIntelliMouse защищенное свойство

protected bool DisableIntelliMouse
Результат bool