C# Class FlatRedBall.Glue.Controls.CodeEditorControl

Mostra file Open project: vchelaru/FlatRedBall

Public Properties

Property Type Description
mIsCodeValid bool

Public Methods

Method Description
CodeEditorControl ( ) : System
DetermineIfCodeFileIsValid ( string fileName ) : bool

Determines if a code file is valid based off of the number of opening and closing brackets it has. This method counts { and }, but doesn't include comments or contsts like "{0}".

HasMatchingBrackets ( string text ) : bool
OnTimerTick ( object sender, EventArgs e ) : void
RemoveWhiteSpaceForCodeWindow ( string textToAssign ) : string
UpdateDisplayToCurrentObject ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
CodeEditorControl_VisibleChanged ( object sender, EventArgs e ) : void
GetMethodContentsFor ( SyntaxTree syntaxTree, StringBuilderDocument document, string methodName, bool &wasFound ) : string
HideAutoComplete ( ) : void
InitializeComponent ( ) : void

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

SaveText ( ) : void
ShouldAutoCompleteShowForKeyTyped ( KeyEventArgs e ) : bool
syntaxBoxControl1_KeyDown ( object sender, KeyEventArgs e ) : void
syntaxBoxControl1_KeyPress ( object sender, KeyPressEventArgs e ) : void
syntaxBoxControl1_KeyUp ( object sender, KeyEventArgs e ) : void
syntaxBoxControl1_TextChanged ( object sender, EventArgs e ) : void

Method Details

CodeEditorControl() public method

public CodeEditorControl ( ) : System
return System

DetermineIfCodeFileIsValid() public static method

Determines if a code file is valid based off of the number of opening and closing brackets it has. This method counts { and }, but doesn't include comments or contsts like "{0}".
public static DetermineIfCodeFileIsValid ( string fileName ) : bool
fileName string The file name to open - this should be the .cs file for C# files.
return bool

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

HasMatchingBrackets() public static method

public static HasMatchingBrackets ( string text ) : bool
text string
return bool

OnTimerTick() public method

public OnTimerTick ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

RemoveWhiteSpaceForCodeWindow() public static method

public static RemoveWhiteSpaceForCodeWindow ( string textToAssign ) : string
textToAssign string
return string

UpdateDisplayToCurrentObject() public method

public UpdateDisplayToCurrentObject ( ) : void
return void

Property Details

mIsCodeValid public_oe property

public bool mIsCodeValid
return bool