New to Telerik UI for WPFStart a free 30-day trial

Class RadSyntaxEditor. Implements the ITextDocumentEditor

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.SyntaxEditor.dll

Syntax:

C#
[TelerikToolboxCategory("Input")]
public class RadSyntaxEditor : Control, ITextDocumentEditor, IDisposable

Inheritance: objectRadSyntaxEditor

Implements: IDisposableITextDocumentEditor

Constructors

Initializes a new instance of the RadSyntaxEditor class.

C#
public RadSyntaxEditor()

Fields

AcceptsReturnProperty

DependencyProperty

Registers the AcceptsReturn property.

C#
public static readonly DependencyProperty AcceptsReturnProperty

AllowScalingProperty

DependencyProperty

Registers the AllowScaling dependency property.

C#
public static readonly DependencyProperty AllowScalingProperty

Registers the AutoScrollToCaretOnTextChange dependency property.

C#
public static readonly DependencyProperty AutoScrollToCaretOnTextChangeProperty

CaretBrushProperty

DependencyProperty

Registers the CaretBrush dependency property.

C#
public static readonly DependencyProperty CaretBrushProperty

EditorFontFamilyProperty

DependencyProperty

Registers the EditorFontFamily dependency property.

C#
public static readonly DependencyProperty EditorFontFamilyProperty

EditorFontSizeProperty

DependencyProperty

Registers the EditorFontSize dependency property.

C#
public static readonly DependencyProperty EditorFontSizeProperty

Registers the HorizontalScrollBarVisibility dependency property.

C#
public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty

IndentProviderProperty

DependencyProperty

Registers the IndentProvider property.

C#
public static readonly DependencyProperty IndentProviderProperty

InsertModeProperty

DependencyProperty

Registers the InsertMode property.

C#
public static readonly DependencyProperty InsertModeProperty

IsCaretVisibleProperty

DependencyProperty

Registers the IsCaretVisible dependency property.

C#
public static readonly DependencyProperty IsCaretVisibleProperty

IsReadOnlyProperty

DependencyProperty

Registers the IsReadOnly property.

C#
public static readonly DependencyProperty IsReadOnlyProperty

IsSelectionEnabledProperty

DependencyProperty

Registers the IsSelectionEnabled dependency property.

C#
public static readonly DependencyProperty IsSelectionEnabledProperty

IsWordWrapEnabledProperty

DependencyProperty

Registers the IsWordWrapEnabled dependency property.

C#
public static readonly DependencyProperty IsWordWrapEnabledProperty

PaletteProperty

DependencyProperty

Registers the Palette dependency property.

C#
public static readonly DependencyProperty PaletteProperty

ScaleFactorProperty

DependencyProperty

Registers the ScaleFactor dependency property.

C#
public static readonly DependencyProperty ScaleFactorProperty

SearchPanelWidthProperty

DependencyProperty

Registers the SearchPanelWidth dependency property.

C#
public static readonly DependencyProperty SearchPanelWidthProperty

SelectionFillProperty

DependencyProperty

Registers the SelectionFill dependency property.

C#
public static readonly DependencyProperty SelectionFillProperty

SelectionStrokeProperty

DependencyProperty

Registers the SelectionStroke dependency property.

C#
public static readonly DependencyProperty SelectionStrokeProperty

Registers the ShouldTaggersProcessEntireLines dependency property.

C#
public static readonly DependencyProperty ShouldTaggersProcessEntireLinesProperty

Registers the VerticalScrollBarVisibility dependency property.

C#
public static readonly DependencyProperty VerticalScrollBarVisibilityProperty

Properties

Gets or sets a value indicating whether [accepts return].

C#
public bool AcceptsReturn { get; set; }
Property Value:

true if [accepts return]; otherwise, false.

Gets or sets a value indicating whether [allow scaling].

C#
public bool AllowScaling { get; set; }
Property Value:

true if [allow scaling]; otherwise, false.

