skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadSyntaxEditor

A control for editing source code with syntax highlighting and advanced text editing capabilities.

Inheritance
System.Object
RadControl
RadSyntaxEditor
Inherited Members
RadControl.isResizing2
RadControl.isDisposing2
RadControl.invalidResizeRect
RadControl.isAccessibilityRequested
RadControl.Dispose(Boolean)
RadControl.Construct()
RadControl.CreateRootElement()
RadControl.InitializeRootElement(RootRadElement)
RadControl.LoadElementTree()
RadControl.LoadElementTree(Size)
RadControl.SetIsInitializing(Boolean)
RadControl.ShouldSerializeBackColor()
RadControl.SetBackColorThemeOverrides()
RadControl.ResetBackColorThemeOverrides()
RadControl.ShouldSerializeForeColor()
RadControl.SetForeColorThemeOverrides()
RadControl.ResetForeColorThemeOverrides()
RadControl.ShouldSerializeFont()
RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)
RadControl.OnClick(EventArgs)
RadControl.OnDoubleClick(EventArgs)
RadControl.OnMouseDown(MouseEventArgs)
RadControl.OnMouseUp(MouseEventArgs)
RadControl.OnMouseEnter(EventArgs)
RadControl.OnMouseLeave(EventArgs)
RadControl.OnMouseMove(MouseEventArgs)
RadControl.OnMouseHover(EventArgs)
RadControl.OnMouseWheel(MouseEventArgs)
RadControl.OnMouseCaptureChanged(EventArgs)
RadControl.OnCreateControl()
RadControl.OnHandleDestroyed(EventArgs)
RadControl.OnParentChanged(EventArgs)
RadControl.OnVisibleChanged(EventArgs)
RadControl.OnFontChanged(EventArgs)
RadControl.OnForeColorChanged(EventArgs)
RadControl.OnBackColorChanged(EventArgs)
RadControl.OnEnabledChanged(EventArgs)
RadControl.OnBindingContextChanged(EventArgs)
RadControl.OnLocationChanged(EventArgs)
RadControl.OnPaddingChanged(EventArgs)
RadControl.OnRightToLeftChanged(EventArgs)
RadControl.OnPaint(PaintEventArgs)
RadControl.OnLayout(LayoutEventArgs)
RadControl.OnAutoSizeChanged(EventArgs)
RadControl.WndProc(Message)
RadControl.OnInvalidated(RadElement)
RadControl.OnCaptureLosing()
RadControl.OnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)
RadControl.OnScreenTipNeeded(Object, ScreenTipNeededEventArgs)
RadControl.OnThemeNameChanged(ThemeNameChangedEventArgs)
RadControl.ProcessFocusRequested(RadElement)
RadControl.ProcessCaptureChangeRequested(RadElement, Boolean)
RadControl.ProcessAutoSizeChanged(Boolean)
RadControl.CallOnMouseCaptureChanged(EventArgs)
RadControl.CallBaseOnGotFocus(EventArgs)
RadControl.CallBaseOnLostFocus(EventArgs)
RadControl.CallOnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)
RadControl.CallOnScreenTipNeeded(Object, ScreenTipNeededEventArgs)
RadControl.CallOnMouseUp(MouseEventArgs)
RadControl.CallOnMouseDown(MouseEventArgs)
RadControl.CallOnClick(EventArgs)
RadControl.CallOnDoubleClick(EventArgs)
RadControl.CallOnMouseEnter(EventArgs)
RadControl.CallOnMouseWheel(MouseEventArgs)
RadControl.CallOnMouseLeave(EventArgs)
RadControl.CallOnMouseMove(MouseEventArgs)
RadControl.CallOnMouseHover(EventArgs)
RadControl.CallOnPreviewKeyDown(PreviewKeyDownEventArgs)
RadControl.CallBaseOnKeyDown(KeyEventArgs)
RadControl.CallOnKeyDown(KeyEventArgs)
RadControl.CallBaseOnKeyPress(KeyPressEventArgs)
RadControl.CallOnKeyPress(KeyPressEventArgs)
RadControl.GetInputElement()
RadControl.CallBaseOnKeyUp(KeyEventArgs)
RadControl.CallOnKeyUp(KeyEventArgs)
RadControl.CallOnThemeNameChanged(ThemeNameChangedEventArgs)
RadControl.CallOnVisibleChanged(EventArgs)
RadControl.BeginInit()
RadControl.EndInit()
RadControl.OnNotifyPropertyChanged(String)
RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)
RadControl.IComponentTreeHandler.GetShowFocusCues()
RadControl.IComponentTreeHandler.CreateRootElement()
RadControl.IComponentTreeHandler.CreateChildItems(RadElement)
RadControl.IComponentTreeHandler.InitializeRootElement(RootRadElement)
RadControl.IComponentTreeHandler.InvalidateElement(RadElement)
RadControl.IComponentTreeHandler.InvalidateElement(RadElement, Rectangle)
RadControl.IComponentTreeHandler.InvalidateIfNotSuspended()
RadControl.IComponentTreeHandler.GetAmbientPropertyValue(RadProperty)
RadControl.IComponentTreeHandler.ControlThemeChangedCallback()
RadControl.IComponentTreeHandler.OnAmbientPropertyChanged(RadProperty)
RadControl.IComponentTreeHandler.OnFocusRequested(RadElement)
RadControl.IComponentTreeHandler.OnCaptureChangeRequested(RadElement, Boolean)
RadControl.IComponentTreeHandler.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)
RadControl.IComponentTreeHandler.CallOnThemeNameChanged(ThemeNameChangedEventArgs)
RadControl.IComponentTreeHandler.CallOnMouseCaptureChanged(EventArgs)
RadControl.IComponentTreeHandler.CallOnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)
RadControl.IComponentTreeHandler.CallOnScreenTipNeeded(Object, ScreenTipNeededEventArgs)
RadControl.GetPreferredSize(Size)
RadControl.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)
RadControl.GetRootElementDesiredSize(Int32, Int32, Int32, Int32)
RadControl.OnZoomGesture(ZoomGestureEventArgs)
RadControl.OnRotateGesture(RotateGestureEventArgs)
RadControl.OnPanGesture(PanGestureEventArgs)
RadControl.OnTwoFingerTapGesture(GestureEventArgs)
RadControl.OnPressAndTapGesture(PressAndTapGestureEventArgs)
RadControl.OnGesture(GestureEventArgs)
RadControl.ProcessGesture(Message)
RadControl.EnableGesture(GestureType)
RadControl.DisableGesture(GestureType)
RadControl.Refresh()
RadControl.SuspendUpdate()
RadControl.ResumeUpdate()
RadControl.ResumeUpdate(Boolean)
RadControl.InvokeLayoutCallback(LayoutCallback)
RadControl.RegisterHostedControl(RadHostItem)
RadControl.UnregisterHostedControl(RadHostItem, Boolean)
RadControl.ControlDefinesThemeForElement(RadElement)
RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)
RadControl.GetPlainText()
RadControl.CanEditUIElement(RadElement)
RadControl.GetChildAt(Int32)
RadControl.ShouldSerializeProperty(RadProperty)
RadControl.ShouldSerializeProperty(RadProperty, RadObject)
RadControl.ResetProperty(RadProperty, RadObject)
RadControl.CanEditElementAtDesignTime(RadElement)
RadControl.GetControlDefaultSize()
RadControl.GetDpiScaledSize(Size)
RadControl.GetDpiScaledSize(SizeF)
RadControl.ProcessCodedUIMessage(IPCMessage)
RadControl.FindPropertyInChildren(RadControl, IPCMessage)
RadControl.CallAccessibilityNotifyClients(AccessibleEvents, Int32)
RadControl.IPCHost.ProcessMessage(IPCMessage)
RadControl.PerformRadAutoScale(Nullable<BoundsSpecified>)
RadControl.SetRadAutoScale(Boolean)
RadControl.IComponentTreeHandler.get_Name()
RadControl.IComponentTreeHandler.set_Name(String)
RadControl.EnableDpiScaling
RadControl.EnableRadAutoScale
RadControl.EnableRadFormInitialDpiScaling
RadControl.EnableImageDpiScaling
RadControl.EnableSvgImages
RadControl.IsTrial
RadControl.IsLoaded
RadControl.LayoutManager
RadControl.ElementTree
RadControl.UseCompatibleTextRenderingDefaultValue
RadControl.Behavior
RadControl.RootElement
RadControl.Padding
RadControl.ThemeName
RadControl.Text
RadControl.EnableTheming
RadControl.ThemeClassName
RadControl.ImageList
RadControl.ImageScalingSize
RadControl.UseCompatibleTextRendering
RadControl.MaximumSize
RadControl.MinimumSize
RadControl.Focusable
RadControl.Site
RadControl.CausesValidation
RadControl.IsInitializing
RadControl.SmallImageList
RadControl.SmallImageScalingSize
RadControl.IsDesignMode
RadControl.IsDisplayed
RadControl.FocusedElement
RadControl.AllowShowFocusCues
RadControl.ShowItemToolTips
RadControl.CommandBindings
RadControl.EnableKeyMap
RadControl.BackColor
RadControl.ForeColor
RadControl.Font
RadControl.ValidationCancel
RadControl.IComponentTreeHandler.IsDesignMode
RadControl.IComponentTreeHandler.ElementTree
RadControl.IComponentTreeHandler.Behavior
RadControl.IComponentTreeHandler.Initializing
RadControl.IComponentTreeHandler.ThemeClassName
RadControl.EnableGestures
RadControl.EnableAnalytics
RadControl.AnalyticsName
RadControl.EnableRadAccessibilityObjects
RadControl.AccessibilityRequested
RadControl.EnableCodedUITests
RadControl.EnableCodedUITestsDefaultValue
RadControl.EnableUIAutomation
RadControl.EnableUIAutomationDefaultValue
RadControl.IPCHost.Context
RadControl.ElementInvalidated
RadControl.ToolTipTextNeeded
RadControl.ScreenTipNeeded
RadControl.ThemeNameChanged
RadControl.Initialized
RadControl.PropertyChanged
RadControl.ZoomGesture
RadControl.RotateGesture
RadControl.PanGesture
RadControl.TwoFingerTapGesture
RadControl.PressAndTapGesture
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.SyntaxEditor.dll

