Class ScriptCodeEdit
Represents advanced multi-line text edit control that implements IScriptEdit
interface.
public class ScriptCodeEdit : SyntaxEdit, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, ISyntaxEdit, ISearch, ITextSearch, IEditNotifier, INotifier, ICaret, IEditNavigate, INavigate, IEdit, IUpdate, IWordWrap, ITextExport, IExport, ITextImport, IImport, ICodeCompletion, IFindReferences, IRecordPlayBack, ISplitView, IAutoCorrect, IScriptEdit, IControl
- Inheritance
-
ScriptCodeEdit
- Implements
- Derived
- Extension Methods
Constructors
- ScriptCodeEdit()
Initializes a new instance of the
ScriptCodeEdit
class with default settings.
Properties
- CanCopy
Indicates whether selected text can be copied to the clipboard.
- CanCut
Indicates whether selected text can be cut to the clipboard.
- CanDelete
Indicates whether selected text can be deleted.
- CanPaste
Indicates whether the control can paste some text from the clipboard.
- CanRedo
Indicates whether the redo operation can be performed.
- CanUndo
Indicates whether the undo operation can be performed.
- CreateParserFunc
Gets or sets a function that creates a parser instance.
- CurrentChar
Gets or sets the current char position within the control's text content.
- CurrentLine
Gets or sets the current line position within the control's text content.
- FileName
Gets or sets the name of the file that holds text source content.
- Lexer
Gets or sets an object that can make lexical analysis for the control's content.
- Parsers
Gets a list of parser types used to provide language analysis in accordance with the language name.
- Source
Gets or sets an object that implements
ITextSource
interface containing an actual string data displayed by the control.
- Status
Gets
IScriptEdit
status, e.g. position in the text, modified state, etc.
- StatusText
Gets a string representation of
IScriptEdit
status, e.g. position in the text, modified state, etc. This property is obsolete.
Methods
- Copy()
Copies selected text to the Clipboard.
- Cut()
Cuts selected text to the Clipboard.
- Delete()
Deletes selected text from the control.
- DeselectAll()
Makes selection empty, without deleting its content.
- Dispose(bool)
Releases the unmanaged resources used by the Control and its child controls and optionally releases the managed resources.
- GetLine(int)
Gets string line at the specified index.
- GetSymbolAt(Point)
Returns symbol at the given position.
- GetSymbolAtCursor()
Returns a simple text data that describes the current part of the text.
- GotoLine()
Displays the goto dialog.
- LoadFile(string)
Loads the contents of the specified file.
- Paste()
Pastes the content of the Clipboard to the
IScriptEdit
control, replacing selected text if needed.
- Print()
Sends
IScriptEdit
content to the printer.
- PrintPreview()
displays the print preview dialog.
- Redo()
Performs the last redo operation.
- Replace()
Displays the replace dialog.
- SaveFile(string)
Saves text content to the specific file.
- Search()
Displays the search dialog.
- SelectAll()
Selects all lines in the control's content.
- SelectWord()
Selects a word at the current position in the control.
- Undo()
Performs the last undo operation.
- UpdateSyntax()
Updates syntax data of the
IScriptEdit
content.
Events
- ParserChanged
Occurs when
IScriptEdit
parser was changed.
- StatusChanged
Occurs when
IScriptEdit
status was changed, for example when selection changed, caret position moved, text edited, amount of lines changed, lexer changed, etc.
- TextChanged
Occurs when
IScriptEdit
text content was modified.