Gets or sets a value indicating whether the document is automatically scrolled to the CaretPosition when the text inside the document is changed.

C#
public bool AutoScrollToCaretOnTextChange { get; set; }

Gets or sets the brush of the active caret in the editor.

C#
public Brush CaretBrush { get; set; }

Gets or sets the caret display mode.

C#
public CaretDisplayMode CaretDisplayMode { get; set; }
Property Value:

The caret display mode.

Gets the caret position.

C#
public CaretPosition CaretPosition { get; }
Property Value:

The caret position.

Gets the commands.

C#
public SyntaxEditorCommands Commands { get; }
Property Value:

The commands.

Gets or sets the current insert mode.

C#
public string CurrentInsertMode { get; set; }
Property Value:

The current insert mode.

Gets or sets the text document.

C#
public TextDocument Document { get; set; }
Property Value:

The document.

Implements: ITextDocumentEditor.Document

Gets or sets a value indicating the font family of the text editor.

C#
public FontFamily EditorFontFamily { get; set; }

Gets or sets a value indicating the font size of the text editor.

C#
public double EditorFontSize { get; set; }

Gets the editor presenter.

C#
public SyntaxEditorPresenter EditorPresenter { get; }
Property Value:

The editor presenter.

Gets the folding manager.

C#
public FoldingManager FoldingManager { get; }
Property Value:

The folding manager.

Gets the horizontal scroll bar.

C#
public ScrollBar HorizontalScrollBar { get; }
Property Value:

The horizontal scroll bar.

Gets or sets the horizontal scroll bar visibility.

C#
public ScrollBarVisibility HorizontalScrollBarVisibility { get; set; }
Property Value:

The horizontal scroll bar visibility.

Gets or sets the indent provider.

C#
public ISmartIndentProvider IndentProvider { get; set; }
Property Value:

The indent provider.

Gets the intelli prompts.

C#
public SyntaxEditorIntelliPrompts IntelliPrompts { get; }
Property Value:

The intelli prompts.

Gets or sets a value indicating whether this instance is caret visible.

C#
public bool IsCaretVisible { get; set; }
Property Value:

true if this instance is caret visible; otherwise, false.

Gets a value indicating whether this instance is in undo group.

C#
public bool IsInUndoGroup { get; }
Property Value:

true if this instance is in undo group; otherwise, false.

Gets or sets a value indicating whether this instance is overwrite mode enabled.

C#
public bool IsOverwriteModeEnabled { get; set; }
Property Value:

true if this instance is overwrite mode enabled; otherwise, false.

Gets or sets a value indicating whether this instance is read only.

C#
public bool IsReadOnly { get; set; }
Property Value:

true if this instance is read only; otherwise, false.

Gets or sets a value indicating whether this instance is selection enabled.

C#
public bool IsSelectionEnabled { get; set; }
Property Value:

true if this instance is selection enabled; otherwise, false.

Gets or sets a value indicating whether the word wrapping mode is enabled.

C#
public bool IsWordWrapEnabled { get; set; }

Gets the key bindings.

C#
public KeyBindingUtilities KeyBindings { get; }
Property Value:

The key bindings.

Gets the margins.

C#
public SyntaxEditorMargins Margins { get; }
Property Value:

The margins.

Gets or sets the palette of syntax elements' colors used for this RadSyntaxEditor instance.

C#
public SyntaxEditorPalette Palette { get; set; }

Gets the properties.

C#
public SyntaxEditorProperties Properties { get; }
Property Value:

The properties.

Gets or sets the scale factor.

C#
public double ScaleFactor { get; set; }
Property Value:

The scale factor.

Gets or sets a value indicating the width of the search panel.

C#
public double SearchPanelWidth { get; set; }

Gets the selection.

C#
public Selection Selection { get; }
Property Value:

The selection.

Gets or sets the selection fill.

C#
public Brush SelectionFill { get; set; }
Property Value:

The selection fill.

Gets or sets the selection stroke.

C#
public Brush SelectionStroke { get; set; }
Property Value:

