Skip to content

CodeEdit

eduardgushchin edited this page Oct 22, 2026 · 1 revision

Home | API by Category | Complete API Index | API Status

Field Value
Full name Electron2D.CodeEdit
Namespace Electron2D
Kind class
Category API Scene

Overview

Edits source text with indentation, delimiters, folding, markers and typed completion.

Syntax

public class Electron2D.CodeEdit

Remarks

Logical lines and Unicode scalar columns share the TextEdit document/history. Fonts and option icons are borrowed; parsing, authoring and first shaping are cold. Required gutters and hover timer belong to this control. Completion providers are application callbacks rather than a built-in language parser. Inherited virtual completion filters participate; hidden non-virtual methods keep the ordinary context filter. Override detection uses a bound typed delegate.

Inherits: TextEdit

Detailed engine reference

Members

Member Kind Summary
public CodeEdit() constructor Creates an LTR empty code document with three required gutters and an owned hover timer.
public event System.Action<System.Int32> BreakpointToggled event Occurs when a breakpoint is set, cleared or shifted to another line.
public event System.Action CodeCompletionRequested event Requests that the application submit completion candidates.
public event System.Action<System.String, System.Int32, System.Int32> SymbolHovered event Reports a symbol after the configured hover delay.
public event System.Action<System.String, System.Int32, System.Int32> SymbolLookup event Requests application lookup of a symbol at a logical line/scalar column.
public event System.Action<System.String> SymbolValidate event Requests validation of the symbol under the pointer.
public System.Void AddAutoBraceCompletionPair(System.String startKey, System.String endKey) method Adds a unique symbol-key brace pair.
public System.Void AddCodeCompletionOption(Electron2D.CodeEdit.CodeCompletionKind type, System.String displayText, System.String insertText, System.Nullable<Electron2D.Color> textColor = null, Electron2D.Texture icon = null, System.Int32 location = 1024) method Submits a typed completion candidate without a default value.
public System.Void AddCodeCompletionOption<T>(Electron2D.CodeEdit.CodeCompletionKind type, System.String displayText, System.String insertText, System.Nullable<Electron2D.Color> textColor = null, Electron2D.Texture icon = null, T value = null, System.Int32 location = 1024) method Submits a completion candidate with a borrowed exact generic default value.
public System.Void AddCommentDelimiter(System.String startKey, System.String endKey, System.Boolean lineOnly = false) method Adds a symbol-delimited comment region.
public System.Void AddStringDelimiter(System.String startKey, System.String endKey, System.Boolean lineOnly = false) method Adds a symbol-delimited string region, ordered longest start key first.
public System.Boolean CanFoldLine(System.Int32 line) method Reports whether enabled folding can hide a region, multiline delimiter or indented block.
public System.Void CancelCodeCompletion() method Cancels the menu and clears visible candidates.
public System.Void ClearBookmarkedLines() method Clears bookmarks.
public System.Void ClearBreakpointedLines() method Clears all breakpoints, notifying each changed line.
public System.Void ClearCommentDelimiters() method Clears comment delimiters while retaining strings.
public System.Void ClearExecutingLines() method Clears executing-line markers.
public System.Void ClearStringDelimiters() method Clears string delimiters while retaining comments.
public System.Void ConfirmCodeCompletion(System.Boolean replace = false) method Confirms the selected candidate through the virtual insertion hook.
public System.Void ConvertIndent(System.Int32 fromLine = -1, System.Int32 toLine = -1) method Converts leading indentation of a logical-line interval to the configured tab/space policy.
public System.Void CreateCodeRegion() method Wraps selected lines in named comment region tags, folds them and selects the new region name.
protected override System.Func<Electron2D.Node> CreateSceneInstanceFactory() method
public System.Void DeleteLines() method Deletes each selected/caret logical line once.
protected override System.Void Dispose(System.Boolean disposing) method
public System.Void DoIndent() method Indents selections, or inserts indentation at each caret.
public System.Void DuplicateLines() method Duplicates complete selected/caret lines and advances their caret identities.
public System.Void DuplicateSelection() method Duplicates selected text, or complete lines for unselected carets.
public System.Void FoldAllLines() method Folds every supported block.
public System.Void FoldLine(System.Int32 line) method Folds a supported block and moves carets from hidden descendants onto its header.
public System.String GetAutoBraceCompletionCloseKey(System.String openKey) method Returns a matching closing key or an empty string.
public System.Int32[] GetBookmarkedLines() method Returns an ascending bookmark array.
public System.Int32[] GetBreakpointedLines() method Returns an independent ascending breakpoint line array.
public Electron2D.CodeCompletionOption GetCodeCompletionOption(System.Int32 index) method Gets a stable borrowed immutable visible candidate.
public Electron2D.CodeCompletionOption[] GetCodeCompletionOptions() method Gets an independent array of immutable visible candidates.
public System.Int32 GetCodeCompletionSelectedIndex() method Gets the selected visible candidate index.
public System.String GetCodeRegionEndTag() method Returns the source region end tag.
public System.String GetCodeRegionStartTag() method Returns the source region start tag.
public System.String GetDelimiterEndKey(System.Int32 delimiterIndex) method Returns the combined ordered delimiter end key.
public Electron2D.Vector2 GetDelimiterEndPosition(System.Int32 line, System.Int32 column) method Returns the delimiter end boundary after its closing key, or line-length plus one for line-only.
public System.String GetDelimiterStartKey(System.Int32 delimiterIndex) method Returns the combined ordered delimiter start key.
public Electron2D.Vector2 GetDelimiterStartPosition(System.Int32 line, System.Int32 column) method Returns the delimiter start boundary one scalar after its opening key begins.
public System.Int32[] GetExecutingLines() method Returns an ascending executing-line array.
public System.Int32[] GetFoldedLines() method Returns an independent ascending folded-header array.
protected override System.Collections.Generic.IEnumerable<Electron2D.PropertyDescriptor> GetPropertyDescriptors() method
public System.String GetTextForCodeCompletion() method Returns cursor-marked text at the primary caret.
public System.String GetTextForSymbolLookup() method Returns cursor-marked text at the current symbol-lookup position.
public System.String GetTextWithCursorChar(System.Int32 line, System.Int32 column) method Returns the complete text with U+FFFF at a logical/scalar coordinate.
public System.Boolean HasAutoBraceCompletionCloseKey(System.String closeKey) method Reports a closing brace key.
public System.Boolean HasAutoBraceCompletionOpenKey(System.String openKey) method Reports an opening brace key.
public System.Boolean HasCommentDelimiter(System.String startKey) method Reports an exact comment start key.
public System.Boolean HasStringDelimiter(System.String startKey) method Reports an exact string start key.
public System.Void IndentLines() method Indents each selected/caret line once, omitting empty lines.
public System.Int32 IsInComment(System.Int32 line, System.Int32 column = -1) method Returns a combined comment delimiter index at a scalar position, or for a wholly covered line.
public System.Int32 IsInString(System.Int32 line, System.Int32 column = -1) method Returns a combined string delimiter index at a scalar position, or for a wholly covered line.
public System.Boolean IsLineBookmarked(System.Int32 line) method Reports a bookmark.
public System.Boolean IsLineBreakpointed(System.Int32 line) method Reports a breakpoint marker.
public System.Boolean IsLineCodeRegionEnd(System.Int32 line) method Reports a single-line-comment code-region end.
public System.Boolean IsLineCodeRegionStart(System.Int32 line) method Reports a single-line-comment code-region start.
public System.Boolean IsLineExecuting(System.Int32 line) method Reports an executing-line marker.
public System.Boolean IsLineFolded(System.Int32 line) method Reports an explicit folded header.
public System.Void JoinLines(System.String lineEnding = " ") method Joins selected/caret lines with following lines, trimming connecting whitespace.
public System.Void MoveLinesDown() method Moves selected/caret line ranges downward with their gutters and backgrounds.
public System.Void MoveLinesUp() method Moves selected/caret line ranges upward with their gutters and backgrounds.
protected override System.Void OnBackspace(System.Int32 caretIndex) method
protected virtual System.Void OnConfirmCodeCompletion(System.Boolean replace) method Inserts the active candidate as one undo group and cancels completion.
protected override System.Void OnCut(System.Int32 caretIndex) method
protected virtual Electron2D.CodeCompletionOption[] OnFilterCodeCompletionCandidates(Electron2D.CodeCompletionOption[] candidates) method Filters application candidates into their visible order. An override owns the complete filter and insertion prefix is empty.
protected override System.Void OnGUIInput(Electron2D.InputEvent inputEvent) method
protected override Electron2D.CursorShape OnGetCursorShape(Electron2D.Vector2 atPosition) method
protected override System.Void OnHandleUnicodeInput(System.Int32 unicodeChar, System.Int32 caretIndex) method
protected override System.Void OnNotification(System.Int32 what) method
protected override System.Void OnPaste(System.Int32 caretIndex) method
protected virtual System.Void OnRequestCodeCompletion(System.Boolean force) method Requests candidate production after validating ordinary query context.
protected override System.Void OnTextInput(System.String text) method
public System.Void RemoveCommentDelimiter(System.String startKey) method Removes a comment delimiter by start key.
public System.Void RemoveStringDelimiter(System.String startKey) method Removes a string delimiter by start key.
public System.Void RequestCodeCompletion(System.Boolean force = false) method Requests application completion using the typed virtual request hook.
public System.Void SetCodeCompletionSelectedIndex(System.Int32 index) method Changes selection while completion is active.
public System.Void SetCodeHint(System.String codeHint) method Sets source code-hint text; empty clears it. U+FFFF toggles highlighted argument spans.
public System.Void SetCodeHintDrawBelow(System.Boolean drawBelow) method Chooses whether the code hint is below or above the primary caret.
public System.Void SetCodeRegionTags(System.String start = "region", System.String end = "endregion") method Sets source region tags without a comment prefix.
public System.Void SetLineAsBookmarked(System.Int32 line, System.Boolean bookmarked) method Sets a runtime bookmark.
public System.Void SetLineAsBreakpoint(System.Int32 line, System.Boolean breakpointed) method Sets a runtime breakpoint marker.
public System.Void SetLineAsExecuting(System.Int32 line, System.Boolean executing) method Sets an executing-line marker.
public System.Void SetSymbolLookupWordAsValid(System.Boolean valid) method Marks the most recently requested pointer symbol as eligible for lookup.
public System.Void ToggleFoldableLine(System.Int32 line) method Toggles a supported folded header.
public System.Void ToggleFoldableLinesAtCarets() method Toggles each distinct caret header.
public System.Void UnfoldAllLines() method Clears all folds and restores every logical line.
public System.Void UnfoldLine(System.Int32 line) method Unfolds the containing folded header while preserving nested folded blocks.
public System.Void UnindentLines() method Removes one indentation stop from each selected/caret line.
public System.Void UpdateCodeCompletionOptions(System.Boolean force) method Replaces the current candidate sources with the submitted queue and filters them.
public System.Boolean AutoBraceCompletionEnabled { get; set; } property Gets or sets automatic paired insertion, closing-key skip and paired backspace.
public System.Boolean AutoBraceCompletionHighlightMatching { get; set; } property Gets or sets matching and mismatched brace underlines.
public System.Collections.Generic.IReadOnlyDictionary<System.String, System.String> AutoBraceCompletionPairs { get; set; } property Gets or sets independent brace-key mappings.
public System.Boolean CodeCompletionEnabled { get; set; } property Gets or sets automatic completion requests after committed text.
public System.String[] CodeCompletionPrefixes { get; set; } property Gets or sets copied single-scalar completion prefixes.
public System.String[] DelimiterComments { get; set; } property Gets or sets copied comment delimiter descriptions.
public System.String[] DelimiterStrings { get; set; } property Gets or sets copied string delimiter descriptions encoded as start and optional end keys.
public System.Boolean GuttersDrawBookmarks { get; set; } property Gets or sets bookmark icons in the main gutter.
public System.Boolean GuttersDrawBreakpointsGutter { get; set; } property Gets or sets breakpoint icons and pointer toggling in the main gutter.
public System.Boolean GuttersDrawExecutingLines { get; set; } property Gets or sets execution markers in the main gutter.
public System.Boolean GuttersDrawFoldGutter { get; set; } property Gets or sets folding icons and pointer toggling.
public System.Boolean GuttersDrawLineNumbers { get; set; } property Gets or sets logical line-number presentation.
public System.Int32 GuttersLineNumbersMinDigits { get; set; } property Gets or sets the minimum number of line-number digits.
public System.Boolean GuttersZeroPadLineNumbers { get; set; } property Gets or sets zero padding instead of space padding in line numbers.
public System.Boolean IndentAutomatic { get; set; } property Gets or sets indentation inheritance and configured prefix expansion on newlines.
public System.String[] IndentAutomaticPrefixes { get; set; } property Gets or sets copied single-scalar automatic indentation prefixes.
public System.Int32 IndentSize { get; set; } property Gets or sets the positive indentation/tab width.
public System.Boolean IndentUseSpaces { get; set; } property Gets or sets space indentation instead of tab indentation.
public System.Boolean LineFolding { get; set; } property Gets or sets code-region, delimiter-block and indentation folding.
public System.Int32[] LineLengthGuidelines { get; set; } property Gets or sets copied nonnegative scalar guideline columns.
public System.Boolean SymbolLookupOnClick { get; set; } property Gets or sets validated symbol lookup on command-modified pointer clicks.
public System.Boolean SymbolTooltipOnHover { get; set; } property Gets or sets symbol hover requests after the project tooltip delay.

