C# Класс IronTextBox.IronTextBoxControl

Summary description for IronTextBoxControl.
Наследование: System.Windows.Forms.UserControl
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Engine ScriptEngine
Scope ScriptScope

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

Метод Описание
Clear ( ) : void

Clear the current text in the IronTextBox.

Convert_StringCollectiontoArrayList ( StringCollection StringColin ) : ArrayList

Returns aa ArrayList from a StringCollection

ExecuteFile ( string pyfile ) : object

Executes the Python file within the IronTextBox environment. A nice way to quickly get a Python module in CLI to test or use.

ExecuteSingleStatement ( string pycode ) : object

Executes the code in SourceCodeKind.SingleStatement to fire the command event Use Evaluate if you do not wish to fire the command event

GetCommandHistory ( ) : string[]

Returns the string array of the command history.

GetHelpText ( ) : string

Displays information about IronTextBox and user's IronPython version.

GetTextAtPrompt ( ) : string

Return the text at the prompt.

ImportPaths ( string arg ) : void

ImportPaths

IronTextBoxControl ( ) : System

IronTextBoxControl

IsSingleCommentLine ( string line ) : bool

RewritePyFiletoSB ( StringBuilder &sbCode ) : void

Opens a Python file and reads line by line into a StringBuilder.

Runfile ( ) : void

Run a .Py file. Calls OpenFileDialog to PythonEngine.RunFile.

SetTextAtPrompt ( string text ) : void
SimEnter ( ) : void

Simulate the Enter KeyPress event.

WalkPythonFile ( ) : void

Opens a FolderBrowserDialog to load a Python file to read it line by line into IronTextBox.

WalkPythonFile ( string fullpathfilename ) : void

Opens a Python files and reads line by line into IronTextBox.

WriteText ( string text ) : void

Send text to the IronTextBox.

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

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnCommandEntered ( string command ) : void

Creates new EventCommandEntered event.

OnCompletionRequested ( CompletionRequestedEventArgs args ) : void

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

Метод Описание
CompletionCallback ( string uncompleted ) : string

The child control "ironTextBox" calls this, whenever a TAB key is pressed. We just relay this information via the standard event mechanism to listeners.

Evaluate ( string pycode ) : object

Executes the code in SourceCodeKind.Expression not to fire the command event Use ExecuteSingleStatement if you do wish to fire the command event

FireCommandEntered ( string command ) : void

Run the command.

InitializeComponent ( ) : void

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

IronTextBoxControlCommandEntered ( object sender, CommandEnteredEventArgs e ) : void

IronTextBoxControlCommandEntered

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

Clear() публичный Метод

Clear the current text in the IronTextBox.
public Clear ( ) : void
Результат void

Convert_StringCollectiontoArrayList() публичный Метод

Returns aa ArrayList from a StringCollection
public Convert_StringCollectiontoArrayList ( StringCollection StringColin ) : ArrayList
StringColin System.Collections.Specialized.StringCollection Incoming StringCollection.
Результат System.Collections.ArrayList

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

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

ExecuteFile() публичный Метод

Executes the Python file within the IronTextBox environment. A nice way to quickly get a Python module in CLI to test or use.
public ExecuteFile ( string pyfile ) : object
pyfile string Python file (.py)
Результат object

ExecuteSingleStatement() публичный Метод

Executes the code in SourceCodeKind.SingleStatement to fire the command event Use Evaluate if you do not wish to fire the command event
public ExecuteSingleStatement ( string pycode ) : object
pycode string python statement
Результат object

GetCommandHistory() публичный Метод

Returns the string array of the command history.
public GetCommandHistory ( ) : string[]
Результат string[]

GetHelpText() публичный Метод

Displays information about IronTextBox and user's IronPython version.
public GetHelpText ( ) : string
Результат string

GetTextAtPrompt() публичный Метод

Return the text at the prompt.
public GetTextAtPrompt ( ) : string
Результат string

ImportPaths() публичный Метод

ImportPaths
public ImportPaths ( string arg ) : void
arg string
Результат void

IronTextBoxControl() публичный Метод

IronTextBoxControl
public IronTextBoxControl ( ) : System
Результат System

IsSingleCommentLine() публичный Метод

public IsSingleCommentLine ( string line ) : bool
line string
Результат bool

OnCommandEntered() защищенный Метод

Creates new EventCommandEntered event.
protected OnCommandEntered ( string command ) : void
command string Command line string.
Результат void

OnCompletionRequested() защищенный Метод

protected OnCompletionRequested ( CompletionRequestedEventArgs args ) : void
args CompletionRequestedEventArgs
Результат void

RewritePyFiletoSB() публичный Метод

Opens a Python file and reads line by line into a StringBuilder.
public RewritePyFiletoSB ( StringBuilder &sbCode ) : void
sbCode StringBuilder out StringBuilder
Результат void

Runfile() публичный Метод

Run a .Py file. Calls OpenFileDialog to PythonEngine.RunFile.
public Runfile ( ) : void
Результат void

SetTextAtPrompt() публичный Метод

public SetTextAtPrompt ( string text ) : void
text string
Результат void

SimEnter() публичный Метод

Simulate the Enter KeyPress event.
public SimEnter ( ) : void
Результат void

WalkPythonFile() публичный Метод

Opens a FolderBrowserDialog to load a Python file to read it line by line into IronTextBox.
public WalkPythonFile ( ) : void
Результат void

WalkPythonFile() публичный Метод

Opens a Python files and reads line by line into IronTextBox.
public WalkPythonFile ( string fullpathfilename ) : void
fullpathfilename string fullpathfilename
Результат void

WriteText() публичный Метод

Send text to the IronTextBox.
public WriteText ( string text ) : void
text string
Результат void

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

Engine публичное свойство

Main IronPython ScriptEngine
public ScriptEngine Engine
Результат ScriptEngine

Scope публичное свойство

Main IronPython ScriptScope
public ScriptScope Scope
Результат ScriptScope