Click or drag to resize

PureScriptController Class

Controller for editing IPureScriptText.
Inheritance Hierarchy
SystemObject
  Altaxo.Gui.ScriptingPureScriptController

Namespace: Altaxo.Gui.Scripting
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public class PureScriptController : IPureScriptController, 
	IMVCANController, IMVCAController, IMVCController, IDisposable, IApplyController

The PureScriptController type exposes the following members.

Constructors
 NameDescription
Public methodPureScriptController Initializes a new instance of the PureScriptController class.
Public methodPureScriptController(IPureScriptText) Initializes a new instance of the PureScriptController class.
Top
Properties
 NameDescription
Public propertyModel Gets the script model.
Public propertyModelObject Gets the model (document) that this controller manages.
Public propertyUseDocumentCopy Sets whether or not a copy of the document is used. If set to true, a copy of the document is used, so if the controller is not applied, all changes can be reverted. If set to false, no copy must be made. The document is directly changed by the controller, and changes cannot be reverted. Use the last option if a controller higher in the hierarchy has already made a copy of the document.
Public propertyViewObject Gets or sets the GUI element that shows the model to the user.
Top
Methods
 NameDescription
Public methodApply Called when the user input has to be applied to the document being controlled. Returns if apply is successful.
Public methodAttachView Attaches the view.
Public methodDetachView Detaches the view.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetCurrentScriptText Gets the most current script text (if a view is present, it returns the script text of the view).
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInitialize Initializes the view from the current document.
Public methodInitializeDocument Initializes the controller with the document.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRevert Tries to revert changes to the model, i.e. restores the original state of the model.
Public methodSetInitialScriptCursorLocation Sets the initial cursor location using a character offset.
Public methodSetScriptCursorLocation(Int32) Sets the cursor location using a character offset.
Public methodSetScriptCursorLocation(Int32, Int32) Sets the cursor location inside the script. Line and column are starting with 1.
Public methodSetText Initializes or reinitializes the script controller.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also