Member Details

CodeEdit()

Kind: constructor

public CodeEdit()

Summary

Creates an LTR empty code document with three required gutters and an owned hover timer.

BreakpointToggled

Kind: event

public event System.Action<System.Int32> BreakpointToggled

Summary

Occurs when a breakpoint is set, cleared or shifted to another line.

CodeCompletionRequested

Kind: event

public event System.Action CodeCompletionRequested

Summary

Requests that the application submit completion candidates.

SymbolHovered

Kind: event

public event System.Action<System.String, System.Int32, System.Int32> SymbolHovered

Summary

Reports a symbol after the configured hover delay.

SymbolLookup

Kind: event

public event System.Action<System.String, System.Int32, System.Int32> SymbolLookup

Summary

Requests application lookup of a symbol at a logical line/scalar column.

SymbolValidate

Kind: event

public event System.Action<System.String> SymbolValidate

Summary

Requests validation of the symbol under the pointer.

AddAutoBraceCompletionPair(System.String, System.String)

Kind: method

public System.Void AddAutoBraceCompletionPair(System.String startKey, System.String endKey)

Summary

Adds a unique symbol-key brace pair.

Parameters

  • startKey: Nonempty symbols.
  • endKey: Nonempty symbols.

AddCodeCompletionOption(Electron2D.CodeEdit.CodeCompletionKind, System.String, System.String, System.Nullable<Electron2D.Color>, Electron2D.Texture, System.Int32)