Syntax

[TelerikToolboxCategory("Editors")]
public class RadSyntaxEditor : RadControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider

Constructors

RadSyntaxEditor()

Declaration
public RadSyntaxEditor()

Properties

AllowScaling

Gets or sets a value indicating whether text scaling is allowed in the editor.

Declaration
public bool AllowScaling { get; set; }
Property Value
System.Boolean

AutoSize

This property/method/event is not relevant for this class.

Declaration
public override bool AutoSize { get; set; }
Property Value
System.Boolean

Overrides
RadControl.AutoSize

CaretColor

Gets or sets the color of the text cursor (caret) in the editor.

Declaration
public Color CaretColor { get; set; }
Property Value
System.Drawing.Color

CaretDisplayMode

Gets or sets the display mode of the text cursor (caret), determining its appearance in the editor.

Declaration
public CaretDisplayMode CaretDisplayMode { get; set; }
Property Value
CaretDisplayMode

CaretWidth

Gets or sets the width of the text cursor (caret) when the CaretDisplayMode is set to Normal.

Declaration
public double CaretWidth { get; set; }
Property Value
System.Double

Commands

Gets the collection of commands that can be executed in the syntax editor.

Declaration
public SyntaxEditorCommands Commands { get; }
Property Value
SyntaxEditorCommands

