C# Class ScriptEditor.Model.ScriptDocument

Represents a single script that is loaded in and edited by the script editor.
Mostra file Open project: Clancey/MonoMac.Windows.Form Class Usage Examples

Public Methods

Method Description
GetBreakPointLines ( ) : int[]
Load ( string path ) : ScriptDocument

creates a new file which already exists on disk

Save ( bool onlyIfModified ) : bool
ScriptDocument ( string initialText ) : System
SetDelegates ( GetTextDelegate getFunction, SetTextDelegate setFunction, GetBreakPointsDelegate breakpointFunction ) : void

Method Details

GetBreakPointLines() public method

public GetBreakPointLines ( ) : int[]
return int[]

Load() public static method

creates a new file which already exists on disk
public static Load ( string path ) : ScriptDocument
path string Path of file to load
return ScriptDocument

Save() public method

public Save ( bool onlyIfModified ) : bool
onlyIfModified bool
return bool

ScriptDocument() public method

public ScriptDocument ( string initialText ) : System
initialText string
return System

SetDelegates() public method

public SetDelegates ( GetTextDelegate getFunction, SetTextDelegate setFunction, GetBreakPointsDelegate breakpointFunction ) : void
getFunction GetTextDelegate
setFunction SetTextDelegate
breakpointFunction GetBreakPointsDelegate
return void