Kind: method

public System.Void AddCodeCompletionOption(Electron2D.CodeEdit.CodeCompletionKind type, System.String displayText, System.String insertText, System.Nullable<Electron2D.Color> textColor = null, Electron2D.Texture icon = null, System.Int32 location = 1024)

Summary

Submits a typed completion candidate without a default value.

Parameters

  • type: Candidate kind.
  • displayText: Menu text.
  • insertText: Inserted text.
  • textColor: Finite color or white.
  • icon: Borrowed texture.
  • location: Relative scope location.

AddCodeCompletionOption(Electron2D.CodeEdit.CodeCompletionKind, System.String, System.String, System.Nullable<Electron2D.Color>, Electron2D.Texture, T, System.Int32)

Kind: method

public System.Void AddCodeCompletionOption<T>(Electron2D.CodeEdit.CodeCompletionKind type, System.String displayText, System.String insertText, System.Nullable<Electron2D.Color> textColor = null, Electron2D.Texture icon = null, T value = null, System.Int32 location = 1024)

Summary

Submits a completion candidate with a borrowed exact generic default value.

Parameters

  • type: Candidate kind.
  • displayText: Menu text.
  • insertText: Inserted text.
  • textColor: Finite color or white.
  • icon: Borrowed texture.
  • value: Borrowed typed payload.
  • location: Relative scope location.

