Table of Contents

Interface IScriptEdit

Namespace
Alternet.Editor.Common
Assembly
Alternet.Editor.Common.v10.dll

Represents properties and methods that are common for any multi-line Edit control.

public interface IScriptEdit : IControl
Extension Methods

Properties

CanCopy

When implemented by a class, indicates whether selected text can be copied to the clipboard.

CanCut

When implemented by a class, indicates whether selected text can be cut to the clipboard.

CanDelete

When implemented by a class, indicates whether selected text can be deleted.

CanPaste

When implemented by a class, indicates the whether control can paste some text from the clipboard.

CanRedo

When implemented by a class, indicates whether the redo operation can be performed.

CanUndo

When implemented by a class, indicates whether the undo operation can be performed.

CurrentChar

When implemented by a class, gets or sets the current char position within the control's text content.

CurrentLine

When implemented by a class, gets or sets the current line position within the control's text content.

DefaultMenu

When implemented by a class, gets default context menu for the IScriptEdit control.

FileName

When implemented by a class, gets or sets the name of the file that holds text source content.

Modified

When implemented by a class, gets a value indicating whether the control's text content is modified.

Position

When implemented by a class, gets or sets the current position within the control's text content.

ReadOnly

When implemented by a class, gets or sets a value indicating whether the control's content is read-only.

Status

When implemented by a class, gets IScriptEdit status, e.g. position in the text, modified state, etc.

StatusText

When implemented by a class, gets a string representation of IScriptEdit status, e.g. position in the text, modified state, etc. This property is obsolete.

Text

When implemented by a class, gets or sets the string collection as a single string with the individual lines delimited by carriage returns.

Methods

BeginUpdate()

When implemented by a class, prevents IScriptEdit updating until calling EndUpdate method.

Copy()

When implemented by a class, copies selected text to the Clipboard.

Cut()

When implemented by a class, cuts selected text to the Clipboard.

Delete()

When implemented by a class, deletes selected text from the control.

DeselectAll()

When implemented by a class, makes selection empty, without deleting its content.

EndUpdate()

When implemented by a class, re-enables IScriptEdit updating, that was turn of by calling BeginUpdate method.

Find(string)

When implemented by a class, searches for the given text within the control's contents.

FindDeclaration()

When implemented by a class, finds the declaration of the symbol at the current position.

FindDeclaration(Point, bool)

When implemented by a class, finds the declaration of the symbol under the given position.

FindDeclarationAsync()

When implemented by a class, finds the declaration of the symbol at the current position in async mode.

FindDeclarationAsync(Point, bool)

When implemented by a class, finds the declaration of the symbol under the given position in async mode.

FindImplementations(Point, IRangeList)

When implemented by a class, finds all implementations of the symbol under the given position.

FindImplementationsAsync(Point, IRangeList)

When implemented by a class, finds all implementations of the symbol under the given position in asymc mode.

FindReferences(Point, IRangeList)

When implemented by a class, finds all references of the symbol under the given position.

FindReferencesAsync(Point, IRangeList)

When implemented by a class, finds all references of the symbol under the given position in asymc mode.

GetLine(int)

When implemented by a class, gets string line at the specified position.

GetSymbolAt(Point)

When implemented by a class, returns symbol at the given position.

GetSymbolAtCursor()

When implemented by a class, returns simple text data describing the symbol under the cursor.

GotoLine()

When implemented by a class, displays the goto line dialog.

JumpToDeclaration()

When implemented by a class, finds the declaration of the symbol under the current position and navigates to it.

LoadFile(string)

When implemented by a class, loads the contents of the specified file.

MakeVisible(Point, bool)

When implemented by a class, scrolls the control's content, if necessary, to ensure a specified text position is in view.

MoveLineEnd()

When implemented by a class, moves the current position to the last character of current line.

MoveToLine(int)

When implemented by a class, moves the current position to the specified line.

Paste()

When implemented by a class, pastes the content of the Clipboard to the IScriptEdit control, replacing selected text if needed.

Print()

When implemented by a class, sends IScriptEdit content to the printer.

PrintPreview()

When implemented by a class, displays the print preview dialog.

Redo()

When implemented by a class, performs the last redo operation.

Replace()

When implemented by a class, displays the replace dialog.

SaveFile(string)

When implemented by a class, saves text content to the specific file.

Search()

When implemented by a class, displays the search dialog.

SelectAll()

When implemented by a class, selects all lines in the control's content.

SelectWord()

When implemented by a class, selects a word at the current position in the control.

Undo()

When implemented by a class, performs the last undo operation.

UpdateSyntax()

When implemented by a class, updates color information of the IScriptEdit content.

Events

ModifiedChanged

When implemented by a class, occurs when IScriptEdit modified state is changed.

ParserChanged

When implemented by a class, occurs when IScriptEdit parser was changed.

StatusChanged

When implemented by a class, occurs when IScriptEdit status was changed, for example when selection changed, caret position moved, text edited, amount of lines changed, lexer changed, etc.

TextChanged

When implemented by a class, occurs when IScriptEdit text content was modified.