The selection stroke.

Gets or sets whether taggers are given the entire lines of text (true) or only the currently visible in the viewport part of the text (false) for processing. Default value is false.

C#
public bool ShouldTaggersProcessEntireLines { get; set; }

Gets the taggers registry.

C#
public TaggersRegistry TaggersRegistry { get; }
Property Value:

The taggers registry.

Gets the text format definitions.

C#
public TextFormatDefinitionStack TextFormatDefinitions { get; }
Property Value:

The text format definitions.

Gets or sets a value indicating the touch drag area around a touch selection marker.

C#
public double TouchMarkerDragDistance { get; set; }

Gets or sets the UI layers builder.

C#
public UILayersBuilder UILayersBuilder { get; set; }
Property Value:

The UI layers builder.

Gets or sets a value indicating whether [use monospaced font optimization].

C#
public bool UseMonospacedFontOptimization { get; set; }
Property Value:

true if [use monospaced font optimization]; otherwise, false.

Gets or sets a value indicating whether [use shift key in selection].

C#
public bool UseShiftKeyInSelection { get; set; }
Property Value:

true if [use shift key in selection]; otherwise, false.

Gets the vertical scroll bar.

C#
public ScrollBar VerticalScrollBar { get; }
Property Value:

The vertical scroll bar.

VerticalScrollBarVisibility

ScrollBarVisibility

Gets or sets the vertical scroll bar visibility.

C#
public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
Property Value:

The vertical scroll bar visibility.

Gets the viewport.

C#
public Rect Viewport { get; }
Property Value:

The viewport.

Methods

Backspaces this instance.

C#
public void Backspace()

Begins the undo group.

C#
public void BeginUndoGroup()

Cancels the undo group.

C#
public void CancelUndoGroup()

Closes the find dialog.

C#
public void CloseFindDialog()

Completes the code.

C#
public void CompleteCode()

Copies this instance.

C#
public void Copy()

Creates the state of the code editor history.

C#
public SyntaxEditorHistoryState CreateSyntaxEditorHistoryState()
Returns:

SyntaxEditorHistoryState

SyntaxEditorHistoryState.

Cuts this instance.

C#
public void Cut()

Decreases the line indent.

C#
public void DecreaseLineIndent()

Deletes this instance.

C#
public void Delete()

Deletes the full line.

C#
public void DeleteFullLine()

Deletes the word to left.

C#
public void DeleteWordToLeft()

Deletes the word to right.

C#
public void DeleteWordToRight()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Releases unmanaged and - optionally - managed resources.

C#
protected virtual void Dispose(bool disposing)
Parameters:disposingbool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Ends the undo group.

C#
public void EndUndoGroup()

Finds the specified search text.

C#
public Span? Find(string searchText, int startIndex, bool matchCase, bool useRegularExpression, bool matchWord)
Parameters:searchTextstring

The search text or regex pattern.

startIndexint

The start index to search in the document.

matchCasebool

Indicates whether the search is case-sensitive.

useRegularExpressionbool

If set to true indicates that the search text will be used as regular expression search pattern.

matchWordbool

If set to true, indicates that the search finds whole words only.

Returns:

Span?

Nullable Span which, when not null, indicates the found text.

Finds the specified search text.

C#
public Span? Find(string searchText, int startIndex, bool matchCase, bool useRegularExpression)
Parameters:searchTextstring

The search text or regex pattern.

startIndexint

The start index to search in the document.

matchCasebool

Indicates whether the search is case-sensitive.

useRegularExpressionbool

If set to true indicates that the search text will be used as regular expression search pattern.

Returns:

Span?

Nullable Span which, when not null, indicates the found text.

Finds the specified search text.

C#
public Span? Find(string searchText, int startIndex, bool useRegularExpression)
Parameters:searchTextstring

The search text or regex pattern.

startIndexint

The start index to search in the document.

useRegularExpressionbool

If set to true indicates that the search text will be used as regular expression search pattern.