AddCommentDelimiter(System.String, System.String, System.Boolean)

Kind: method

public System.Void AddCommentDelimiter(System.String startKey, System.String endKey, System.Boolean lineOnly = false)

Summary

Adds a symbol-delimited comment region.

Parameters

  • startKey: Unique nonempty symbol key.
  • endKey: Symbol key or empty.
  • lineOnly: Prevents continuation across LF.

AddStringDelimiter(System.String, System.String, System.Boolean)

Kind: method

public System.Void AddStringDelimiter(System.String startKey, System.String endKey, System.Boolean lineOnly = false)

Summary

Adds a symbol-delimited string region, ordered longest start key first.

Parameters

  • startKey: Unique nonempty symbol key.
  • endKey: Symbol key or empty for line-only.
  • lineOnly: Prevents continuation across LF.

CanFoldLine(System.Int32)

Kind: method

public System.Boolean CanFoldLine(System.Int32 line)

Summary

Reports whether enabled folding can hide a region, multiline delimiter or indented block.

Returns

Whether children can fold.

Parameters

  • line: Existing line.

CancelCodeCompletion()

Kind: method

public System.Void CancelCodeCompletion()

Summary

Cancels the menu and clears visible candidates.

ClearBookmarkedLines()

Kind: method

public System.Void ClearBookmarkedLines()

Summary

Clears bookmarks.

ClearBreakpointedLines()

Kind: method

public System.Void ClearBreakpointedLines()

Summary

Clears all breakpoints, notifying each changed line.

ClearCommentDelimiters()

Kind: method

public System.Void ClearCommentDelimiters()

Summary

Clears comment delimiters while retaining strings.

ClearExecutingLines()

Kind: method

public System.Void ClearExecutingLines()

Summary

Clears executing-line markers.

ClearStringDelimiters()

Kind: method

public System.Void ClearStringDelimiters()

Summary

Clears string delimiters while retaining comments.

ConfirmCodeCompletion(System.Boolean)

Kind: method

public System.Void ConfirmCodeCompletion(System.Boolean replace = false)

Summary

Confirms the selected candidate through the virtual insertion hook.

Parameters

  • replace: Replaces the following identifier instead of merging matching suffix text.

ConvertIndent(System.Int32, System.Int32)

Kind: method

public System.Void ConvertIndent(System.Int32 fromLine = -1, System.Int32 toLine = -1)

Summary

Converts leading indentation of a logical-line interval to the configured tab/space policy.

Parameters

  • fromLine: Existing start or -1 for document start.
  • toLine: Existing inclusive end or -1 for document end.

CreateCodeRegion()

Kind: method

public System.Void CreateCodeRegion()

Summary

Wraps selected lines in named comment region tags, folds them and selects the new region name.

CreateSceneInstanceFactory()

Kind: method

protected override System.Func<Electron2D.Node> CreateSceneInstanceFactory()

