C# Class FlatRedBall.Glue.Controls.CodeEditorControl

Afficher le fichier Open project: vchelaru/FlatRedBall

Méthodes publiques

Свойство Type Description
mIsCodeValid bool

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

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

public CodeEditorControl ( ) : System
Résultat System

DetermineIfCodeFileIsValid() public static méthode

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

Dispose() protected méthode

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

HasMatchingBrackets() public static méthode

public static HasMatchingBrackets ( string text ) : bool
text string
Résultat bool

OnTimerTick() public méthode

public OnTimerTick ( object sender, EventArgs e ) : void
sender object
e EventArgs
Résultat void

RemoveWhiteSpaceForCodeWindow() public static méthode

public static RemoveWhiteSpaceForCodeWindow ( string textToAssign ) : string
textToAssign string
Résultat string

UpdateDisplayToCurrentObject() public méthode

public UpdateDisplayToCurrentObject ( ) : void
Résultat void

Property Details

mIsCodeValid public_oe property

public bool mIsCodeValid
Résultat bool