Returns:

Span?

Nullable Span which, when not null, indicates the found text.

Finds the specified search text.

C#
public Span? Find(string searchText, int startIndex)
Parameters:searchTextstring

The search text.

startIndexint

The start index.

Returns:

Span?

System.Nullable<Span>.

Finds all spans with the given searchText or regex pattern.

C#
public IEnumerable<Span> FindAll(string searchText, bool matchCase, bool useRegularExpression, bool matchWord)
Parameters:searchTextstring

The search text or regex pattern.

matchCasebool

Indicates whether the search is case-sensitive.

useRegularExpressionbool

If set to true indicates that the search text will be used as regular expression search pattern.

matchWordbool

If set to true, indicates that the search finds whole words only.

Returns:

IEnumerable<Span>

List of all matched spans.

Finds all spans with the given searchText or regex pattern.

C#
public IEnumerable<Span> FindAll(string searchText, bool matchCase, bool useRegularExpression)
Parameters:searchTextstring

The search text or regex pattern.

matchCasebool

Indicates whether the search is case-sensitive.

useRegularExpressionbool

If set to true indicates that the search text will be used as regular expression search pattern.

Returns:

IEnumerable<Span>

List of all matched spans.

Finds all spans with the given searchText or regex pattern.

C#
public IEnumerable<Span> FindAll(string searchText, bool useRegularExpression)
Parameters:searchTextstring

The search text or regex pattern.

useRegularExpressionbool

If set to true indicates that the search text will be used as regular expression search pattern.

Returns:

IEnumerable<Span>

List of all matched spans.

Finds all spans with the given searchText.

C#
public IEnumerable<Span> FindAll(string searchText)
Parameters:searchTextstring

The search text.

Returns:

IEnumerable<Span>

List of all matched spans.

Finds the specified search text before the current index.

C#
public Span? FindPrevious(string searchText, int startIndex, bool matchCase, bool useRegularExpression, bool matchWord)
Parameters:searchTextstring

The search text or regex pattern.

startIndexint

The start index to search in the document.

matchCasebool

Indicates whether the search is case-sensitive.

useRegularExpressionbool

If set to true indicates that the search text will be used as regular expression search pattern.

matchWordbool

If set to true, indicates that the search finds whole words only.

Returns:

Span?

Nullable Span which, when not null, indicates the found text.

Finds the specified search text before the current index.

C#
public Span? FindPrevious(string searchText, int startIndex, bool matchCase)
Parameters:searchTextstring

The search text or regex pattern.

startIndexint

The start index to search in the document.

matchCasebool

Indicates whether the search is case-sensitive.

Returns:

Span?

Nullable Span which, when not null, indicates the found text.

Gets the line bounding rectangle by line number.

C#
public Rect GetLineBoundingRectangleByLineNumber(int lineNumber, bool cutToBaseline = false)
Parameters:lineNumberintcutToBaselineboolReturns:

Rect

Gets the line part bounding rectangle.

C#
public Rect GetLinePartBoundingRectangle(Span span, bool cutToBaseline = false)
Parameters:spanSpancutToBaselineboolReturns:

Rect

Gets the point from position.

C#
public Point GetPointFromPosition(CaretPosition position)
Parameters:positionCaretPosition

The position.

Returns:

Point

Point.

Gets the position from point.

C#
public CaretPosition GetPositionFromPoint(Point point)
Parameters:pointPoint

The point.

Returns:

CaretPosition

CaretPosition.

Navigates to the line by number.

C#
public void GotoLine(int lineNumber, bool focusSyntaxEditor = false)
Parameters:lineNumberint

The line number.

focusSyntaxEditorbool

Specifies if the SyntaxEditor should be focused after navigating to the given line.

Tries to highlight all span matches via all registered TextSearchHighlightTaggers.

C#
public void HighlightAllMatches(string searchText)
Parameters:searchTextstring

Increases the line indent.

C#
public void IncreaseLineIndent()

