C# Class Alsing.Windows.Forms.SyntaxBox.EditViewControl

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

Public Properties

Property Type Description
AutoListStartPos Alsing.SourceCode.TextPoint
InfoTipStartPos Alsing.SourceCode.TextPoint
Painter IPainter
View Alsing.Windows.Forms.SyntaxBox.Painter.ViewPoint

Private Properties

Property Type Description
AutoListDoubleClick void
BeginDragDrop void
CaretChanged void
CaretTimer_Tick void
CharType int
CopyText void
CreateAutoList void
CreateFindForm void
CreateInfoTip void
DeleteBackwards void
DeleteForward void
DoResize void
EditViewControl_Enter void
EditViewControl_Leave void
InitializeComponent void
InsertEnter void
InsertText void
IntelliMouse_BeginScroll void
IntelliMouse_EndScroll void
IntelliMouse_Scroll void
MoveCaretToNextWord void
MoveCaretToPrevWord void
OnCaretChange void
OnClipboardUpdated void
OnRowClick void
OnRowDoubleClick void
OnRowMouseDown void
OnRowMouseMove void
OnRowMouseUp void
OnSelectionChange void
OutdentEndRow void
PasteText void
Redraw void
RedrawCaret void
ScrollScreen void
SelectCurrentWord void
SelectPattern void
SelectionChanged void
SetFocus void
SetMouseCursor void
hScroll_Scroll void
vScroll_Scroll void

Public Methods

Method Description
AutoListBeginLoad ( ) : void
AutoListEndLoad ( ) : void
CalcMaxCharWidth ( ) : void
CharFromPixel ( int x, int y ) : TextPoint

Returns a point where x is the column and y is the row from a given pixel position.

ClearSelection ( ) : void

Clears the active selection.

Copy ( ) : void

Copies selected text to clipboard. (control + c)

Cut ( ) : void

Cuts selected text to clipboard. (control + x)

CutClear ( ) : void
Delete ( ) : void

Deletes selected text if possible otherwise deletes forward. (delete key)

EditViewControl ( SyntaxBoxControl Parent ) : System

Default constructor for the SyntaxBoxControl

FindNext ( ) : void
GotoLine ( int RowIndex ) : void

Places the caret on a specified line and scrolls the caret into view.

GotoNextBookmark ( ) : void

Moves the caret to the next line that has a bookmark.

GotoPreviousBookmark ( ) : void

Moves the caret to the previous line that has a bookmark.

InitGraphics ( ) : void
InitScrollbars ( ) : void
InitVars ( ) : void
InsertAutolistText ( ) : void
IsOverSelection ( int x, int y ) : bool

Returns if a specified pixel position is over the current selection.

OnChange ( ) : void
OnParse ( ) : void
Paste ( ) : void

Paste text from clipboard to current caret position. (control + v)

Redo ( ) : void

Redo last undo action. (control + y)

RemoveCurrentRow ( ) : void

Removes the current row

RemoveFocus ( ) : void
ReplaceSelection ( string text ) : bool
ScrollIntoView ( ) : void

Scrolls the caret into view.

ScrollIntoView ( TextPoint Pos ) : void

Scrolls a given position in the text into view.

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

Selects all text in the active document. (control + a)

SelectNext ( string Pattern, bool MatchCase, bool WholeWords, bool UseRegEx ) : bool

Selects next occurance of the given pattern.

SetMaxHorizontalScroll ( ) : void
ShowFind ( ) : void
ShowGotoLine ( ) : void

Displays the GotoLine dialog.

ShowReplace ( ) : void
ShowSettings ( ) : void

-

ToggleBookmark ( ) : void

Toggles a bookmark on/off on the active row.

Undo ( ) : void

Undo last edit action. (control + z)

Protected Methods

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

IsInputChar ( char c ) : bool
IsInputKey ( Keys key ) : bool

For public use only

OnClick ( EventArgs e ) : void
OnDoubleClick ( EventArgs e ) : void

Overrides the default OnDoubleClick

OnDragDrop ( DragEventArgs drgevent ) : void

Overrides the default OnDragDrop

OnDragEnter ( DragEventArgs drgevent ) : void

Overrides the default OnDragEnter

OnDragLeave ( EventArgs e ) : void

Overrides the default OnDragLeave

OnDragOver ( DragEventArgs drgevent ) : void

Overrides the default OnDragOver

OnKeyDown ( KeyEventArgs e ) : void

Overrides the default OnKeyDown

OnKeyPress ( KeyPressEventArgs e ) : void

Overrides the default OnKeyPress