DeleteLines()

Kind: method

public System.Void DeleteLines()

Summary

Deletes each selected/caret logical line once.

Dispose(System.Boolean)

Kind: method

protected override System.Void Dispose(System.Boolean disposing)

DoIndent()

Kind: method

public System.Void DoIndent()

Summary

Indents selections, or inserts indentation at each caret.

DuplicateLines()

Kind: method

public System.Void DuplicateLines()

Summary

Duplicates complete selected/caret lines and advances their caret identities.

DuplicateSelection()

Kind: method

public System.Void DuplicateSelection()

Summary

Duplicates selected text, or complete lines for unselected carets.

FoldAllLines()

Kind: method

public System.Void FoldAllLines()

Summary

Folds every supported block.

FoldLine(System.Int32)

Kind: method

public System.Void FoldLine(System.Int32 line)

Summary

Folds a supported block and moves carets from hidden descendants onto its header.

Parameters

  • line: Existing line.

GetAutoBraceCompletionCloseKey(System.String)

Kind: method

public System.String GetAutoBraceCompletionCloseKey(System.String openKey)

Summary

Returns a matching closing key or an empty string.

Returns

Closing key.

Parameters

  • openKey: Exact key.

GetBookmarkedLines()

Kind: method

public System.Int32[] GetBookmarkedLines()

Summary

Returns an ascending bookmark array.

Returns

Logical indices.

GetBreakpointedLines()

Kind: method

public System.Int32[] GetBreakpointedLines()

Summary

Returns an independent ascending breakpoint line array.

Returns

Logical indices.

GetCodeCompletionOption(System.Int32)

Kind: method

public Electron2D.CodeCompletionOption GetCodeCompletionOption(System.Int32 index)

Summary

Gets a stable borrowed immutable visible candidate.

Returns

Candidate.

Parameters

  • index: Existing visible index.

GetCodeCompletionOptions()

Kind: method

public Electron2D.CodeCompletionOption[] GetCodeCompletionOptions()

Summary

Gets an independent array of immutable visible candidates.

Returns

Borrowed candidate elements.

GetCodeCompletionSelectedIndex()

Kind: method

public System.Int32 GetCodeCompletionSelectedIndex()

Summary

Gets the selected visible candidate index.

Returns

Index, or -1 when inactive.

GetCodeRegionEndTag()

Kind: method

public System.String GetCodeRegionEndTag()

Summary

Returns the source region end tag.

Returns

Endregion initially.

GetCodeRegionStartTag()

Kind: method

public System.String GetCodeRegionStartTag()

Summary

Returns the source region start tag.

Returns

Region initially.

GetDelimiterEndKey(System.Int32)

Kind: method

public System.String GetDelimiterEndKey(System.Int32 delimiterIndex)

Summary

Returns the combined ordered delimiter end key.

Returns

Source key.

Parameters

  • delimiterIndex: Existing combined index.

GetDelimiterEndPosition(System.Int32, System.Int32)

Kind: method

public Electron2D.Vector2 GetDelimiterEndPosition(System.Int32 line, System.Int32 column)

Summary

Returns the delimiter end boundary after its closing key, or line-length plus one for line-only.

Returns

Column/line, or (-1,-1) if unavailable/unclosed.

Parameters

  • line: Existing line.
  • column: Scalar position.

GetDelimiterStartKey(System.Int32)

Kind: method

public System.String GetDelimiterStartKey(System.Int32 delimiterIndex)

Summary

Returns the combined ordered delimiter start key.

Returns

Source key.

Parameters

  • delimiterIndex: Existing combined index.

GetDelimiterStartPosition(System.Int32, System.Int32)

Kind: method

public Electron2D.Vector2 GetDelimiterStartPosition(System.Int32 line, System.Int32 column)

Summary

Returns the delimiter start boundary one scalar after its opening key begins.

Returns

Column/line, or (-1,-1).

Parameters

  • line: Existing line.
  • column: Scalar position.

GetExecutingLines()

Kind: method

public System.Int32[] GetExecutingLines()

Summary

Returns an ascending executing-line array.

Returns

Logical indices.

GetFoldedLines()

Kind: method

public System.Int32[] GetFoldedLines()

Summary

Returns an independent ascending folded-header array.

Returns

Logical indices.

GetPropertyDescriptors()

Kind: method

protected override System.Collections.Generic.IEnumerable<Electron2D.PropertyDescriptor> GetPropertyDescriptors()

GetTextForCodeCompletion()

Kind: method

public System.String GetTextForCodeCompletion()

Summary

Returns cursor-marked text at the primary caret.

Returns

Source with U+FFFF.

GetTextForSymbolLookup()

Kind: method

public System.String GetTextForSymbolLookup()

Summary

Returns cursor-marked text at the current symbol-lookup position.

Returns

Source with U+FFFF.

GetTextWithCursorChar(System.Int32, System.Int32)