DefaultSize

Gets the default size of the control when it is initially placed on a design surface.

Declaration
protected override Size DefaultSize { get; }
Property Value
System.Drawing.Size

A System.Drawing.Size object representing the default size of the control.

Dispatcher

Gets the dispatcher object that manages the execution of operations on the UI thread.

Declaration
public Dispatcher Dispatcher { get; }
Property Value
Dispatcher

Document

Gets or sets the text document that contains the content displayed and edited in the control.

Declaration
public TextDocument Document { get; set; }
Property Value
TextDocument

EditorFontSize

Gets or sets the font size of the text displayed in the editor.

Declaration
public double EditorFontSize { get; set; }
Property Value
System.Double

InputHandler

Gets or sets the component which is responsible for handling the keyboard and mouse input of the RadSyntaxEditor.

Declaration
public SyntaxEditorInputBehavior InputHandler { get; set; }
Property Value
SyntaxEditorInputBehavior

IsCaretVisible

Gets or sets a value indicating whether the text cursor (caret) is visible in the editor.

Declaration
public bool IsCaretVisible { get; set; }
Property Value
System.Boolean

IsSelectionEnabled

Gets or sets a value indicating whether text selection is enabled in the editor.

Declaration
public bool IsSelectionEnabled { get; set; }
Property Value
System.Boolean