Indents this instance.

C#
public void Indent()

Called when touch manager methods are being initialized for the SyntaxEditorPresenter.

C#
protected virtual void InitializeTouch(SyntaxEditorPresenter presenter)
Parameters:presenterSyntaxEditorPresenter

Inserts the specified text.

C#
public void Insert(string text)
Parameters:textstring

The text.

Inserts the new line.

C#
public void InsertNewLine()

Inserts the tab.

C#
public void InsertTab()

Invalidates the editor layout.

C#
public void InvalidateEditorLayout()

Invalidates the editor layout.

C#
public void InvalidateEditorLayout(bool force)
Parameters:forcebool

Called when control is measured.

C#
protected override Size MeasureOverride(Size constraint)
Parameters:constraintSizeReturns:

Size

Moves the current line to bottom.

C#
public void MoveCurrentLineToBottom()

Moves the current line to top.

C#
public void MoveCurrentLineToTop()

Navigates to the next matched text in the editor.

C#
public void NavigateNextMatch(string searchText)
Parameters:searchTextstring

The search text.

Navigates to the next matched text in the editor.

C#
public void NavigatePreviousMatch(string searchText)
Parameters:searchTextstring

The search text.

When overridden in a derived class, is invoked whenever application code or internal processes call .

C#
public override void OnApplyTemplate()

Handles the event.

C#
protected virtual void OnCommandError(CommandErrorEventArgs args)
Parameters:argsCommandErrorEventArgs

The CommandErrorEventArgs instance containing the event data.

Handles the event.

C#
protected virtual void OnCommandExecuted(CommandExecutedEventArgs e)
Parameters:eCommandExecutedEventArgs

The CommandExecutedEventArgs instance containing the event data.

Handles the event.

C#
protected virtual void OnCommandExecuting(CommandExecutingEventArgs args)
Parameters:argsCommandExecutingEventArgs

The CommandExecutingEventArgs instance containing the event data.

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

Called when [document changed].

C#
protected virtual void OnDocumentChanged()

Called when [document changing].

C#
protected virtual void OnDocumentChanging()

Handles the event.

C#
protected virtual void OnDocumentContentChanged(TextContentChangedEventArgs args)
Parameters:argsTextContentChangedEventArgs

The TextContentChangedEventArgs instance containing the event data.

Handles the event.

C#
protected virtual void OnDocumentContentChanging(TextContentChangingEventArgs args)
Parameters:argsTextContentChangingEventArgs

The TextContentChangingEventArgs instance containing the event data.

Invoked whenever an unhandled event reaches this element in its route.

C#
protected override void OnGotFocus(RoutedEventArgs e)
Parameters:eRoutedEventArgs

The RoutedEventArgs that contains the event data.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Handles the event.

C#
protected virtual void OnIsReadOnlyChanged(EventArgs e)
Parameters:eEventArgs

The EventArgs instance containing the event data.

Called when [layout properties changed].

C#
protected virtual void OnLayoutPropertiesChanged()

Called when mouse wheel zoom is requested.

C#
protected virtual bool OnMouseWheelZoom(double delta)
Parameters:deltadouble

The mouse wheel delta.

Returns:

bool

Handles the event.

C#
protected virtual void OnPreviewSyntaxEditorInput(PreviewSyntaxEditorInputEventArgs args)
Parameters:argsPreviewSyntaxEditorInputEventArgs

The PreviewSyntaxEditorInputEventArgs instance containing the event data.

Handles the event.

C#
protected virtual void OnPreviewSyntaxEditorKeyDown(PreviewSyntaxEditorKeyEventArgs args)
Parameters:argsPreviewSyntaxEditorKeyEventArgs

The PreviewSyntaxEditorKeyEventArgs instance containing the event data.

Handles the event.

C#
protected virtual void OnPreviewSyntaxEditorKeyUp(PreviewSyntaxEditorKeyEventArgs args)
Parameters:argsPreviewSyntaxEditorKeyEventArgs

