SyntaxEditor Class
Represents a syntax-highlighting code editor control.
[ToolboxBitmap(typeof(SyntaxEditor))]
public class SyntaxEditor : UIControl, IUIControl, IUIElement, ILogicalTreeNode, IDpiAwareElement, IDisposable, IWeakEventListener
- Inheritance:
- object MarshalByRefObject Component Control ScrollableControl UIControl object
Constructors
SyntaxEditor()
Initializes an instance of the class.
public SyntaxEditor()
Properties
AcceptsTab
Indicates whether the Tab key is accepted, allowing for the insertion of tab stops and/or indenting blocks of text.
public bool AcceptsTab { get; set; }
Property Value
- bool:
trueif the tab key is accepted; otherwise,false. The default value istrue.
Remarks
When this property is false, the Tab and Shift+Tab key shortcuts will move focus instead.
ActiveView
The currently-active IEditorView in the editor.
[Browsable(false)]
public IEditorView ActiveView { get; }
Property Value
Remarks
The currently-active view in the editor is the view that contains focus when focus is moved within the editor. There is always a single view in an editor marked as active.
AllowDrag
Indicates whether dragging text from the editor is allowed.
public bool AllowDrag { get; set; }
Property Value
- bool:
trueif dragging text from the editor is allowed; otherwise,false. The default value istrue.
AreColumnGuidesVisible
Indicates whether column guides are visible.
public bool AreColumnGuidesVisible { get; set; }
Property Value
- bool:
trueif column guides are visible; otherwise,false. The default value istrue.
AreIndentationGuidesVisible
Indicates whether indentation guides are visible.
public bool AreIndentationGuidesVisible { get; set; }
Property Value
- bool:
trueif indentation guides are visible; otherwise,false. The default value isfalse.
AreLineModificationMarksVisible
Indicates whether line modification marks are visible.
public bool AreLineModificationMarksVisible { get; set; }
Property Value
- bool:
trueif line modification marks are visible; otherwise,false. The default value istrue.
AreMultipleSelectionRangesEnabled
Indicates whether multiple selection range features (and related carets) are enabled.
public bool AreMultipleSelectionRangesEnabled { get; set; }
Property Value
- bool:
trueif multiple selection range features (and related carets) are enabled; otherwise,false. The default value istrue.
Remarks
When this property is true, various features for supporting insertion of multiple carets
and managing more than a single selection range will be enabled.
Set this property to false to prevent more than a single selection range.
AreSelectionGrippersEnabled
Indicates whether selection grippers (when touching a view) are enabled.
public bool AreSelectionGrippersEnabled { get; set; }
Property Value
- bool:
trueif selection grippers (when touching a view) are enabled; otherwise,false. The default value istrue.
AreWordWrapGlyphsVisible
Indicates whether word wrap glyphs are visible when word wrap is enabled.
public bool AreWordWrapGlyphsVisible { get; set; }
Property Value
- bool:
trueif word wrap glyphs are visible when word wrap is enabled; otherwise,false. The default value isfalse.
Remarks
Set the WordWrapMode property to control to designate the current word wrap mode.
BackColor
Gets or sets the background color for the control.
public override Color BackColor { get; set; }
Property Value
- Color:
A Color that represents the background color of the control. The default is the value of the DefaultBackColor property.
BorderColor
The border color.
BorderStyle
The border style for editor views.
public BorderStyle BorderStyle { get; set; }
Property Value
- BorderStyle:
The border style for editor views. The default value is
BorderStyle.FixedSingle.
CanBackspaceOverSpacesToTabStop
Indicates whether a Backspace key pressed before the first non-whitespace character of a line will backspace to the previous tab stop.
public bool CanBackspaceOverSpacesToTabStop { get; set; }
Property Value
- bool:
trueif a Backspace key pressed before the first non-whitespace character of a line will backspace to the previous tab stop; otherwise,false. The default value istrue.
Remarks
This property is only used when AutoConvertTabsToSpaces is true.
When this property is false, only one space character maximum will be consumed when backspacing
before the first non-whitespace character of a line.
See Also
CanCutCopyBlankLineWhenNoSelection
Indicates whether cut/copy operations on a blank line with no selection overwrites the clipboard with the blank line.
public bool CanCutCopyBlankLineWhenNoSelection { get; set; }
Property Value
- bool:
trueif cut/copy operations on a blank line with no selection overwrites the clipboard with the blank line; otherwise,false. The default value istrue.
Remarks
When there is no selection in the editor and a cut or copy operation occurs, the text of the current line will
be sent to the clipboard. If the text is subsequently pasted back into the editor while there is no selection,
a new link will be created to insert the clipboard data and the caret will not move.
Even if this property is false, cutting of blank lines will occur but the clipboard will not be changed.
CanCutCopyDragWithHtml
Indicates whether the cutting and copying of text to the clipboard or dragging text
also copies the text in HTML format, which retains syntax highlighting.
public bool CanCutCopyDragWithHtml { get; set; }
Property Value
- bool:
trueifHTMLformat is included; otherwise,false. The default value isfalse.
Remarks
Activating this feature will cause a slight delay when cutting, copying, or dragging text
since the building of HTML formatted text can take time. However most likely this delay will be negligible.
CanCutCopyDragWithRtf
Indicates whether the cutting and copying of text to the clipboard or dragging text
also copies the text in RTF format, which retains syntax highlighting.
public bool CanCutCopyDragWithRtf { get; set; }
Property Value
- bool:
trueifRTFformat is included; otherwise,false. The default value istrue.
Remarks
Activating this feature will cause a slight delay when cutting, copying, or dragging text
since the building of RTF formatted text can take time. However most likely this delay will be negligible.
CanIncrementalSearchTrimUnmatchedFindText
Indicates whether incremental search can ignore typed characters appended to the find text when no match was found for the previous find text.
public bool CanIncrementalSearchTrimUnmatchedFindText { get; set; }
Property Value
- bool:
trueif incremental search can ignore typed characters appended to the find text when no match was found for the previous find text; otherwise,false. The default value istrue.
CanMoveCaretForSecondaryPointerButton
Indicates whether to move the caret when a secondary pointer button (e.g. a right mouse button) is pressed outside of the current selection.
public bool CanMoveCaretForSecondaryPointerButton { get; set; }
Property Value
- bool:
trueif the caret should move when a secondary pointer button (e.g. a right mouse button) is pressed outside of the current selection; otherwise,false. The default value istrue.
CanMoveCaretToNextLineAtLineEnd
Indicates whether to move the caret to the next view line when pressing the right-arrow key at the end of a view line.
public bool CanMoveCaretToNextLineAtLineEnd { get; set; }
Property Value
- bool:
trueif the caret should move to the next view line when pressing the right-arrow key at the end of a view line; otherwise,false. The default value istrue.
CanMoveCaretToPreviousLineAtLineStart
Indicates whether to move the caret to the previous view line when pressing the left-arrow key at the start of a view line.
public bool CanMoveCaretToPreviousLineAtLineStart { get; set; }
Property Value
- bool:
trueif the caret should move to the previous view line when pressing the left-arrow key at the start of a view line; otherwise,false. The default value istrue.
CanPointerWheelScrollUnfocusedViews
Indicates whether pointer (mouse) wheels can scroll unfocused editor views.
public bool CanPointerWheelScrollUnfocusedViews { get; set; }
Property Value
- bool:
trueif pointer (mouse) wheels can scroll unfocused editor views; otherwise,false. The default value istrue.
CanScrollPastDocumentEnd
Indicates whether it is possible to scroll past the end of the document.
public bool CanScrollPastDocumentEnd { get; set; }
Property Value
- bool:
trueif it is possible to scroll past the end of the document; otherwise,false. The default value istrue.
Remarks
When this property is set to true, the vertical scrollbar allows scrolling of the
last line of the document up to the first view line in the view.
This property should not be set to false when intra-line adornments are used or
multiple font faces/sizes are used in highlighting styles, since the vertical scrollbar maximum
cannot be properly calculated in those scenarios.
This property has no effect when word wrap mode is active.
CanScrollPastDocumentEndResolved
A resolved value for whether it is possible to scroll past the end of the document.
public bool CanScrollPastDocumentEndResolved { get; }
Property Value
- bool:
trueif it is possible to scroll past the end of the document; otherwise,false.
Remarks
CanScrollPastDocumentEnd is forced when in word wrap mode.
CanSplitHorizontally
Indicates whether the editor can be split horizontally to show more than one view.
public bool CanSplitHorizontally { get; set; }
Property Value
- bool:
trueif the editor can be split horizontally to show more than one view; otherwise,false. The default value istrue.
CaretBlinkInterval
The interval at which the caret blinks, in milliseconds.
CaretInsertKind
A CaretKind indicating the kind of the caret when in insert mode.
public CaretKind CaretInsertKind { get; set; }
Property Value
- CaretKind:
The default value is VerticalLine.
CaretInsertWidth
The width of the caret when in insert mode, if a non-block caret style is used.
public int CaretInsertWidth { get; set; }
Property Value
- int:
The width must be within
1and8. The default value is1.
CaretOverwriteKind
A CaretKind indicating the kind of the caret when in overwrite mode.
public CaretKind CaretOverwriteKind { get; set; }
Property Value
CaretOverwriteWidth
The width of the caret when in overwrite mode, if a non-block caret style is used.
public int CaretOverwriteWidth { get; set; }
Property Value
- int:
The width must be within
1and8. The default value is1.
ColumnGuides
A collection of IColumnGuide instances to be displayed in the ITextView.
[Browsable(false)]
public IColumnGuideCollection? ColumnGuides { get; set; }
Property Value
CommandLinks
A CommandLinkCollection containing the command links associated with the object.
DefaultPadding
Gets the internal spacing, in pixels, of the contents of a control.
protected override Padding DefaultPadding { get; }
Property Value
DefaultSize
Gets the default size of the control.
Document
The IEditorDocument being edited by the control.
[TypeConverter(typeof(ExpandableObjectConverter))]
public IEditorDocument Document { get; set; }
Property Value
Font
Gets or sets the font of the text displayed by the control.
[Browsable(true)]
public override Font Font { get; set; }
Property Value
- Font:
The Font to apply to the text displayed by the control. The default is the value of the DefaultFont property.
ForeColor
Gets or sets the foreground color of the control.
public override Color ForeColor { get; set; }
Property Value
- Color:
The foreground Color of the control. The default is the value of the DefaultForeColor property.
HasHorizontalSplit
Indicates whether the editor is currently split horizontally to show more than one view.
public bool HasHorizontalSplit { get; set; }
Property Value
- bool:
trueif the editor is currently split horizontally to show more than one view; otherwise,false. The default value isfalse.
See Also
HasSearchOverlayPaneKeyBindings
Indicates whether the editor has key bindings (hotkeys) that trigger the built-in search overlay pane.
public bool HasSearchOverlayPaneKeyBindings { get; set; }
Property Value
- bool:
trueif the editor has key bindings (hotkeys) that trigger the built-in search overlay pane; otherwise,false. The default value istrue.
Remarks
This properly should be set to false when an external search UI is used, since a false setting will prevent access to the built-in search overlay pane.
Key bindings like those involving F3, Ctrl+F, and Ctrl+H are affected by this property.
When this property is toggled, the ResetInputBindings() method will be called.
HighlightingStyleRegistry
The default IHighlightingStyleRegistry to use.
[Browsable(false)]
public IHighlightingStyleRegistry? HighlightingStyleRegistry { get; set; }
Property Value
Remarks
If this property is null, the AmbientHighlightingStyleRegistry will be used.
HorizontalScrollBarVisibility
The ScrollBarVisibility that specifies the visibility of the horizontal ScrollBar.
public ScrollBarVisibility HorizontalScrollBarVisibility { get; set; }
Property Value
- ScrollBarVisibility:
The default value is Visible.
Remarks
Visible and Auto always show the ScrollBar. Hidden always hides the ScrollBar.
HorizontalSplitPercentage
The percentage across the height of the editor at which the horizontal split is located.
public double HorizontalSplitPercentage { get; set; }
Property Value
- double:
A value between
0and1indicating the percentage. The default value is0.
Remarks
A value of 0 indicates that there is no split.
See Also
IndicatorMarginWidth
The width of the indicator margin.
IntelliPrompt
The IIntelliPromptManager that manages IntelliPrompt user interface functionality for this editor.
IsAutoCorrectEnabled
Indicates whether auto-correct, such as case correction, is enabled.
public bool IsAutoCorrectEnabled { get; set; }
Property Value
- bool:
trueif auto-correct, such as case correction, is enabled; otherwise,false. The default value istrue.
Remarks
Note that the auto correct feature requires that the current language have an IAutoCorrector service registered, along with other possible requirements.
IsCollapsibleRegionHighlightingEnabled
Indicates whether collapsible regions highlight when the mouse is over the outlining margin.
public bool IsCollapsibleRegionHighlightingEnabled { get; set; }
Property Value
- bool:
trueif collapsible regions highlight when the mouse is over the outlining margin; otherwise,false. The default value istrue.
IsCurrentLineHighlightingEnabled
Indicates whether current line highlighting is enabled for the active view.
public bool IsCurrentLineHighlightingEnabled { get; set; }
Property Value
- bool:
trueif current line highlighting is enabled for the active view; otherwise,false. The default value isfalse.
See Also
IsCurrentLineNumberHighlightingEnabled
Indicates whether current line number in the line number margin is highlighted in a different style from the other line numbers.
public bool IsCurrentLineNumberHighlightingEnabled { get; set; }
Property Value
- bool:
trueif current line number highlighting is enabled for the active view; otherwise,false. The default value istrue.
See Also
IsDefaultContextMenuEnabled
Indicates whether the default context menu is enabled.
public bool IsDefaultContextMenuEnabled { get; set; }
Property Value
- bool:
trueif the default context menu is enabled; otherwise,false. The default value istrue.
IsDelimiterAutoCompleteEnabled
Indicates whether delimiter auto-complete is enabled for the active view.
public bool IsDelimiterAutoCompleteEnabled { get; set; }
Property Value
- bool:
trueif delimiter auto-complete is enabled for the active view; otherwise,false. The default value istrue.
IsDelimiterHighlightingEnabled
Indicates whether delimiter highlighting is enabled for the active view.
public bool IsDelimiterHighlightingEnabled { get; set; }
Property Value
- bool:
trueif delimiter highlighting is enabled for the active view; otherwise,false. The default value istrue.
IsDocumentReadOnly
Indicates whether the attached document is read-only.
[Browsable(false)]
public bool IsDocumentReadOnly { get; }
Property Value
- bool:
trueif attached document is read-only; otherwise,false. The default value isfalse.
Remarks
Use the IsReadOnly property to alter this value.
IsDragDropTextReselectEnabled
Indicates whether to reselect text that is dragged and dropped into the control.
public bool IsDragDropTextReselectEnabled { get; set; }
Property Value
- bool:
trueif text that is dragged and dropped into the control should be reselected; otherwise,false. The default value istrue.
IsImeEnabled
Indicates whether support for IME (Input Method Editor) is enabled.
public bool IsImeEnabled { get; set; }
Property Value
- bool:
trueif IME support is enabled; otherwise,false. The default value istrue.
Remarks
IME is a Window feature that allows users to enter characters and symbols not found on their input device. It allows Western keyboards to enter Chinese, Japanese, etc. characters.
IsIndicatorMarginVisible
Indicates whether the indicator margin is visible.
public bool IsIndicatorMarginVisible { get; set; }
Property Value
- bool:
trueif the indicator margin is visible; otherwise,false. The default value isfalse.
Remarks
This property is only effective if the default indicator margin is created by the ViewMarginFactories currently in use.
IsLineNumberMarginVisible
Indicates whether the line number margin is visible.
public bool IsLineNumberMarginVisible { get; set; }
Property Value
- bool:
trueif the line number margin is visible; otherwise,false. The default value isfalse.
Remarks
This property is only effective if the default line number margin is created by the ViewMarginFactories currently in use.
IsMultiLine
Indicates whether the editor allows multiple lines of text.
public bool IsMultiLine { get; set; }
Property Value
- bool:
trueif the editor allows multiple lines of text; otherwise,false. The default value istrue.
Remarks
When this property is false, only a single line of text is permitted in the document
and the editor renders like a native single-line textbox.
IsOutliningMarginVisible
Indicates whether the outlining margin is visible.
public bool IsOutliningMarginVisible { get; set; }
Property Value
- bool:
trueif the outlining margin is visible; otherwise,false. The default value istrue.
Remarks
This property is only effective if the default outlining margin is created by the ViewMarginFactories currently in use.
IsOverwriteModeActive
Indicates whether the editor is in overwrite mode, where typing overwrites the character at the caret's offset.
public bool IsOverwriteModeActive { get; set; }
Property Value
- bool:
trueif the editor is in overwrite mode; otherwise,false. The default value isfalse.
IsRulerMarginVisible
Indicates whether the ruler margin is visible.
public bool IsRulerMarginVisible { get; set; }
Property Value
- bool:
trueif the ruler margin is visible; otherwise,false. The default value isfalse.
Remarks
This property is only effective if the default ruler margin is created by the ViewMarginFactories currently in use.
IsSearchResultHighlightingEnabled
Indicates whether search result highlighting is enabled for the active view.
public bool IsSearchResultHighlightingEnabled { get; set; }
Property Value
- bool:
trueif search result highlighting is enabled for the active view; otherwise,false. The default value istrue.
IsSelectionMarginVisible
Indicates whether the selection margin is visible.
public bool IsSelectionMarginVisible { get; set; }
Property Value
- bool:
trueif the selection margin is visible; otherwise,false. The default value istrue.
Remarks
This property is only effective if the default selection margin is created by the ViewMarginFactories currently in use.
IsTextDataBindingEnabled
Indicates whether data binding on the Text property is currently enabled.
public bool IsTextDataBindingEnabled { get; set; }
Property Value
- bool:
trueif data binding on the Text property is currently enabled; otherwise,false. The default value isfalse.
Remarks
Data binding is off by default on the Text property for two reasons. First, supporting the Text property means that two full copies of the document text are stored in memory instead of one, which can increase memory a lot for large documents. Second, the full text must be set to the property after each text change, meaning performance could suffer depending on the size of the document.
It is recommended to only set IsTextDataBindingEnabled to true when data binding is required,
and note that the IsTextDataBindingEnabled property must be set before creating a binding on the Text property.
IsVirtualSpaceAtLineEndEnabled
Indicates whether virtual space at the end of lines is enabled.
public bool IsVirtualSpaceAtLineEndEnabled { get; set; }
Property Value
- bool:
trueif virtual space at the end of lines is enabled; otherwise,false. The default value isfalse.
Remarks
When true, the caret can move past the end of lines.
Use of virtual space at the end of lines will disable word wrap.
IsWhitespaceVisible
Indicates whether whitespace (spaces and tabs) is visible.
public bool IsWhitespaceVisible { get; set; }
Property Value
- bool:
trueif whitespace (spaces and tabs) is visible; otherwise,false. The default value isfalse.
IsWordWrapEnabled
Indicates whether word wrap mode is currently enabled.
[Browsable(false)]
public bool IsWordWrapEnabled { get; set; }
Property Value
- bool:
trueif word wrap mode is currently enabled; otherwise,false. The default value isfalse.
Remarks
This property returns true if any WordWrapMode property value other than None is specified.
Set the WordWrapMode property to control to designate the current word wrap mode.
IsWordWrapGlyphMarginVisible
Indicates whether the word wrap glyph margin is visible.
public bool IsWordWrapGlyphMarginVisible { get; }
Property Value
- bool:
trueif the word wrap glyph margin is visible; otherwise,false. The default value isfalse.
LineNumberMarginMinWidth
The minimum width of the line number margin.
public int LineNumberMarginMinWidth { get; set; }
Property Value
- int:
The minimum width of the line number margin. The default value is
36.
MacroRecording
The IMacroRecording that manages macro recording and playback functionality.
OverrideCursor
[Browsable(false)]
public Cursor? OverrideCursor { get; set; }
Property Value
PrintSettings
The IPrintSettings that provides access to all printing functionality.
[TypeConverter(typeof(ExpandableObjectConverter))]
public IPrintSettings? PrintSettings { get; set; }
Property Value
- IPrintSettings:
The IPrintSettings that provides access to all printing functionality.
Renderer
The control-specific ISyntaxEditorRenderer used to render the control.
public ISyntaxEditorRenderer? Renderer { get; set; }
Property Value
Remarks
If this value is null, then the global renderer will be used instead.
RendererResolved
The ISyntaxEditorRenderer used to render the control.
[Browsable(false)]
public ISyntaxEditorRenderer RendererResolved { get; }
Property Value
Remarks
This property will return a global renderer if there is no control instance renderer override.
The registered renderer type with the UIRendererManager for this property is ISyntaxEditorRenderer.
ScrollBarAccelerationInterval
The TimeSpan that indicates the amount of time it takes to increase the number of ScrollBar units
scrolled per small change during ScrollBar acceleration.
public TimeSpan ScrollBarAccelerationInterval { get; set; }
Property Value
- TimeSpan:
The default value is
3 seconds.
Remarks
ScrollBar acceleration kicks in when holding down one of the ScrollBar controls' small change buttons.
At each interval specified by ScrollBarAccelerationInterval, the number of units scrolled with each
small change increases by 1 until ScrollBarAccelerationMaximum is reached.
This enables you to more quickly scroll large distances through documents.
For example, with the default settings, holding the vertical ScrollBar's
down button will start scrolling down 1 line at a time.
3 seconds later, it will increase to 2 lines at a time.
3 seconds later, it will increase to 3 lines at a time.
3 seconds later, it will increase to 4 lines at a time and will no longer increase the lines scrolled per small change.
Once the down button is released, everything resets back and acceleration is available for the next scroll operation.
See Also
ScrollBarAccelerationMaximum
A value between 1 and 10 that indicates the maximum number of ScrollBar units
that are scrolled during peak ScrollBar acceleration.
public int ScrollBarAccelerationMaximum { get; set; }
Property Value
- int:
Set to
1, the minimum, to disable acceleration. The default value is4.
Remarks
ScrollBar acceleration kicks in when holding down one of the ScrollBar controls' small change buttons.
At each interval specified by ScrollBarAccelerationInterval, the number of units scrolled with each
small change increases by 1 until ScrollBarAccelerationMaximum is reached.
This enables you to more quickly scroll large distances through documents.
For example, with the default settings, holding the vertical ScrollBar's
down button will start scrolling down 1 line at a time.
3 seconds later, it will increase to 2 lines at a time.
3 seconds later, it will increase to 3 lines at a time.
3 seconds later, it will increase to 4 lines at a time and will no longer increase the lines scrolled per small change.
Once the down button is released, everything resets back and acceleration is available for the next scroll operation.
See Also
ScrollToCaretOnSelectAll
Indicates whether to scroll to the caret when selecting all text in a view.
public bool ScrollToCaretOnSelectAll { get; set; }
Property Value
- bool:
trueif a view should scroll to the caret when selecting all its text; otherwise,false. The default value istrue.
SearchOptions
Indicates whether to scroll to the caret when selecting all text in a view.
[TypeConverter(typeof(ExpandableObjectConverter))]
public IEditorSearchOptions SearchOptions { get; set; }
Property Value
- IEditorSearchOptions:
trueif a view should scroll to the caret when selecting all its text; otherwise,false. The default value istrue.
SelectionCollapsesOnCopy
Indicates whether the selection collapses when a copy operation occurs.
public bool SelectionCollapsesOnCopy { get; set; }
Property Value
- bool:
trueif the selection collapses when a copy operation occurs; otherwise,false. The default value isfalse.
SelectionCollapsesToAnchor
Indicates whether the selection collapses to the anchor of the selection.
public bool SelectionCollapsesToAnchor { get; set; }
Property Value
- bool:
trueif the selection collapses to the anchor of the selection; otherwise,false. The default value isfalse.
SelectionMarginWidth
The width of the selection margin.
SelectionModesAllowed
A SelectionModes value indicating the selection modes that are allowed within the editor.
public SelectionModes SelectionModesAllowed { get; set; }
Property Value
- SelectionModes:
The default value is Block and ContinuousStream.
Text
The complete document text within the editor.
public override string Text { get; set; }
Property Value
Remarks
Every time the getter of this property is called, the text of the document is completely reconstructed. Every call to the setter completely replaces the document text. Therefore many calls to this property can be a performance bottleneck.
To properly get text substrings from the document, get the current ITextSnapshot from CurrentSnapshot (using the Document property) and use the GetSubstring(int, int, LineTerminator?) method. Likewise, to determine document length, use the Length property.
Programmatic document updates should be performed using methods on ITextDocument accessible from the Document property.
See Also
UseInvertedCaret
Indicates whether to invert the caret over its background.
public bool UseInvertedCaret { get; set; }
Property Value
- bool:
trueif the caret should be inverted over its background; otherwise,false. The default value isfalse.
Remarks
Inverted carets are high-contrast and were commonly used in classic code editors.
VerticalScrollBarVisibility
The ScrollBarVisibility that specifies the visibility of the vertical ScrollBar.
public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
Property Value
- ScrollBarVisibility:
The default value is Visible.
Remarks
Visible and Auto always show the ScrollBar. Hidden always hides the ScrollBar.
ViewMarginFactories
The collection that contains the IEditorViewMarginFactory objects used to generate the margins for an IEditorView.
public IEditorViewMarginFactoryCollection ViewMarginFactories { get; }
Property Value
- IEditorViewMarginFactoryCollection:
The default collection contains an instance of DefaultEditorViewMarginFactory.
WordWrapMode
A WordWrapMode value indicating the type of word wrapping that is performed.
public WordWrapMode WordWrapMode { get; set; }
Property Value
- WordWrapMode:
The default value is None.
WrappedLineIndentAmount
The number of characters to indent any wrapped lines beyond the original indent level of the primary line.
public int WrappedLineIndentAmount { get; set; }
Property Value
- int:
The default value is
2.
Remarks
A value of 2 will indent wrapped lines to the original indent level of the primary line, plus 2 additional character widths.
A value of 0 will indent wrapped lines to the original indent level of the primary line.
A value of -1 will not indent wrapped lines at all, and will simply align them to the left edge of the view.
The indent amount may be limited or altogether disabled if there is not enough available width in the view to support proper indentation.
Methods
ArrangeOverride(Size)
Positions child elements and determines an arrange size.
protected override Size ArrangeOverride(Size finalSize)
| Parameter | Type | Description |
|---|---|---|
| finalSize | Size | The final area within the parent that this element should use to arrange itself and its children. |
Returns
- Size:
The actual size used.
Remarks
Element authors should override this method, call Arrange(Rectangle) on each visible child element and position each child element. It is required that a parent element calls Arrange(Rectangle) on each child or they won't be rendered.
CloseOverlayPanes(string?)
Closes open overlay panes with the optional key in all editor instances.
public static void CloseOverlayPanes(string? key)
| Parameter | Type | Description |
|---|---|---|
| key | string | The key of overlay panes to close, or |
See Also
CreateChildren()
Invoked when the collection of child elements is to be created.
protected override IList<ILogicalTreeNode>? CreateChildren()
Returns
- IList<ILogicalTreeNode>:
The list that should be assigned to the Children property.
Remarks
By default, no child collection is created.
CreateDefaultContextMenu(IEditorView?)
Creates the default menu.
protected virtual IMenu CreateDefaultContextMenu(IEditorView? targetView)
| Parameter | Type | Description |
|---|---|---|
| targetView | IEditorView | The optional target IEditorView. Pass |
Returns
- IMenu:
The default menu to use.
CreateDefaultFont()
Creates the default Font.
CreateMacroRecording()
Creates the IMacroRecording object to use for this editor.
Dispose(bool)
Releases the unmanaged resources used by the Control and its child controls and optionally releases the managed resources.
protected override void Dispose(bool disposing)
| Parameter | Type | Description |
|---|---|---|
| disposing | bool |
|
DpiScaleChanged(SizeF)
Called when the DPI-based scale factor of the element changes.
public override void DpiScaleChanged(SizeF scaleFactor)
| Parameter | Type | Description |
|---|---|---|
| scaleFactor | SizeF | The new scale factor where Width is applied to the x-axis, and Height is applied to the y-axis. |
See Also
GetView(EditorViewPlacement)
Returns the IEditorView for the specified location.
public IEditorView? GetView(EditorViewPlacement viewPlacement)
| Parameter | Type | Description |
|---|---|---|
| viewPlacement | EditorViewPlacement | The EditorViewPlacement to check. |
Returns
- IEditorView:
The IEditorView for the specified location.
HitTest(Point)
Performs a hit test of the specified Point within the editor and returns detailed results in an IHitTestResult.
public IHitTestResult HitTest(Point point)
| Parameter | Type | Description |
|---|---|---|
| point | Point | The Point to hit test, relative to the editor's coordinates. |
Returns
InvalidateViews()
Invalidates the views and redraws them.
public void InvalidateViews()
IsInputChar(char)
Determines if a character is an input character that the control recognizes.
protected override bool IsInputChar(char charCode)
| Parameter | Type | Description |
|---|---|---|
| charCode | char | The character to test. |
Returns
- bool:
trueif the character should be sent directly to the control and not preprocessed; otherwise,false.
IsInputKey(Keys)
Determines whether the specified key is a regular input key or a special key that requires preprocessing.
protected override bool IsInputKey(Keys keyData)
| Parameter | Type | Description |
|---|---|---|
| keyData | Keys | One of the Keys values. |
Returns
- bool:
trueif the specified key is a regular input key; otherwise,false.
IsSelectionModeAllowed(SelectionModes)
Indicates whether the specified SelectionModes value is allowed.
public bool IsSelectionModeAllowed(SelectionModes mode)
| Parameter | Type | Description |
|---|---|---|
| mode | SelectionModes | A SelectionModes indicating the value to check. |
Returns
- bool:
trueif the specified SelectionModes value is allowed; otherwise,false.
MeasureOverride(Graphics?, Size)
Measures the size in layout required for child elements and determines a size for the element itself.
protected override Size MeasureOverride(Graphics? g, Size availableSize)
| Parameter | Type | Description |
|---|---|---|
| g | Graphics | The Graphics object to use for measurement. |
| availableSize | Size | The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available. |
Returns
- Size:
The size that this element determines it needs during layout, based on its calculations of child element sizes.
Remarks
Element authors should override this method, call Measure(Graphics?, Size) on each visible child element and determine the total size required.
OnActiveViewChanged(EditorViewChangedEventArgs)
Occurs after the ActiveView property is changed.
protected virtual void OnActiveViewChanged(EditorViewChangedEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EditorViewChangedEventArgs | The event data. |
OnAreWordWrapGlyphsVisiblePropertyChanged(bool, bool)
Occurs when the AreWordWrapGlyphsVisible property is changed.
protected virtual void OnAreWordWrapGlyphsVisiblePropertyChanged(bool oldValue, bool newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | bool | The old value. |
| newValue | bool | The new value. |
OnCanSplitHorizontallyPropertyChanged(bool, bool)
Occurs when the CanSplitHorizontally property is changed.
protected virtual void OnCanSplitHorizontallyPropertyChanged(bool oldValue, bool newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | bool | The old value. |
| newValue | bool | The new value. |
OnColumnGuidesPropertyChanged(IColumnGuideCollection?, IColumnGuideCollection?)
Occurs when the ColumnGuides property is changed.
protected virtual void OnColumnGuidesPropertyChanged(IColumnGuideCollection? oldValue, IColumnGuideCollection? newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | IColumnGuideCollection | The old value. |
| newValue | IColumnGuideCollection | The new value. |
OnCutCopyDrag(CutCopyDragEventArgs)
Occurs before text is cut or copied to the clipboard, and also before a drag occurs.
protected virtual void OnCutCopyDrag(CutCopyDragEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | CutCopyDragEventArgs | The event data. |
OnDocumentChanged(EditorDocumentChangedEventArgs)
Occurs after the Document property is changed.
protected virtual void OnDocumentChanged(EditorDocumentChangedEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EditorDocumentChangedEventArgs | The event data. |
OnDocumentIsModifiedChanged(EventArgs)
Occurs after the current document's IsModified property value has changed.
protected virtual void OnDocumentIsModifiedChanged(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
OnDocumentIsReadOnlyChanged(EventArgs)
Occurs after the current document's IsReadOnly property value has changed.
protected virtual void OnDocumentIsReadOnlyChanged(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
OnDocumentLanguageChanged(EditorDocumentLanguageChangedEventArgs)
Occurs when the current document's Language property value has changed.
protected virtual void OnDocumentLanguageChanged(EditorDocumentLanguageChangedEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EditorDocumentLanguageChangedEventArgs | The event data. |
OnDocumentParseDataChanged(EventArgs)
Occurs after the current document's ParseData property value has changed.
protected virtual void OnDocumentParseDataChanged(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
OnDocumentPropertyChanged(IEditorDocument?, IEditorDocument?)
Occurs when the Document property is changed.
protected virtual void OnDocumentPropertyChanged(IEditorDocument? oldValue, IEditorDocument? newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | IEditorDocument | The old value. |
| newValue | IEditorDocument | The new value. |
OnDocumentTextChanged(EditorSnapshotChangedEventArgs)
Occurs after a text change occurs to the Document.
protected virtual void OnDocumentTextChanged(EditorSnapshotChangedEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EditorSnapshotChangedEventArgs | The event data. |
OnDocumentTextChanging(EditorSnapshotChangingEventArgs)
Occurs before a text change occurs to the Document.
protected virtual void OnDocumentTextChanging(EditorSnapshotChangingEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EditorSnapshotChangingEventArgs | The event data. |
OnFontChanged(EventArgs)
Raises the FontChanged event.
protected override void OnFontChanged(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | An EventArgs that contains the event data. |
OnGotFocus(EventArgs)
Raises the GotFocus event.
protected override void OnGotFocus(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | An EventArgs that contains the event data. |
OnHasHorizontalSplitPropertyChanged(bool, bool)
Occurs when the HasHorizontalSplit property is changed.
protected virtual void OnHasHorizontalSplitPropertyChanged(bool oldValue, bool newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | bool | The old value. |
| newValue | bool | The new value. |
OnHasSearchOverlayPaneKeyBindingsPropertyChanged(bool, bool)
Occurs when the HasSearchOverlayPaneKeyBindings property is changed.
protected virtual void OnHasSearchOverlayPaneKeyBindingsPropertyChanged(bool oldValue, bool newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | bool | The old value. |
| newValue | bool | The new value. |
OnHighlightingStyleRegistryPropertyChanged(IHighlightingStyleRegistry?, IHighlightingStyleRegistry?)
Occurs when the HighlightingStyleRegistry property is changed.
protected virtual void OnHighlightingStyleRegistryPropertyChanged(IHighlightingStyleRegistry? oldValue, IHighlightingStyleRegistry? newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | IHighlightingStyleRegistry | The old value. |
| newValue | IHighlightingStyleRegistry | The new value. |
OnHorizontalSplitPercentagePropertyChanged(double, double)
Occurs when the HasHorizontalSplit property is changed.
protected virtual void OnHorizontalSplitPercentagePropertyChanged(double oldValue, double newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | double | The old value. |
| newValue | double | The new value. |
OnIsMultiLinePropertyChanged(bool, bool)
Occurs when the IsMultiLine property is changed.
protected virtual void OnIsMultiLinePropertyChanged(bool oldValue, bool newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | bool | The old value. |
| newValue | bool | The new value. |
OnIsOverwriteModeActiveChanged(EventArgs)
Occurs when the IsOverwriteModeActive property value changes.
protected virtual void OnIsOverwriteModeActiveChanged(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
OnIsSearchResultHighlightingEnabledPropertyChanged(bool, bool)
Occurs when the IsSearchResultHighlightingEnabled property is changed.
protected virtual void OnIsSearchResultHighlightingEnabledPropertyChanged(bool oldValue, bool newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | bool | The old value. |
| newValue | bool | The new value. |
OnIsVirtualSpaceAtLineEndEnabledPropertyChanged(bool, bool)
Occurs when the IsVirtualSpaceAtLineEndEnabled property is changed.
protected virtual void OnIsVirtualSpaceAtLineEndEnabledPropertyChanged(bool oldValue, bool newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | bool | The old value. |
| newValue | bool | The new value. |
OnIsWordWrapEnabledPropertyChanged(bool, bool)
Occurs when the IsWordWrapEnabled property is changed.
protected virtual void OnIsWordWrapEnabledPropertyChanged(bool oldValue, bool newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | bool | The old value. |
| newValue | bool | The new value. |
OnKeyDown(KeyEventArgs)
Raises the KeyDown event.
protected override void OnKeyDown(KeyEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | KeyEventArgs | A KeyEventArgs that contains the event data. |
OnKeyPress(KeyPressEventArgs)
Raises the KeyPress event.
protected override void OnKeyPress(KeyPressEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | KeyPressEventArgs | A KeyPressEventArgs that contains the event data. |
OnKeyUp(KeyEventArgs)
Raises the KeyUp event.
protected override void OnKeyUp(KeyEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | KeyEventArgs | A KeyEventArgs that contains the event data. |
OnLostFocus(EventArgs)
Raises the LostFocus event.
protected override void OnLostFocus(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | An EventArgs that contains the event data. |
OnMacroRecordingStateChanged(EventArgs)
Occurs when the macro recording state changes.
protected virtual void OnMacroRecordingStateChanged(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
OnMenuRequested(SyntaxEditorMenuEventArgs)
Occurs when a menu is requested, which will be opened in the editor.
protected virtual void OnMenuRequested(SyntaxEditorMenuEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | SyntaxEditorMenuEventArgs | The event data. |
OnOverlayPaneClosed(OverlayPaneEventArgs)
Occurs after an overlay pane is closed.
protected virtual void OnOverlayPaneClosed(OverlayPaneEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | OverlayPaneEventArgs | The event data. |
OnOverlayPaneOpened(OverlayPaneEventArgs)
Occurs after an overlay pane is opened.
protected virtual void OnOverlayPaneOpened(OverlayPaneEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | OverlayPaneEventArgs | The event data. |
OnPasteDragDrop(PasteDragDropEventArgs)
Occurs when a paste or drag/drop operation occurs over the control, allowing for customization of the text to be inserted.
protected virtual void OnPasteDragDrop(PasteDragDropEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | PasteDragDropEventArgs | The event data. |
Remarks
This event allows for any sort of IDataStore (such as a file) to be handled when pasted or drag/dropped on the editor and representative text inserted.
OnPrint(PaintEventArgs)
Raises the Paint event.
protected override void OnPrint(PaintEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | PaintEventArgs | A PaintEventArgs that contains the event data. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | The |
OnPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event.
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | PropertyChangedEventArgs | The event data. |
OnPropertyChanged(string?)
Raises the PropertyChanged event.
protected void OnPropertyChanged(string? propertyName = null)
| Parameter | Type | Description |
|---|---|---|
| propertyName | string | (Optional) The name of the property that changed. |
OnResize(EventArgs)
Raises the Resize event.
protected override void OnResize(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | An EventArgs that contains the event data. |
OnTextChanged(EventArgs)
Raises the TextChanged event.
protected override void OnTextChanged(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | An EventArgs that contains the event data. |
OnUserInterfaceUpdate(EventArgs)
Occurs after a brief delay following any document text, parse data, or view selection update, allowing consumers to update the user interface during an idle period.
protected virtual void OnUserInterfaceUpdate(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
OnViewActionExecuting(EditActionEventArgs)
Occurs before an IEditAction is executed in an IEditorView.
protected virtual void OnViewActionExecuting(EditActionEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EditActionEventArgs | The event data. |
OnViewClosed(TextViewEventArgs)
Occurs when an ITextView is closed.
protected virtual void OnViewClosed(TextViewEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | TextViewEventArgs | The event data. |
OnViewIsIncrementalSearchActiveChanged(TextViewEventArgs)
Occurs when the incremental search mode of an ITextView is activated or deactivated.
protected virtual void OnViewIsIncrementalSearchActiveChanged(TextViewEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | TextViewEventArgs | The event data. |
OnViewOpened(TextViewEventArgs)
Occurs when an ITextView is opened.
protected virtual void OnViewOpened(TextViewEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | TextViewEventArgs | The event data. |
OnViewSearch(EditorViewSearchEventArgs)
Occurs when a IEditorView search operation is performed.
protected virtual void OnViewSearch(EditorViewSearchEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EditorViewSearchEventArgs | The event data. |
OnViewSelectionChanged(EditorViewSelectionEventArgs)
Occurs when a IEditorView selection has changed.
protected virtual void OnViewSelectionChanged(EditorViewSelectionEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EditorViewSelectionEventArgs | The event data. |
OnViewSplitAdded(EventArgs)
Occurs when an IEditorView split is added.
protected virtual void OnViewSplitAdded(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
OnViewSplitMoved(EventArgs)
Occurs when an IEditorView split is moved.
protected virtual void OnViewSplitMoved(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
OnViewSplitRemoved(EventArgs)
Occurs when an IEditorView split is removed.
protected virtual void OnViewSplitRemoved(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
OnVisibleChanged(EventArgs)
Raises the VisibleChanged event.
protected override void OnVisibleChanged(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | An EventArgs object that contains the event data. |
OnWordWrapModeChanged(EventArgs)
Occurs after the WordWrapMode property is changed.
protected virtual void OnWordWrapModeChanged(EventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
OnWordWrapModePropertyChanged(WordWrapMode, WordWrapMode)
Occurs when the WordWrapMode property is changed.
protected virtual void OnWordWrapModePropertyChanged(WordWrapMode oldValue, WordWrapMode newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | WordWrapMode | The old value. |
| newValue | WordWrapMode | The new value. |
ProcessCmdKey(ref Message, Keys)
Processes a command key.
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
| Parameter | Type | Description |
|---|---|---|
| msg | Message | A Message, passed by reference, that represents the window message to process. |
| keyData | Keys | One of the Keys values that represents the key to process. |
Returns
- bool:
trueif the character was processed by the control; otherwise,false.
ResetBorderColor()
Resets the BorderColor property to its default value.
public void ResetBorderColor()
ResetFont()
Resets the Font property to its default value.
public override void ResetFont()
ResetInputBindings()
Resets the input bindings to their default values.
public virtual void ResetInputBindings()
ResetScrollBarAccelerationInterval()
Resets the ScrollBarAccelerationInterval property to its default value.
public void ResetScrollBarAccelerationInterval()
ResetViews()
Resets the splits and creates an initial view.
public void ResetViews()
ResumeCaretBlinking()
Resumes the blinking of the caret(s).
public void ResumeCaretBlinking()
SetProperty<T>(ref T, T, string?)
Called from a property setter to change the backing field's value and raise PropertyChanged notification events if the new value is not equal to the current value.
protected bool SetProperty<T>(ref T field, T newValue, string? propertyName = null)
- Type Parameters:
-
T-The type of the property that changed.
| Parameter | Type | Description |
|---|---|---|
| field | T | The backing field that holds the property's value, which may be updated. |
| newValue | T | The new property value. |
| propertyName | string | (Optional) The name of the property that changed. |
Returns
- bool:
trueif the property was changed; otherwise,false.
ShouldSerializeBorderColor()
Indicates whether the BorderColor property should be persisted.
public bool ShouldSerializeBorderColor()
Returns
- bool:
trueif the property value has changed from its default; otherwise,false.
ShouldSerializeFont()
Indicates whether the Font property should be persisted.
public bool ShouldSerializeFont()
Returns
- bool:
trueif the property value has changed from its default; otherwise,false.
ShouldSerializeScrollBarAccelerationInterval()
Indicates whether the ScrollBarAccelerationInterval property should be persisted.
public bool ShouldSerializeScrollBarAccelerationInterval()
Returns
- bool:
trueif the property value has changed from its default; otherwise,false.
ShowPrintDialog()
Displays the print dialog.
public bool ShowPrintDialog()
Returns
- bool:
trueif the dialog was displayed successfully and printing occurred; otherwise,false.
ShowPrintPreviewDialog()
Displays the print preview dialog.
public bool ShowPrintPreviewDialog()
Returns
- bool:
trueif the dialog was displayed successfully; otherwise,false.
SuspendCaretBlinking(bool)
Suspends the blinking of the caret(s).
public void SuspendCaretBlinking(bool show)
| Parameter | Type | Description |
|---|---|---|
| show | bool | Whether to display the caret(s). |
WndProc(ref Message)
Processes Windows messages.
protected override void WndProc(ref Message m)
| Parameter | Type | Description |
|---|---|---|
| m | Message | The Windows Message to process. |
Events
ActiveViewChanged
Occurs after the ActiveView property is changed.
public event EventHandler<EditorViewChangedEventArgs>? ActiveViewChanged
Event Type
CutCopyDrag
Occurs before text is cut or copied to the clipboard, and also before a drag occurs.
public event EventHandler<CutCopyDragEventArgs>? CutCopyDrag
Event Type
DocumentChanged
Occurs after the Document property is changed.
public event EventHandler<EditorDocumentChangedEventArgs>? DocumentChanged
Event Type
DocumentIsModifiedChanged
Occurs after the current document's IsModified property value has changed.
DocumentIsReadOnlyChanged
Occurs after the current document's IsReadOnly property value has changed.
DocumentLanguageChanged
Occurs when the current document's Language property value has changed.
public event EventHandler<EditorDocumentLanguageChangedEventArgs>? DocumentLanguageChanged
Event Type
DocumentParseDataChanged
Occurs after the current document's ParseData property value has changed.
DocumentTextChanged
Occurs after a text change occurs to the Document.
public event EventHandler<EditorSnapshotChangedEventArgs>? DocumentTextChanged
Event Type
DocumentTextChanging
Occurs before a text change occurs to the Document.
public event EventHandler<EditorSnapshotChangingEventArgs>? DocumentTextChanging
Event Type
IsOverwriteModeActiveChanged
Occurs when the IsOverwriteModeActive property value changes.
MacroRecordingStateChanged
Occurs when the macro recording state changes.
MenuRequested
Occurs when a menu is requested, which will be opened in the editor.
public event EventHandler<SyntaxEditorMenuEventArgs>? MenuRequested
Event Type
OverlayPaneClosed
Occurs after an overlay pane is closed.
public event EventHandler<OverlayPaneEventArgs>? OverlayPaneClosed
Event Type
OverlayPaneOpened
Occurs after an overlay pane is opened.
public event EventHandler<OverlayPaneEventArgs>? OverlayPaneOpened
Event Type
PasteDragDrop
Occurs when a paste or drag/drop operation occurs over the control, allowing for customization of the text to be inserted.
public event EventHandler<PasteDragDropEventArgs>? PasteDragDrop
Event Type
Remarks
This event allows for any sort of IDataStore (such as a file) to be handled when pasted or drag/dropped on the editor and representative text inserted.
PropertyChanged
Occurs when a property value changes.
UserInterfaceUpdate
Occurs after a brief delay following any document text, parse data, or view selection update, allowing consumers to update the user interface during an idle period.
ViewActionExecuting
Occurs before an IEditAction is executed in an IEditorView.
public event EventHandler<EditActionEventArgs>? ViewActionExecuting
Event Type
ViewClosed
Occurs when an ITextView is closed.
ViewIsIncrementalSearchActiveChanged
Occurs when the incremental search mode of an ITextView is activated or deactivated.
public event EventHandler<TextViewEventArgs>? ViewIsIncrementalSearchActiveChanged
Event Type
ViewOpened
Occurs when an ITextView is opened.
ViewSearch
Occurs when a IEditorView search operation is performed.
public event EventHandler<EditorViewSearchEventArgs>? ViewSearch
Event Type
ViewSelectionChanged
Occurs when a IEditorView selection has changed.
public event EventHandler<EditorViewSelectionEventArgs>? ViewSelectionChanged
Event Type
ViewSplitAdded
Occurs when an IEditorView split is added.
ViewSplitMoved
Occurs when an IEditorView split is moved.
ViewSplitRemoved
Occurs when an IEditorView split is removed.
WordWrapModeChanged
Occurs after the WordWrapMode property is changed.
Inherited Members
- UIControl.AddPendingGraphicsInversion(Rectangle)
- UIControl.AddPendingScrollOperation(Rectangle, Orientation, int)
- UIControl.AddPendingScrollOperation(Rectangle, int, int)
- UIControl.AddToInvalidatedRegion()
- UIControl.AddToInvalidatedRegion(Rectangle)
- UIControl.Arrange(Rectangle)
- UIControl.ContainsLocation(Point)
- UIControl.GetCursor(Point)
- UIControl.HitTest(PointHitTestParameters, Func<IUIElement, PointHitTestParameters, bool>)
- UIControl.HitTestRecursive(PointHitTestParameters, Func<IUIElement, PointHitTestParameters, bool>)
- UIControl.Invalidate(InvalidationLevels, InvalidationTypes)
- UIControl.InvalidateArrange()
- UIControl.InvalidateMeasure()
- UIControl.Measure(Graphics, Size)
- UIControl.OnClick(EventArgs)
- UIControl.OnDoubleClick(EventArgs)
- UIControl.OnDpiChangedAfterParent(EventArgs)
- UIControl.OnHandleCreated(EventArgs)
- UIControl.OnLayout(LayoutEventArgs)
- UIControl.OnLocationChanged(EventArgs)
- UIControl.OnMouseCaptureChanged(EventArgs)
- UIControl.OnMouseDown(MouseEventArgs)
- UIControl.OnMouseEnter(EventArgs)
- UIControl.OnMouseHover(EventArgs)
- UIControl.OnMouseLeave(EventArgs)
- UIControl.OnMouseMove(MouseEventArgs)
- UIControl.OnMouseUp(MouseEventArgs)
- UIControl.OnMouseWheel(MouseEventArgs)
- UIControl.OnPaint(PaintEventArgs)
- UIControl.OnPaintBackground(PaintEventArgs)
- UIControl.OnParentChanged()
- UIControl.OnParentChanged(EventArgs)
- UIControl.OnRender(PaintEventArgs)
- UIControl.OnRenderChildElements(PaintEventArgs)
- UIControl.OnRightToLeftChanged(EventArgs)
- UIControl.Render(PaintEventArgs)
- UIControl.ResetDoubleBufferCanvas(bool)
- UIControl.ResumePainting()
- UIControl.SuspendPainting()
- UIControl.TransformToAncestor(IUIElement)
- UIControl.TransformToDescendant(IUIElement)
- UIControl.UpdateCursor()
- UIControl.UpdateCursor(Point)
- UIControl.UpdateLayout()
- UIControl.ActualHeight
- UIControl.ActualWidth
- UIControl.BackgroundImage
- UIControl.CaptureMouseWhenPressed
- UIControl.ClipBounds
- UIControl.DesiredSize
- UIControl.DpiScaleFactor
- UIControl.IsArrangeValid
- UIControl.IsMeasureValid
- UIControl.IsPaintValid
- UIControl.IsRightToLeft
- UIControl.LastMouseUpButton
- UIControl.PaintingSuspended
- UIControl.UseControlGraphicsForMeasure
- UIControl.UseExtendedDoubleBuffering
- MarshalByRefObject.GetLifetimeService()
- MarshalByRefObject.InitializeLifetimeService()
- MarshalByRefObject.MemberwiseClone(bool)
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()