IsWordWrapEnabled

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

Declaration
public bool IsWordWrapEnabled { get; set; }
Property Value
System.Boolean

Palette

Gets or sets the color palette that defines the appearance of syntax elements in the editor.

Declaration
public SyntaxEditorPalette Palette { get; set; }
Property Value
SyntaxEditorPalette

ScaleFactor

Gets or sets the scale factor that determines the size of text and UI elements in the editor.

Declaration
public double ScaleFactor { get; set; }
Property Value
System.Double

ShouldTaggersProcessEntireLines

Gets or sets a value indicating whether the entire line should be processed by the syntax taggers instead of just the modified region.

Declaration
public bool ShouldTaggersProcessEntireLines { get; set; }
Property Value
System.Boolean

ShowLineNumbers

Gets or sets a value indicating whether the line numbers are shown.

Declaration
public bool ShowLineNumbers { get; set; }
Property Value
System.Boolean

true if the line numbers are shown; otherwise, false.

SyntaxEditorElement

Gets the RadSyntaxEditorElement which is the main element in the control.

Declaration
public RadSyntaxEditorElement SyntaxEditorElement { get; }
Property Value
RadSyntaxEditorElement

TaggersRegistry

Gets the registry of taggers that provide syntax highlighting and other text analysis features.

Declaration
public TaggersRegistry TaggersRegistry { get; }
Property Value
TaggersRegistry

TextFormatDefinitions

Gets the stack of text format definitions that determine how different elements of text are displayed.

Declaration
public TextFormatDefinitionStack TextFormatDefinitions { get; }
Property Value
TextFormatDefinitionStack

UseShiftKeyInSelection

Gets or sets a value indicating whether the Shift key must be used to extend text selection.

Declaration
public bool UseShiftKeyInSelection { get; set; }
Property Value
System.Boolean

Methods

Copy()

Copies the current text selection to the clipboard.

Declaration
public void Copy()

CreateAccessibilityInstance()

Creates the accessibility object for this control to support screen readers and other assistive technologies.

Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
System.Windows.Forms.AccessibleObject

An System.Windows.Forms.AccessibleObject that represents the control for accessibility purposes.

CreateBehavior()

Creates the input behavior component for the RadSyntaxEditor.

Declaration
protected override ComponentInputBehavior CreateBehavior()
Returns
ComponentInputBehavior

A new instance of RadSyntaxEditorComponentInputBehavior for handling input in this control.

Overrides
RadControl.CreateBehavior()

CreateChildItems(RadElement)

Creates the child elements of the RadSyntaxEditor control.

Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement parent

The parent element to which child elements will be added.

Overrides
RadControl.CreateChildItems(RadElement)

GetPointFromPosition(CaretPosition)

Converts a text caret position to a point in the editor's coordinate system.

Declaration
public Point GetPointFromPosition(CaretPosition position)
Parameters
CaretPosition position

The caret position to convert.

Returns
Point

A Point representing the visual position of the caret.

GetPositionFromControlPoint(Point)

Converts a point in the control's coordinate system to a text caret position.

Declaration
public CaretPosition GetPositionFromControlPoint(Point point)
Parameters
System.Drawing.Point point

The point relative to the control's top-left corner.

Returns
CaretPosition

A CaretPosition representing the text position at the specified point.

GetPositionFromPoint(Point)

This property/method/event is not relevant for this class.

Declaration
public CaretPosition GetPositionFromPoint(Point point)
Parameters
System.Drawing.Point point

The point relative to the editor presenter.

Returns
CaretPosition

A CaretPosition representing the text position at the specified point.

IsInputKey(Keys)

Determines whether a key should be processed as an input key or passed to the parent control.

Declaration
protected override bool IsInputKey(Keys keyData)
Parameters
System.Windows.Forms.Keys keyData

The key to check.

Returns
System.Boolean

true if the specified key should be processed by the control; otherwise, false.