The PreviewSyntaxEditorKeyEventArgs instance containing the event data.

Handles the event.

C#
protected virtual void OnPreviewSyntaxEditorMouseLeftButtonDown(PreviewSyntaxEditorMouseButtonEventArgs args)
Parameters:argsPreviewSyntaxEditorMouseButtonEventArgs

The PreviewSyntaxEditorMouseButtonEventArgs instance containing the event data.

Handles the event.

C#
protected virtual void OnPreviewSyntaxEditorMouseRightButtonDown(PreviewSyntaxEditorMouseButtonEventArgs args)
Parameters:argsPreviewSyntaxEditorMouseButtonEventArgs

The PreviewSyntaxEditorMouseButtonEventArgs instance containing the event data.

Occurs when property changes.

C#
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
Parameters:eDependencyPropertyChangedEventArgs

Called when [scale factor changed].

C#
protected virtual void OnScaleFactorChanged()

Called when search panel is closed.

C#
protected virtual void OnSearchPanelClosed()

Called when search panel is opened.

C#
protected virtual void OnSearchPanelOpened()

Called when the selection changes.

C#
protected virtual void OnSelectionChanged()

Handles the event.

C#
protected virtual void OnTextSearched(TextSearchedEventArgs args)
Parameters:argsTextSearchedEventArgs

The TextSearchedEventArgs instance containing the event data.

Called when [viewport changed].

C#
protected virtual void OnViewportChanged()

Opens the find dialog with the specified searchText in the search textbox.

C#
public void OpenFindDialog(string searchText)
Parameters:searchTextstring

The search text.

Pages down.

C#
public void PageDown()

Pages up.

C#
public void PageUp()

Pastes this instance.

C#
public void Paste()

Redoes this instance.

C#
public bool Redo()
Returns:

bool

System.Boolean.

Replaces all matches.

C#
public int ReplaceAllMatches(string searchText, string replaceText, bool matchCase, bool useRegularExpression, bool matchWord)
Parameters:searchTextstring

The search text.

replaceTextstring

The replace text.

matchCasebool

The match case.

useRegularExpressionbool

The use regular expression.

matchWordbool

The match word.

Returns:

int

System.Int32.

Replaces all matches.

C#
public int ReplaceAllMatches(string searchText, string replaceText, bool matchCase, bool useRegularExpression)
Parameters:searchTextstring

The search text.

replaceTextstring

The replace text.

matchCasebool

The match case.

useRegularExpressionbool

The use regular expression.

Returns:

int

System.Int32.

Replaces the next match.

C#
public bool ReplaceNextMatch(string searchText, int startIndex, string replaceText, bool matchCase, bool useRegularExpression)
Parameters:searchTextstring

The search text.

startIndexint

The start index.

replaceTextstring

The replace text.

matchCasebool

The match case.

useRegularExpressionbool

The use regular expression.

Returns:

bool

System.Boolean.

Restores the state of the code editor history.

C#
public void RestoreSyntaxEditorHistoryState(SyntaxEditorHistoryState historyState)
Parameters:historyStateSyntaxEditorHistoryState

State of the history.

Selects all.

C#
public void SelectAll()

Toggles the insert mode.

C#
public void ToggleInsertMode()

Undoes this instance.

C#
public bool Undo()
Returns:

bool

Unindents this instance.

C#
public void Unindent()

Updates the selection.

C#
public void UpdateSelection()

Zooms in.

C#
public void ZoomIn(double zoomFactor = 1.1)
Parameters:zoomFactordouble

The zoom increase factor. Should be a number greater than 1. Default value is 1.1.

Zooms out.

C#
public void ZoomOut(double zoomFactor = 0.91)
Parameters:zoomFactordouble

The zoom decrease factor. Should be a number less than 1. Default value is 0.91.

Zooms to particular zoom level.

C#
public void ZoomTo(double zoomLevel)
Parameters:zoomLeveldouble

The zoom level.

Exceptions:

ArgumentOutOfRangeException

ZoomLevel must be non negative.

Events

Occurs when command error is produced.

C#
public event EventHandler<CommandErrorEventArgs> CommandError

Occurs when command is executed.

C#
public event EventHandler<CommandExecutedEventArgs> CommandExecuted

Occurs when command is executing.

C#
public event EventHandler<CommandExecutingEventArgs> CommandExecuting

Occurs when document has been changed.

C#
public event EventHandler DocumentChanged

Implements: ITextDocumentEditor.DocumentChanged

Occurs when document is being changed.

C#
public event EventHandler DocumentChanging

Implements: ITextDocumentEditor.DocumentChanging

DocumentContentChanged event.

C#
public event EventHandler<TextContentChangedEventArgs> DocumentContentChanged

Implements: ITextDocumentEditor.DocumentContentChanged

DocumentContentChanging event.

C#
public event EventHandler<TextContentChangingEventArgs> DocumentContentChanging

Occurs when the readonly state has changed.

C#
public event EventHandler IsReadOnlyChanged

Occurs when layout properties are changed.

C#
public event EventHandler LayoutPropertiesChanged

Occurs when text input in the syntax editor is starting.

C#
public event EventHandler<PreviewSyntaxEditorInputEventArgs> PreviewSyntaxEditorInput

Occurs when key down is pressed.

C#
public event EventHandler<PreviewSyntaxEditorKeyEventArgs> PreviewSyntaxEditorKeyDown

Occurs when a key is released.

C#
public event EventHandler<PreviewSyntaxEditorKeyEventArgs> PreviewSyntaxEditorKeyUp

Occurs when mouse left button down is pressed.

C#
public event EventHandler<PreviewSyntaxEditorMouseButtonEventArgs> PreviewSyntaxEditorMouseLeftButtonDown

Occurs when mouse right button down is pressed.

C#
public event EventHandler<PreviewSyntaxEditorMouseButtonEventArgs> PreviewSyntaxEditorMouseRightButtonDown

Occurs when scale factor changes.

C#
public event EventHandler ScaleFactorChanged

Occurs when the search panel is closed.

C#
public event EventHandler SearchPanelClosed

Occurs when the search panel is opened.

C#
public event EventHandler SearchPanelOpened

Occurs when the selection of the control changes.

C#
public event EventHandler SelectionChanged

Occurs when a text is searched in the control.

C#
public event EventHandler<TextSearchedEventArgs> TextSearched

Occurs when the viewport changes.