Kind: method

public System.String GetTextWithCursorChar(System.Int32 line, System.Int32 column)

Summary

Returns the complete text with U+FFFF at a logical/scalar coordinate.

Returns

Cursor-marked text.

Parameters

  • line: Existing line.
  • column: Scalar column.

HasAutoBraceCompletionCloseKey(System.String)

Kind: method

public System.Boolean HasAutoBraceCompletionCloseKey(System.String closeKey)

Summary

Reports a closing brace key.

Returns

Whether present.

Parameters

  • closeKey: Exact key.

HasAutoBraceCompletionOpenKey(System.String)

Kind: method

public System.Boolean HasAutoBraceCompletionOpenKey(System.String openKey)

Summary

Reports an opening brace key.

Returns

Whether present.

Parameters

  • openKey: Exact key.

HasCommentDelimiter(System.String)

Kind: method

public System.Boolean HasCommentDelimiter(System.String startKey)

Summary

Reports an exact comment start key.

Returns

Whether present.

Parameters

  • startKey: Exact key.

HasStringDelimiter(System.String)

Kind: method

public System.Boolean HasStringDelimiter(System.String startKey)

Summary

Reports an exact string start key.

Returns

Whether present.

Parameters

  • startKey: Exact key.

IndentLines()

Kind: method

public System.Void IndentLines()

Summary

Indents each selected/caret line once, omitting empty lines.

IsInComment(System.Int32, System.Int32)

Kind: method

public System.Int32 IsInComment(System.Int32 line, System.Int32 column = -1)

Summary

Returns a combined comment delimiter index at a scalar position, or for a wholly covered line.

Returns

Combined index or -1.

Parameters

  • line: Existing line.
  • column: Scalar position, or -1 for whole line.

IsInString(System.Int32, System.Int32)

Kind: method

public System.Int32 IsInString(System.Int32 line, System.Int32 column = -1)

Summary

Returns a combined string delimiter index at a scalar position, or for a wholly covered line.

Returns

Combined index or -1.

Parameters

  • line: Existing line.
  • column: Scalar position, or -1 for whole line.

IsLineBookmarked(System.Int32)

Kind: method

public System.Boolean IsLineBookmarked(System.Int32 line)

Summary

Reports a bookmark.

Returns

Marker state.

Parameters

  • line: Existing line.

IsLineBreakpointed(System.Int32)

Kind: method

public System.Boolean IsLineBreakpointed(System.Int32 line)

Summary

Reports a breakpoint marker.

Returns

Marker state.

Parameters

  • line: Existing line.

IsLineCodeRegionEnd(System.Int32)

Kind: method

public System.Boolean IsLineCodeRegionEnd(System.Int32 line)

Summary

Reports a single-line-comment code-region end.

Returns

Whether the configured tag begins this line.

Parameters

  • line: Existing line.

IsLineCodeRegionStart(System.Int32)

Kind: method

public System.Boolean IsLineCodeRegionStart(System.Int32 line)

Summary

Reports a single-line-comment code-region start.

Returns

Whether the configured tag begins this line.

Parameters

  • line: Existing line.

IsLineExecuting(System.Int32)

Kind: method

public System.Boolean IsLineExecuting(System.Int32 line)

Summary

Reports an executing-line marker.

Returns

Marker state.

Parameters

  • line: Existing line.

IsLineFolded(System.Int32)

Kind: method

public System.Boolean IsLineFolded(System.Int32 line)

Summary

Reports an explicit folded header.

Returns

Fold state.

Parameters

  • line: Existing line.

JoinLines(System.String)

Kind: method

public System.Void JoinLines(System.String lineEnding = " ")

Summary

Joins selected/caret lines with following lines, trimming connecting whitespace.

Parameters

  • lineEnding: Nonnull inserted separator.

MoveLinesDown()

Kind: method

public System.Void MoveLinesDown()

Summary

Moves selected/caret line ranges downward with their gutters and backgrounds.

MoveLinesUp()

Kind: method

public System.Void MoveLinesUp()

Summary

Moves selected/caret line ranges upward with their gutters and backgrounds.

OnBackspace(System.Int32)

Kind: method

protected override System.Void OnBackspace(System.Int32 caretIndex)

OnConfirmCodeCompletion(System.Boolean)

Kind: method

protected virtual System.Void OnConfirmCodeCompletion(System.Boolean replace)

Summary

Inserts the active candidate as one undo group and cancels completion.

Parameters

  • replace: Replaces the following identifier.

OnCut(System.Int32)

Kind: method

protected override System.Void OnCut(System.Int32 caretIndex)

OnFilterCodeCompletionCandidates(Electron2D.CodeCompletionOption[])

Kind: method

protected virtual Electron2D.CodeCompletionOption[] OnFilterCodeCompletionCandidates(Electron2D.CodeCompletionOption[] candidates)

Summary