OnLoad ( EventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void

Overrides the default OnMouseDown

OnMouseLeave ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void

Overrides the default OnMouseMove

OnMouseUp ( MouseEventArgs e ) : void

Overrides the default OnMouseUp

OnMouseWheel ( MouseEventArgs e ) : void

Overrides the default OnMouseWheel

OnPaint ( PaintEventArgs e ) : void

Overrides the default OnPaint

OnResize ( EventArgs e ) : void

Overrides the default OnResize

OnVisibleChanged ( EventArgs e ) : void
WndProc ( Message &m ) : void

Private Methods

Method Description
AutoListDoubleClick ( object sender, EventArgs e ) : void
BeginDragDrop ( ) : void
CaretChanged ( object s, EventArgs e ) : void
CaretTimer_Tick ( object sender, EventArgs e ) : void
CharType ( string s ) : int
CopyText ( ) : void
CreateAutoList ( ) : void
CreateFindForm ( ) : void
CreateInfoTip ( ) : void
DeleteBackwards ( ) : void
DeleteForward ( ) : void
DoResize ( ) : void
EditViewControl_Enter ( object sender, EventArgs e ) : void
EditViewControl_Leave ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

InsertEnter ( ) : void
InsertText ( string text ) : void
IntelliMouse_BeginScroll ( object sender, EventArgs e ) : void
IntelliMouse_EndScroll ( object sender, EventArgs e ) : void
IntelliMouse_Scroll ( object sender, IntelliMouse e ) : void
MoveCaretToNextWord ( bool Select ) : void
MoveCaretToPrevWord ( bool Select ) : void
OnCaretChange ( ) : void
OnClipboardUpdated ( CopyEventArgs e ) : void
OnRowClick ( RowMouseEventArgs e ) : void
OnRowDoubleClick ( RowMouseEventArgs e ) : void
OnRowMouseDown ( RowMouseEventArgs e ) : void
OnRowMouseMove ( RowMouseEventArgs e ) : void
OnRowMouseUp ( RowMouseEventArgs e ) : void
OnSelectionChange ( ) : void
OutdentEndRow ( ) : void
PasteText ( ) : void
Redraw ( ) : void
RedrawCaret ( ) : void
ScrollScreen ( int Amount ) : void
SelectCurrentWord ( ) : void
SelectPattern ( int RowIndex, int Column, int Length ) : void
SelectionChanged ( object s, EventArgs e ) : void
SetFocus ( ) : void
SetMouseCursor ( int x, int y ) : void
hScroll_Scroll ( object sender, ScrollEventArgs e ) : void
vScroll_Scroll ( object sender, ScrollEventArgs e ) : void

Method Details

AutoListBeginLoad() public method

public AutoListBeginLoad ( ) : void
return void

AutoListEndLoad() public method

public AutoListEndLoad ( ) : void
return void

CalcMaxCharWidth() public method

public CalcMaxCharWidth ( ) : void
return void

CharFromPixel() public method

Returns a point where x is the column and y is the row from a given pixel position.
public CharFromPixel ( int x, int y ) : TextPoint
x int X Position in pixels
y int Y Position in pixels
return Alsing.SourceCode.TextPoint

ClearSelection() public method

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

Copy() public method

Copies selected text to clipboard. (control + c)
public Copy ( ) : void
return void

CopyAsRTF() protected method

protected CopyAsRTF ( ) : void
return void

Cut() public method

Cuts selected text to clipboard. (control + x)
public Cut ( ) : void
return void

CutClear() public method

public CutClear ( ) : void
return void

Delete() public method

Deletes selected text if possible otherwise deletes forward. (delete key)
public Delete ( ) : void
return void

Dispose() protected method

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

EditViewControl() public method

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

FindNext() public method

public FindNext ( ) : void
return void

GotoLine() public method

Places the caret on a specified line and scrolls the caret into view.
public GotoLine ( int RowIndex ) : void
RowIndex int the zero based index of the line to jump to
return void

GotoNextBookmark() public method

Moves the caret to the next line that has a bookmark.
public GotoNextBookmark ( ) : void
return void

GotoPreviousBookmark() public method

Moves the caret to the previous line that has a bookmark.
public GotoPreviousBookmark ( ) : void
return void

InitGraphics() public method

public InitGraphics ( ) : void
return void

InitScrollbars() public method

public InitScrollbars ( ) : void
return void

InitVars() public method

public InitVars ( ) : void
return void

InsertAutolistText() public method

public InsertAutolistText ( ) : void
return void

IsInputChar() protected method

protected IsInputChar ( char c ) : bool
c char
return bool

IsInputKey() protected method

For public use only
protected IsInputKey ( Keys key ) : bool
key Keys
return bool

IsOverSelection() public method

Returns if a specified pixel position is over the current selection.
public IsOverSelection ( int x, int y ) : bool
x int X Position in pixels
y int Y Position in pixels
return bool

OnChange() public method

public OnChange ( ) : void
return void

OnClick() protected method

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

OnDoubleClick() protected method

Overrides the default OnDoubleClick
protected OnDoubleClick ( EventArgs e ) : void
e System.EventArgs
return void

OnDragDrop() protected method

Overrides the default OnDragDrop
protected OnDragDrop ( DragEventArgs drgevent ) : void
drgevent System.Windows.Forms.DragEventArgs
return void

OnDragEnter() protected method

Overrides the default OnDragEnter
protected OnDragEnter ( DragEventArgs drgevent ) : void
drgevent System.Windows.Forms.DragEventArgs
return void

OnDragLeave() protected method

Overrides the default OnDragLeave
protected OnDragLeave ( EventArgs e ) : void
e System.EventArgs
return void

OnDragOver() protected method

Overrides the default OnDragOver
protected OnDragOver ( DragEventArgs drgevent ) : void
drgevent System.Windows.Forms.DragEventArgs
return void

OnKeyDown() protected method

Overrides the default OnKeyDown
protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnKeyPress() protected method

Overrides the default OnKeyPress
protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs
return void

OnLoad() protected method

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

OnMouseDown() protected method

Overrides the default OnMouseDown
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseLeave() protected method

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

OnMouseMove() protected method

Overrides the default OnMouseMove
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseUp() protected method

Overrides the default OnMouseUp
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseWheel() protected method

Overrides the default OnMouseWheel
protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

Overrides the default OnPaint
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnParse() public method

public OnParse ( ) : void
return void

OnResize() protected method

Overrides the default OnResize
protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void

OnVisibleChanged() protected method

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

Paste() public method

Paste text from clipboard to current caret position. (control + v)
public Paste ( ) : void
return void

Redo() public method

Redo last undo action. (control + y)
public Redo ( ) : void
return void

RemoveCurrentRow() public method

Removes the current row
public RemoveCurrentRow ( ) : void
return void

RemoveFocus() public method

public RemoveFocus ( ) : void
return void

ReplaceSelection() public method

public ReplaceSelection ( string text ) : bool
text string
return bool

ScrollIntoView() public method

Scrolls the caret into view.
public ScrollIntoView ( ) : void
return void

ScrollIntoView() public method

Scrolls a given position in the text into view.
public ScrollIntoView ( TextPoint Pos ) : void
Pos Alsing.SourceCode.TextPoint Position in text
return void

ScrollIntoView() public method

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

SelectAll() public method

Selects all text in the active document. (control + a)
public SelectAll ( ) : void
return void

SelectNext() public method

Selects next occurance of the given pattern.
public SelectNext ( string Pattern, bool MatchCase, bool WholeWords, bool UseRegEx ) : bool
Pattern string Pattern to find
MatchCase bool Case sensitive
WholeWords bool Match whole words only
UseRegEx bool
return bool

SetMaxHorizontalScroll() public method

public SetMaxHorizontalScroll ( ) : void
return void

ShowFind() public method

public ShowFind ( ) : void
return void

ShowGotoLine() public method

Displays the GotoLine dialog.
public ShowGotoLine ( ) : void
return void

ShowReplace() public method

public ShowReplace ( ) : void
return void

ShowSettings() public method

-
public ShowSettings ( ) : void
return void

ToggleBookmark() public method

Toggles a bookmark on/off on the active row.
public ToggleBookmark ( ) : void
return void

Undo() public method

Undo last edit action. (control + z)
public Undo ( ) : void
return void

WndProc() protected method

protected WndProc ( Message &m ) : void
m Message
return void

Property Details

AutoListStartPos public_oe property

The Point in the text where the Autolist was activated.
public TextPoint,Alsing.SourceCode AutoListStartPos
return Alsing.SourceCode.TextPoint

InfoTipStartPos public_oe property

The Point in the text where the InfoTip was activated.
public TextPoint,Alsing.SourceCode InfoTipStartPos
return Alsing.SourceCode.TextPoint

Painter public_oe property

public IPainter Painter
return IPainter

View public_oe property

public ViewPoint,Alsing.Windows.Forms.SyntaxBox.Painter View
return Alsing.Windows.Forms.SyntaxBox.Painter.ViewPoint