Overrides
RadControl.IsInputKey(Keys)

MoveCurrentLineToTop()

Scrolls the editor to position the current line at the top of the viewport.

Declaration
public void MoveCurrentLineToTop()

OnGotFocus(EventArgs)

Handles the event that occurs when the control gets focus, showing the text cursor and focusing the editor element.

Declaration
protected override void OnGotFocus(EventArgs e)
Parameters
System.EventArgs e

An System.EventArgs object containing event data.

Overrides
RadControl.OnGotFocus(EventArgs)

OnKeyDown(KeyEventArgs)

Handles the key down event by delegating it to the input handler.

Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
System.Windows.Forms.KeyEventArgs e

The event data containing information about the key.

Overrides
RadControl.OnKeyDown(KeyEventArgs)

OnKeyPress(KeyPressEventArgs)

Handles the key press event by delegating it to the input handler.

Declaration
protected override void OnKeyPress(KeyPressEventArgs e)
Parameters
System.Windows.Forms.KeyPressEventArgs e

The event data containing information about the pressed key.

Overrides
RadControl.OnKeyPress(KeyPressEventArgs)

OnKeyUp(KeyEventArgs)

Handles the key up event by delegating it to the input handler.

Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
System.Windows.Forms.KeyEventArgs e

The event data containing information about the released key.

Overrides
RadControl.OnKeyUp(KeyEventArgs)

OnLoad(Size)

Called when the control is loaded to initialize the editor element.

Declaration
protected override void OnLoad(Size desiredSize)
Parameters
System.Drawing.Size desiredSize

The desired size of the control.

Overrides
RadControl.OnLoad(Size)

OnLostFocus(EventArgs)

Handles the event that occurs when the control loses focus, hiding the text cursor.

Declaration
protected override void OnLostFocus(EventArgs e)
Parameters
System.EventArgs e

An System.EventArgs object containing event data.

Overrides
RadControl.OnLostFocus(EventArgs)

OnThemeChanged()

Called when the control's theme changes to update visual elements accordingly.

Declaration
protected override void OnThemeChanged()
Overrides
RadControl.OnThemeChanged()

PageDown()

Scrolls the editor content down by one page (viewport height).

Declaration
public void PageDown()

PageUp()

Scrolls the editor content up by one page (viewport height).

Declaration
public void PageUp()

ProcessDialogChar(Char)

Processes a dialog character, allowing Alt key combinations to be handled by dialogs.

Declaration
protected override bool ProcessDialogChar(char charCode)
Parameters
System.Char charCode

The character to process.

Returns
System.Boolean

true if the character was processed; otherwise, false.

ProcessMnemonic(Char)

Processes a mnemonic character, which the editor does not support.

Declaration
protected override bool ProcessMnemonic(char charCode)
Parameters
System.Char charCode

The character to process.

Returns
System.Boolean

Always false as the editor does not handle mnemonics.

Overrides
RadControl.ProcessMnemonic(Char)

ScaleControl(SizeF, BoundsSpecified)

Scales the control and its child elements according to the specified scaling factor.

Declaration
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
Parameters
System.Drawing.SizeF factor

The scaling factor to apply.

System.Windows.Forms.BoundsSpecified specified

A value indicating which bounds of the control to scale.

Overrides
RadControl.ScaleControl(SizeF, BoundsSpecified)

SelectAll()

Selects all text in the editor.

Declaration
public void SelectAll()

UpdateSelection()

Refreshes the visual representation of the current text selection in the editor.

Declaration
public void UpdateSelection()

ZoomIn()

Increases the zoom level (scale factor) of the editor by one step.

Declaration
public void ZoomIn()

ZoomOut()

Decreases the zoom level (scale factor) of the editor by one step.

Declaration
public void ZoomOut()

ZoomTo(Double)

Sets the editor to a specific zoom level (scale factor). The minimum supported zoom level is 0.2 and the maximum supported is 4.

Declaration
public void ZoomTo(double zoomLevel)
Parameters
System.Double zoomLevel

The scale factor to be applied to the editor content.

Exceptions
System.ArgumentOutOfRangeException

Thrown when the zoomLevel parameter is negative.

Events

CommandError

Occurs when a command execution results in an error.

