C# Class ScriptEditor.Model.ScriptDocument

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

Méthodes publiques

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

public GetBreakPointLines ( ) : int[]
Résultat int[]

Load() public static méthode

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

Save() public méthode

public Save ( bool onlyIfModified ) : bool
onlyIfModified bool
Résultat bool

ScriptDocument() public méthode

public ScriptDocument ( string initialText ) : System
initialText string
Résultat System

SetDelegates() public méthode

public SetDelegates ( GetTextDelegate getFunction, SetTextDelegate setFunction, GetBreakPointsDelegate breakpointFunction ) : void
getFunction GetTextDelegate
setFunction SetTextDelegate
breakpointFunction GetBreakPointsDelegate
Résultat void