C#
public event EventHandler ViewportChanged
In this article
DefinitionConstructorsRadSyntaxEditor()FieldsAcceptsReturnPropertyAllowScalingPropertyAutoScrollToCaretOnTextChangePropertyCaretBrushPropertyEditorFontFamilyPropertyEditorFontSizePropertyHorizontalScrollBarVisibilityPropertyIndentProviderPropertyInsertModePropertyIsCaretVisiblePropertyIsReadOnlyPropertyIsSelectionEnabledPropertyIsWordWrapEnabledPropertyPalettePropertyScaleFactorPropertySearchPanelWidthPropertySelectionFillPropertySelectionStrokePropertyShouldTaggersProcessEntireLinesPropertyVerticalScrollBarVisibilityPropertyPropertiesAcceptsReturnAllowScalingAutoScrollToCaretOnTextChangeCaretBrushCaretDisplayModeCaretPositionCommandsCurrentInsertModeDocumentEditorFontFamilyEditorFontSizeEditorPresenterFoldingManagerHorizontalScrollBarHorizontalScrollBarVisibilityIndentProviderIntelliPromptsIsCaretVisibleIsInUndoGroupIsOverwriteModeEnabledIsReadOnlyIsSelectionEnabledIsWordWrapEnabledKeyBindingsMarginsPalettePropertiesScaleFactorSearchPanelWidthSelectionSelectionFillSelectionStrokeShouldTaggersProcessEntireLinesTaggersRegistryTextFormatDefinitionsTouchMarkerDragDistanceUILayersBuilderUseMonospacedFontOptimizationUseShiftKeyInSelectionVerticalScrollBarVerticalScrollBarVisibilityViewportMethodsBackspace()BeginUndoGroup()CancelUndoGroup()CloseFindDialog()CompleteCode()Copy()CreateSyntaxEditorHistoryState()Cut()DecreaseLineIndent()Delete()DeleteFullLine()DeleteWordToLeft()DeleteWordToRight()Dispose()Dispose(bool)EndUndoGroup()Find(string, int, bool, bool, bool)Find(string, int, bool, bool)Find(string, int, bool)Find(string, int)FindAll(string, bool, bool, bool)FindAll(string, bool, bool)FindAll(string, bool)FindAll(string)FindPrevious(string, int, bool, bool, bool)FindPrevious(string, int, bool)GetLineBoundingRectangleByLineNumber(int, bool)GetLinePartBoundingRectangle(Span, bool)GetPointFromPosition(CaretPosition)GetPositionFromPoint(Point)GotoLine(int, bool)HighlightAllMatches(string)IncreaseLineIndent()Indent()InitializeTouch(SyntaxEditorPresenter)Insert(string)InsertNewLine()InsertTab()InvalidateEditorLayout()InvalidateEditorLayout(bool)MeasureOverride(Size)MoveCurrentLineToBottom()MoveCurrentLineToTop()NavigateNextMatch(string)NavigatePreviousMatch(string)OnApplyTemplate()OnCommandError(CommandErrorEventArgs)OnCommandExecuted(CommandExecutedEventArgs)OnCommandExecuting(CommandExecutingEventArgs)OnCreateAutomationPeer()OnDocumentChanged()OnDocumentChanging()OnDocumentContentChanged(TextContentChangedEventArgs)OnDocumentContentChanging(TextContentChangingEventArgs)OnGotFocus(RoutedEventArgs)OnInitialized(EventArgs)OnIsReadOnlyChanged(EventArgs)OnLayoutPropertiesChanged()OnMouseWheelZoom(double)OnPreviewSyntaxEditorInput(PreviewSyntaxEditorInputEventArgs)OnPreviewSyntaxEditorKeyDown(PreviewSyntaxEditorKeyEventArgs)OnPreviewSyntaxEditorKeyUp(PreviewSyntaxEditorKeyEventArgs)OnPreviewSyntaxEditorMouseLeftButtonDown(PreviewSyntaxEditorMouseButtonEventArgs)OnPreviewSyntaxEditorMouseRightButtonDown(PreviewSyntaxEditorMouseButtonEventArgs)OnPropertyChanged(DependencyPropertyChangedEventArgs)OnScaleFactorChanged()OnSearchPanelClosed()OnSearchPanelOpened()OnSelectionChanged()OnTextSearched(TextSearchedEventArgs)OnViewportChanged()OpenFindDialog(string)PageDown()PageUp()Paste()Redo()ReplaceAllMatches(string, string, bool, bool, bool)ReplaceAllMatches(string, string, bool, bool)ReplaceNextMatch(string, int, string, bool, bool)RestoreSyntaxEditorHistoryState(SyntaxEditorHistoryState)SelectAll()ToggleInsertMode()Undo()Unindent()UpdateSelection()ZoomIn(double)ZoomOut(double)ZoomTo(double)EventsCommandErrorCommandExecutedCommandExecutingDocumentChangedDocumentChangingDocumentContentChangedDocumentContentChangingIsReadOnlyChangedLayoutPropertiesChangedPreviewSyntaxEditorInputPreviewSyntaxEditorKeyDownPreviewSyntaxEditorKeyUpPreviewSyntaxEditorMouseLeftButtonDownPreviewSyntaxEditorMouseRightButtonDownScaleFactorChangedSearchPanelClosedSearchPanelOpenedSelectionChangedTextSearchedViewportChanged
Not finding the help you need?
Contact Support