Declaration
public event EventHandler<CommandErrorEventArgs> CommandError
Event Type
System.EventHandler<CommandErrorEventArgs>

CommandExecuted

Occurs after a command has been successfully executed.

Declaration
public event EventHandler<CommandExecutedEventArgs> CommandExecuted
Event Type
System.EventHandler<CommandExecutedEventArgs>

CommandExecuting

Occurs before a command is executed, allowing you to cancel or modify the command execution.

Declaration
public event EventHandler<CommandExecutingEventArgs> CommandExecuting
Event Type
System.EventHandler<CommandExecutingEventArgs>

DocumentChanged

Occurs after the document has been changed, such as when a new document is loaded or created.

Declaration
public event EventHandler DocumentChanged
Event Type
System.EventHandler

DocumentChanging

Occurs before the document is changed, allowing you to perform actions before a new document is loaded.

Declaration
public event EventHandler DocumentChanging
Event Type
System.EventHandler

DocumentContentChanged

Occurs after the text content of the document has been modified, providing information about the changes made.

Declaration
public event EventHandler<TextContentChangedEventArgs> DocumentContentChanged
Event Type
System.EventHandler<TextContentChangedEventArgs>

DocumentContentChanging

Occurs before the text content of the document is modified, allowing you to cancel or modify the changes.

Declaration
public event EventHandler<TextContentChangingEventArgs> DocumentContentChanging
Event Type
System.EventHandler<TextContentChangingEventArgs>

IsReadOnlyChanged

Occurs when the read-only state of the editor changes.

Declaration
public event EventHandler IsReadOnlyChanged
Event Type
System.EventHandler

LayoutPropertiesChanged

Occurs when the layout properties of the editor change, affecting how text is displayed.

Declaration
public event EventHandler LayoutPropertiesChanged
Event Type
System.EventHandler

PreviewSyntaxEditorInput

Occurs before text input is processed by the syntax editor, allowing you to intercept and modify the input.

Declaration
public event EventHandler<PreviewSyntaxEditorInputEventArgs> PreviewSyntaxEditorInput
Event Type
System.EventHandler<PreviewSyntaxEditorInputEventArgs>

PreviewSyntaxEditorKeyDown

Occurs before a key down event is processed by the syntax editor, allowing you to intercept and handle keyboard input.

Declaration
public event EventHandler<PreviewSyntaxEditorKeyEventArgs> PreviewSyntaxEditorKeyDown
Event Type
System.EventHandler<PreviewSyntaxEditorKeyEventArgs>

PreviewSyntaxEditorKeyUp

Occurs before a key up event is processed by the syntax editor, allowing you to intercept and handle keyboard input.

Declaration
public event EventHandler<PreviewSyntaxEditorKeyEventArgs> PreviewSyntaxEditorKeyUp
Event Type
System.EventHandler<PreviewSyntaxEditorKeyEventArgs>

PreviewSyntaxEditorMouseLeftButtonDown

Occurs before a mouse left button down event is processed by the syntax editor, allowing you to intercept and handle mouse input.

Declaration
public event EventHandler<PreviewSyntaxEditorMouseButtonEventArgs> PreviewSyntaxEditorMouseLeftButtonDown
Event Type
System.EventHandler<PreviewSyntaxEditorMouseButtonEventArgs>

PreviewSyntaxEditorMouseRightButtonDown

Occurs before a mouse right button down event is processed by the syntax editor, allowing you to intercept and handle context menu actions.

Declaration
public event EventHandler<PreviewSyntaxEditorMouseButtonEventArgs> PreviewSyntaxEditorMouseRightButtonDown
Event Type
System.EventHandler<PreviewSyntaxEditorMouseButtonEventArgs>

ScaleFactorChanged

Occurs when the scaling factor of the editor changes, affecting the size of text and UI elements.

Declaration
public event EventHandler ScaleFactorChanged
Event Type
System.EventHandler

SelectionChanged

Occurs when the text selection in the editor changes, either by user interaction or programmatically.

Declaration
public event EventHandler SelectionChanged
Event Type
System.EventHandler

ViewportChanged

Occurs when the visible area (viewport) of the editor changes, such as during scrolling or resizing.

Declaration
public event EventHandler ViewportChanged
Event Type
System.EventHandler

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.