Filters application candidates into their visible order. An override owns the complete filter and insertion prefix is empty.

Returns

Non-null candidate array without null elements.

Parameters

  • candidates: Independent array of borrowed immutable candidates.

OnGUIInput(Electron2D.InputEvent)

Kind: method

protected override System.Void OnGUIInput(Electron2D.InputEvent inputEvent)

OnGetCursorShape(Electron2D.Vector2)

Kind: method

protected override Electron2D.CursorShape OnGetCursorShape(Electron2D.Vector2 atPosition)

OnHandleUnicodeInput(System.Int32, System.Int32)

Kind: method

protected override System.Void OnHandleUnicodeInput(System.Int32 unicodeChar, System.Int32 caretIndex)

OnNotification(System.Int32)

Kind: method

protected override System.Void OnNotification(System.Int32 what)

OnPaste(System.Int32)

Kind: method

protected override System.Void OnPaste(System.Int32 caretIndex)

OnRequestCodeCompletion(System.Boolean)

Kind: method

protected virtual System.Void OnRequestCodeCompletion(System.Boolean force)

Summary

Requests candidate production after validating ordinary query context.

Parameters

  • force: Bypasses word/prefix checks.

OnTextInput(System.String)

Kind: method

protected override System.Void OnTextInput(System.String text)

RemoveCommentDelimiter(System.String)

Kind: method

public System.Void RemoveCommentDelimiter(System.String startKey)

Summary

Removes a comment delimiter by start key.

Parameters

  • startKey: Exact key.

RemoveStringDelimiter(System.String)

Kind: method

public System.Void RemoveStringDelimiter(System.String startKey)

Summary

Removes a string delimiter by start key.

Parameters

  • startKey: Exact key.

RequestCodeCompletion(System.Boolean)

Kind: method

public System.Void RequestCodeCompletion(System.Boolean force = false)

Summary

Requests application completion using the typed virtual request hook.

Parameters

  • force: Bypasses ordinary prefix/context checks.

SetCodeCompletionSelectedIndex(System.Int32)

Kind: method

public System.Void SetCodeCompletionSelectedIndex(System.Int32 index)

Summary

Changes selection while completion is active.

Parameters

  • index: Existing visible candidate index.

SetCodeHint(System.String)

Kind: method

public System.Void SetCodeHint(System.String codeHint)

Summary

Sets source code-hint text; empty clears it. U+FFFF toggles highlighted argument spans.

Parameters

  • codeHint: Nonnull text.

SetCodeHintDrawBelow(System.Boolean)

Kind: method

public System.Void SetCodeHintDrawBelow(System.Boolean drawBelow)

Summary

Chooses whether the code hint is below or above the primary caret.

Parameters

  • drawBelow: True draws below.

SetCodeRegionTags(System.String, System.String)

Kind: method

public System.Void SetCodeRegionTags(System.String start = "region", System.String end = "endregion")

Summary

Sets source region tags without a comment prefix.

Parameters

  • start: Nonempty start tag.
  • end: Nonempty end tag.

SetLineAsBookmarked(System.Int32, System.Boolean)

Kind: method

public System.Void SetLineAsBookmarked(System.Int32 line, System.Boolean bookmarked)

Summary

Sets a runtime bookmark.

Parameters

  • line: Existing line.
  • bookmarked: Desired state.

SetLineAsBreakpoint(System.Int32, System.Boolean)

Kind: method

public System.Void SetLineAsBreakpoint(System.Int32 line, System.Boolean breakpointed)

Summary

Sets a runtime breakpoint marker.

Parameters

  • line: Existing line.
  • breakpointed: Desired state.

SetLineAsExecuting(System.Int32, System.Boolean)

Kind: method

public System.Void SetLineAsExecuting(System.Int32 line, System.Boolean executing)

Summary

Sets an executing-line marker.

Parameters

  • line: Existing line.
  • executing: Desired state.

SetSymbolLookupWordAsValid(System.Boolean)

Kind: method

public System.Void SetSymbolLookupWordAsValid(System.Boolean valid)

Summary

Marks the most recently requested pointer symbol as eligible for lookup.

Parameters

  • valid: Validation result.

ToggleFoldableLine(System.Int32)

Kind: method

public System.Void ToggleFoldableLine(System.Int32 line)

Summary

Toggles a supported folded header.

Parameters

  • line: Existing line.

ToggleFoldableLinesAtCarets()

Kind: method

public System.Void ToggleFoldableLinesAtCarets()

Summary

Toggles each distinct caret header.

UnfoldAllLines()

Kind: method

public System.Void UnfoldAllLines()

Summary

Clears all folds and restores every logical line.

UnfoldLine(System.Int32)

Kind: method

public System.Void UnfoldLine(System.Int32 line)

Summary

Unfolds the containing folded header while preserving nested folded blocks.

Parameters

  • line: Existing header or hidden line.

UnindentLines()

