C# 클래스 Alsing.Windows.Forms.SyntaxBoxControl

상속: Alsing.Windows.Forms.CoreLib.SplitViewParentControl
파일 보기 프로젝트 열기: vchelaru/FlatRedBall 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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