Kind: method

public System.Void UnindentLines()

Summary

Removes one indentation stop from each selected/caret line.

UpdateCodeCompletionOptions(System.Boolean)

Kind: method

public System.Void UpdateCodeCompletionOptions(System.Boolean force)

Summary

Replaces the current candidate sources with the submitted queue and filters them.

Parameters

  • force: Allows presentation with an empty prefix.

AutoBraceCompletionEnabled

Kind: property

public System.Boolean AutoBraceCompletionEnabled { get; set; }

Summary

Gets or sets automatic paired insertion, closing-key skip and paired backspace.

Value

False initially.

AutoBraceCompletionHighlightMatching

Kind: property

public System.Boolean AutoBraceCompletionHighlightMatching { get; set; }

Summary

Gets or sets matching and mismatched brace underlines.

Value

False initially.

AutoBraceCompletionPairs

Kind: property

public System.Collections.Generic.IReadOnlyDictionary<System.String, System.String> AutoBraceCompletionPairs { get; set; }

Summary

Gets or sets independent brace-key mappings.

Value

Parentheses, brackets, braces and quotes initially.

CodeCompletionEnabled

Kind: property

public System.Boolean CodeCompletionEnabled { get; set; }

Summary

Gets or sets automatic completion requests after committed text.

Value

False initially.

CodeCompletionPrefixes

Kind: property

public System.String[] CodeCompletionPrefixes { get; set; }

Summary

Gets or sets copied single-scalar completion prefixes.

Value

Empty initially.

DelimiterComments

Kind: property

public System.String[] DelimiterComments { get; set; }

Summary

Gets or sets copied comment delimiter descriptions.

Value

Empty initially.

DelimiterStrings

Kind: property

public System.String[] DelimiterStrings { get; set; }

Summary

Gets or sets copied string delimiter descriptions encoded as start and optional end keys.

Value

Single and double quotes initially.

GuttersDrawBookmarks

Kind: property

public System.Boolean GuttersDrawBookmarks { get; set; }

Summary

Gets or sets bookmark icons in the main gutter.

Value

False initially.

GuttersDrawBreakpointsGutter

Kind: property

public System.Boolean GuttersDrawBreakpointsGutter { get; set; }

Summary

Gets or sets breakpoint icons and pointer toggling in the main gutter.

Value

False initially.

GuttersDrawExecutingLines

Kind: property

public System.Boolean GuttersDrawExecutingLines { get; set; }

Summary

Gets or sets execution markers in the main gutter.

Value

False initially.

GuttersDrawFoldGutter

Kind: property

public System.Boolean GuttersDrawFoldGutter { get; set; }

Summary

Gets or sets folding icons and pointer toggling.

Value

False initially.

GuttersDrawLineNumbers

Kind: property

public System.Boolean GuttersDrawLineNumbers { get; set; }

Summary

Gets or sets logical line-number presentation.

Value

False initially.

GuttersLineNumbersMinDigits

Kind: property

public System.Int32 GuttersLineNumbersMinDigits { get; set; }

Summary

Gets or sets the minimum number of line-number digits.

Value

Three initially.

GuttersZeroPadLineNumbers

Kind: property

public System.Boolean GuttersZeroPadLineNumbers { get; set; }

Summary

Gets or sets zero padding instead of space padding in line numbers.

Value

False initially.

IndentAutomatic

Kind: property

public System.Boolean IndentAutomatic { get; set; }

Summary

Gets or sets indentation inheritance and configured prefix expansion on newlines.

Value

False initially.

IndentAutomaticPrefixes

Kind: property

public System.String[] IndentAutomaticPrefixes { get; set; }

Summary

Gets or sets copied single-scalar automatic indentation prefixes.

Value

Colon and opening braces initially.

IndentSize

Kind: property

public System.Int32 IndentSize { get; set; }

Summary

Gets or sets the positive indentation/tab width.

Value

Four initially.

IndentUseSpaces

Kind: property

public System.Boolean IndentUseSpaces { get; set; }

Summary

Gets or sets space indentation instead of tab indentation.

Value

False initially.

LineFolding

Kind: property

public System.Boolean LineFolding { get; set; }

Summary

Gets or sets code-region, delimiter-block and indentation folding.

Value

False initially.

LineLengthGuidelines

Kind: property

public System.Int32[] LineLengthGuidelines { get; set; }

Summary

Gets or sets copied nonnegative scalar guideline columns.

Value

Empty initially.

SymbolLookupOnClick

Kind: property

public System.Boolean SymbolLookupOnClick { get; set; }

Summary

Gets or sets validated symbol lookup on command-modified pointer clicks.

Value

False initially.

SymbolTooltipOnHover

Kind: property

public System.Boolean SymbolTooltipOnHover { get; set; }

Summary

Gets or sets symbol hover requests after the project tooltip delay.

Value

False initially.

Clone this wiki locally