Class
RadSyntaxEditorElement

The primary element of the RadSyntaxEditor control that provides syntax highlighting, text editing, and code visualization capabilities.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

cs-api-definition
public class RadSyntaxEditorElement : FrameworkElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, ITextDocumentEditor, IDisposable

Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementRadSyntaxEditorElement

Implements: ICustomTypeDescriptorIDisposableINotifyPropertyChangedIStylableNodeISupportDropISupportSystemSkinITextDocumentEditor

Inherited Members FrameworkElement.RenderTransformPropertyFrameworkElement.RenderTransformOriginPropertyFrameworkElement.CursorPropertyFrameworkElement.ForegroundPropertyFrameworkElement.HeightPropertyFrameworkElement.WidthPropertyFrameworkElement.GetClientRectangle(SizeF)FrameworkElement.PaintElement(IGraphics, float, SizeF)FrameworkElement.PostPaintChildren(IGraphics, Rectangle, float, SizeF)FrameworkElement.DragDrop(Point, ISupportDrag)FrameworkElement.DragOver(Point, ISupportDrag)FrameworkElement.DragEnter(Point, ISupportDrag)FrameworkElement.DragLeave(Point, ISupportDrag)FrameworkElement.FlowDirectionFrameworkElement.WidthFrameworkElement.HeightFrameworkElement.ActualHeightFrameworkElement.ActualWidthFrameworkElement.CursorFrameworkElement.RenderTransformOriginFrameworkElement.MouseOverBorderThicknessFrameworkElement.BorderBrushFrameworkElement.BackgroundFrameworkElement.HorizontalAlignmentFrameworkElement.VerticalAlignmentFrameworkElement.HorizontalContentAlignmentFrameworkElement.VerticalContentAlignmentFrameworkElement.AllowDropUIElement.TextPropertyUIElement.FlowDirectionPropertyUIElement.ClipPropertyUIElement.UpdateRenderTransform()UIElement.CaptureMouse()UIElement.ReleaseMouseCapture()UIElement.Paint(IPaintingContext)UIElement.CanPaint(IPaintingContext)UIElement.PaintCore(IPaintingContext)UIElement.ClearValue(RadProperty)UIElement.IsKeyboardFocusWithin()UIElement.OnMouseLeftButtonDown(MouseButtonEventArgs)UIElement.OnMouseLeftButtonUp(MouseButtonEventArgs)UIElement.OnMouseRightButtonDown(MouseButtonEventArgs)UIElement.OnMouseRightButtonUp(MouseButtonEventArgs)UIElement.OnMouseClick(MouseButtonEventArgs)UIElement.OnMouseDoubleClick(MouseButtonEventArgs)UIElement.HitTest(Point)UIElement.GetClipRect()UIElement.DoClick(EventArgs)UIElement.DoDoubleClick(EventArgs)UIElement.OnMouseDown(MouseEventArgs)UIElement.DoMouseWheel(MouseEventArgs)UIElement.DoMouseMove(MouseEventArgs)UIElement.OnMouseUp(MouseEventArgs)UIElement.OnBubbleEvent(RadElement, RoutedEventArgs)UIElement.OnClick(EventArgs)UIElement.OnDoubleClick(EventArgs)UIElement.OnLostFocus(EventArgs)UIElement.OnBoundsChanged(RadPropertyChangedEventArgs)UIElement.IsFocusableUIElement.TextUIElement.AutomationIDUIElement.RenderTransformUIElement.ClipUIElement.IsHitTestVisibleUIElement.DispatcherUIElement.HasReceivedFocusUIElement.MouseLeftButtonDownUIElement.MouseLeftButtonUpUIElement.MouseRightButtonDownUIElement.MouseRightButtonUpUIElement.MouseClickUIElement.MouseDoubleClickUIElement.GotFocusUIElement.LostFocusVisualElement.DefaultSizePropertyVisualElement.ForeColorPropertyVisualElement.BackColorPropertyVisualElement.FontPropertyVisualElement.SmoothingModePropertyVisualElement.OpacityPropertyVisualElement.CustomFontPropertyVisualElement.CustomFontSizePropertyVisualElement.CustomFontStylePropertyVisualElement.OnFontChanged(EventArgs)VisualElement.OnPropertyChanging(RadPropertyChangingEventArgs)VisualElement.PaintChildren(IGraphics, Rectangle, float, SizeF, bool)VisualElement.PrePaintElement(IGraphics)VisualElement.PostPaintElement(IGraphics)VisualElement.GetScaledFont(float)VisualElement.GetScaledFont(float, Font)VisualElement.DefaultSizeVisualElement.ForeColorVisualElement.BackColorVisualElement.FontVisualElement.CustomFontVisualElement.CustomFontSizeVisualElement.CustomFontStyleVisualElement.SmoothingModeVisualElement.OpacityVisualElement.FontChangedRadElement.BoundsPropertyRadElement.BorderThicknessPropertyRadElement.PaddingPropertyRadElement.MarginPropertyRadElement.AlignmentPropertyRadElement.AutoSizeModePropertyRadElement.FitToSizeModePropertyRadElement.MinSizePropertyRadElement.EnabledPropertyRadElement.CanFocusPropertyRadElement.IsItemFocusedPropertyRadElement.IsFocusedPropertyRadElement.IsMouseOverPropertyRadElement.IsMouseOverElementPropertyRadElement.IsMouseDownPropertyRadElement.ShouldPaintPropertyRadElement.VisibilityPropertyRadElement.NamePropertyRadElement.ClassPropertyRadElement.ClipDrawingPropertyRadElement.ShapePropertyRadElement.MouseClickedEventRadElement.MouseDoubleClickedEventRadElement.MouseDownEventRadElement.MouseUpEventRadElement.MouseWheelEventRadElement.ChildElementAddedEventRadElement.ParentChangedEventRadElement.BoundsChangedEventRadElement.VisibilityChangingEventRadElement.EnabledChangedEventRadElement.ControlChangedEventRadElement.BackgroundShapePropertyRadElement.BackgroundShapePaintModePropertyRadElement.ContainsFocusPropertyRadElement.ContainsMousePropertyRadElement.MaxSizePropertyRadElement.RightToLeftPropertyRadElement.AutoSizePropertyRadElement.ZIndexPropertyRadElement.AngleTransformPropertyRadElement.ScaleTransformPropertyRadElement.PositionOffsetPropertyRadElement.TagPropertyRadElement.StretchHorizontallyPropertyRadElement.StretchVerticallyPropertyRadElement.UseCompatibleTextRenderingPropertyRadElement.ClickModePropertyRadElement.styleVersionRadElement.paintSystemSkinRadElement.SetPropertyValueCommandRadElement.GetPropertyValueCommandRadElement.StylePropertyRadElement.CallCreateChildElements()RadElement.SuspendReferenceUpdate()RadElement.ResumeReferenceUpdate()RadElement.OnLoad(bool)RadElement.LoadCore()RadElement.OnUnload(ComponentThemableElementTree, bool)RadElement.UnloadCore(ComponentThemableElementTree)RadElement.OnUnloaded(ComponentThemableElementTree)RadElement.OnElementTreeChanged(ComponentThemableElementTree)RadElement.OnBeginDispose()RadElement.SetParent(RadElement)RadElement.OnParentChanged(RadElement)RadElement.UpdateReferences(ComponentThemableElementTree, bool, bool)RadElement.ResetLayout(bool)RadElement.HasInvisibleAncestor()RadElement.ResetLayoutCore()RadElement.InvalidateArrange()RadElement.InvalidateArrange(bool)RadElement.InvalidateMeasure()RadElement.InvalidateMeasure(bool)RadElement.UpdateLayout()RadElement.SuspendLayout()RadElement.SuspendLayout(bool)RadElement.ResumeLayout(bool)RadElement.ResumeLayout(bool, bool)RadElement.Arrange(RectangleF)RadElement.Measure(SizeF)RadElement.SetBounds(Rectangle)RadElement.SetBounds(int, int, int, int)RadElement.GetBoundingRectangle(Size)RadElement.GetBoundingRectangle(Rectangle)RadElement.GetDesiredSize(bool)RadElement.PointToScreen(Point)RadElement.PointFromScreen(Point)RadElement.PointToControl(Point)RadElement.PointFromControl(Point)RadElement.LocationToControl()RadElement.RectangleToScreen(Rectangle)RadElement.OnRenderSizeChanged(SizeChangedInfo)RadElement.OnChildDesiredSizeChanged(RadElement)RadElement.OnLayoutPropertyChanged(RadPropertyChangedEventArgs)RadElement.ArrangeCore(RectangleF)RadElement.MeasureCore(SizeF)RadElement.MeasureChildren(SizeF)RadElement.GetArrangeRect(RectangleF)RadElement.CanExecuteLayoutOperation()RadElement.CalcLayoutOffset(PointF)RadElement.LockBounds()RadElement.UnlockBounds()RadElement.SetBoundsCore(Rectangle)RadElement.IsInValidState(bool)RadElement.Invalidate()RadElement.Invalidate(bool)RadElement.GetInvalidateBounds()RadElement.NotifyInvalidate(RadElement)RadElement.OnTransformationInvalidated()RadElement.PerformLayoutTransformation(ref RadMatrix)RadElement.PerformPaintTransformation(ref RadMatrix)RadElement.IsInGetAsBitmap()RadElement.PaintElementSkin(IGraphics)RadElement.PaintOverride(IGraphics, Rectangle, float, SizeF, bool)RadElement.PaintBackgroundShape(IGraphics)RadElement.PaintChild(RadElement, IGraphics, Rectangle, float, SizeF, bool)RadElement.PaintShadow(RadElement, IGraphics)RadElement.PaintShadowCore(Graphics, Rectangle, RadItem)RadElement.GetShadowRect(ref Rectangle, int)RadElement.PaintFocusCues(IGraphics, Rectangle)RadElement.GetAsBitmap(IGraphics, Brush, float, SizeF)RadElement.GetAsTransformedBitmap(IGraphics, Brush, float, SizeF)RadElement.GetAsTransformedBitmap(Brush, float, SizeF)RadElement.GetAsTransformedBitmap(Rectangle, Brush, float, SizeF)RadElement.GetAsBitmapEx(Color, float, SizeF)RadElement.GetAsBitmapEx(Brush, float, SizeF)RadElement.GetAsBitmap(Brush, float, SizeF)RadElement.IsInVisibleClipBounds(Rectangle)RadElement.SetClipping(Graphics)RadElement.ShouldPaintChild(RadElement)RadElement.GetFocusRect()RadElement.GetCurrentShape()RadElement.GetPaintRectangle(float, float, SizeF)RadElement.GetPatchedRect(RectangleF, float, SizeF)RadElement.GetXPVisualStyle()RadElement.GetVistaVisualStyle()RadElement.InitializeSystemSkinPaint()RadElement.UnitializeSystemSkinPaint()RadElement.GetSystemSkinPaintBounds()RadElement.OnUseSystemSkinChanged(EventArgs)RadElement.ShouldPaintSystemSkin()RadElement.ComposeShouldPaintSystemSkin()RadElement.GetStylablePropertiesFilter()RadElement.ResetStyleSettings(bool)RadElement.ResetStyleSettings(bool, RadProperty)RadElement.ProcessBehaviors(RadPropertyChangedEventArgs)RadElement.AddBehavior(PropertyChangeBehavior)RadElement.GetBehaviors()RadElement.RemoveBehavior(PropertyChangeBehavior)RadElement.ClearBehaviors()RadElement.AddRangeBehavior(PropertyChangeBehaviorCollection)RadElement.SetThemeApplied(bool)RadElement.OnStyleChanged(RadPropertyChangedEventArgs)RadElement.UnapplyStyle()RadElement.RemoveRangeBehaviors(PropertyChangeBehaviorCollection)RadElement.RemoveBehaviors(PropertyChangeBehavior)RadElement.RemoveRangeRoutedEventBehaviors(RoutedEventBehaviorCollection)RadElement.GetThemeEffectiveType()RadElement.GetChildrenByType(Type)RadElement.GetChildrenByBaseType(Type)RadElement.FindAncestorByThemeEffectiveType(Type)RadElement.FindAncestor<T>()RadElement.IsAncestorOf(RadElement)RadElement.FindDescendant<T>()RadElement.FindDescendant(Predicate<RadElement>)RadElement.FindDescendant(Type)RadElement.EnumDescendants(TreeTraversalMode)RadElement.EnumDescendants(Predicate<RadElement>, TreeTraversalMode)RadElement.EnumDescendants(Filter, TreeTraversalMode)RadElement.GetDescendants(Predicate<RadElement>, TreeTraversalMode)RadElement.GetDescendants(Filter, TreeTraversalMode)RadElement.GetAncestors(Filter)RadElement.GetAncestors(Predicate<RadElement>)RadElement.RaiseRoutedEvent(RadElement, RoutedEventArgs)RadElement.RaiseTunnelEvent(RadElement, RoutedEventArgs)RadElement.RaiseBubbleEvent(RadElement, RoutedEventArgs)RadElement.OnTunnelEvent(RadElement, RoutedEventArgs)RadElement.IsEventInProcess(RaisedRoutedEvent)RadElement.RegisterRoutedEvent(string, Type)RadElement.GetRegisterRoutedEvent(string, Type)RadElement.GetRegisterRoutedEvent(string, string)RadElement.GetRegisterRoutedEvent(string)RadElement.OnChildrenChanged(RadElement, ItemsChangeOperation)RadElement.GetChildren(ChildrenListOptions)RadElement.SendToBack()RadElement.BringToFront()RadElement.IsChildOf(RadElement)RadElement.Focus()RadElement.Focus(bool)RadElement.SetFocusPropertySafe(bool)RadElement.KillFocus()RadElement.OnCLREventsRise(RoutedEventArgs)RadElement.OnMouseMove(MouseEventArgs)RadElement.OnMouseHover(EventArgs)RadElement.OnEnabledChanged(RadPropertyChangedEventArgs)RadElement.OnParentEnabledChanged(RadPropertyChangedEventArgs)RadElement.OnLostMouseCapture(MouseEventArgs)RadElement.OnMouseEnter(EventArgs)RadElement.OnMouseLeave(EventArgs)RadElement.PerformClick()RadElement.OnMouseWheel(MouseEventArgs)RadElement.IsInputKey(InputKeyEventArgs)RadElement.MouseEventArgsFromControl(MouseEventArgs)RadElement.DoMouseDown(MouseEventArgs)RadElement.DoMouseUp(MouseEventArgs)RadElement.ShowScreenTip(ScreenTipNeededEventArgs)RadElement.HideScreenTip()RadElement.DoMouseHover(EventArgs)RadElement.OnShowScreenTip(ComponentInputBehavior)RadElement.RaiseClick(EventArgs)RadElement.RaiseDoubleClick(EventArgs)RadElement.RaiseMouseWheel(MouseEventArgs)RadElement.UpdateContainsFocus(bool)RadElement.DoMouseEnter(EventArgs)RadElement.DoMouseLeave(EventArgs)RadElement.GetValue(RadProperty)RadElement.AddStylePropertySetting(IPropertySetting)RadElement.SetValueCore(RadPropertyValue, object, object, ValueSource)RadElement.NotifyChildren(RadPropertyChangedEventArgs)RadElement.OnLocationChanged(RadPropertyChangedEventArgs)RadElement.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)RadElement.CanRaisePropertyChangeNotifications(RadPropertyValue)RadElement.IsPropertyCancelable(RadPropertyMetadata)RadElement.OnParentPropertyChanged(RadPropertyChangedEventArgs)RadElement.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadElement.ToString()RadElement.DisposeManagedResources()RadElement.PerformDispose(bool)RadElement.DisposeChildren()RadElement.GetStylableChildrenHierarchy()RadElement.GetStylableChildren()RadElement.GetBorderThickness(BorderPrimitive)RadElement.DpiScaleChanged(SizeF)RadElement.ElementStateRadElement.DesiredSizeRadElement.IsLayoutSuspendedRadElement.BoundingRectangleRadElement.ControlBoundingRectangleRadElement.BypassLayoutPoliciesRadElement.IsArrangeValidRadElement.IsMeasureValidRadElement.TreeLevelRadElement.TransformRadElement.TotalTransformRadElement.ShouldPaintUsingParentShapeRadElement.UseSystemSkinRadElement.CanHaveOwnStyleRadElement.PropagateStyleToChildrenRadElement.ThemeEffectiveTypeRadElement.ElementTreeRadElement.ChildrenRadElement.ChildrenHierarchyRadElement.ParentRadElement.RoutedEventBehaviorsRadElement.LayoutableChildrenCountRadElement.ContainsFocusRadElement.ShouldHandleMouseInputRadElement.NotifyParentOnMouseInputRadElement.IsAbleToRespondToMouseEventsRadElement.AutoSizeRadElement.BoundsRadElement.LocationRadElement.SizeRadElement.BorderThicknessRadElement.PaddingRadElement.MarginRadElement.AlignmentRadElement.AutoSizeModeRadElement.FitToSizeModeRadElement.EnabledRadElement.CanFocusRadElement.IsFocusedRadElement.IsMouseOverRadElement.IsMouseOverElementRadElement.IsMouseDownRadElement.InvalidateChildrenOnChildChangedRadElement.ShouldPaintRadElement.VisibilityRadElement.IsElementVisibleRadElement.NameRadElement.ClassRadElement.ClipDrawingRadElement.ShapeRadElement.MinSizeRadElement.MaxSizeRadElement.ZIndexRadElement.RightToLeftRadElement.UseCompatibleTextRenderingRadElement.BackgroundShapeRadElement.BackgroundShapePaintModeRadElement.ContainsMouseRadElement.CaptureRadElement.ScaleTransformRadElement.AngleTransformRadElement.PositionOffsetRadElement.SerializePropertiesRadElement.SerializeElementRadElement.SerializeChildrenRadElement.RenderingMaxFramerateRadElement.IsThemeAppliedRadElement.ShouldApplyThemeRadElement.UseCenteredAngleTransformRadElement.TagRadElement.StretchHorizontallyRadElement.StretchVerticallyRadElement.ClickModeRadElement.DoubleClickEnabledRadElement.CaptureOnMouseDownRadElement.IsItemHoveredRadElement.StyleRadElement.ToolTipTextRadElement.AutoToolTipRadElement.ScreenTipRadElement.AutoNumberKeyTipRadElement.DpiScaleFactorRadElement.LayoutUpdatedRadElement.MouseHoverRadElement.MouseMoveRadElement.MouseDownRadElement.MouseUpRadElement.ClickRadElement.DoubleClickRadElement.MouseEnterRadElement.MouseWheelRadElement.EnabledChangedRadElement.MouseLeaveRadElement.ChildrenChangedRadElement.LostMouseCaptureRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.GetInheritedValue(RadProperty)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing

Constructors

RadSyntaxEditorElement()

Initializes a new instance of the RadSyntaxEditorElement class with default settings for syntax highlighting and text editing.

Declaration

cs-api-definition
public RadSyntaxEditorElement()

Fields

AcceptsReturnProperty

Registers the AcceptsReturn property.

Declaration

cs-api-definition
public static readonly RadProperty AcceptsReturnProperty

Field Value

RadProperty

AllowScalingProperty

Registers the AllowScaling dependency property.

Declaration

cs-api-definition
public static readonly RadProperty AllowScalingProperty

Field Value

RadProperty

BorderColorProperty

Declaration

cs-api-definition
public static readonly RadProperty BorderColorProperty

Field Value

RadProperty

CaretBrushProperty

Registers the CaretBrush dependency property.

Declaration

cs-api-definition
public static readonly RadProperty CaretBrushProperty

Field Value

RadProperty

DEFAULT_NAMESPACE

Declaration

cs-api-definition
public static readonly string DEFAULT_NAMESPACE

Field Value

string

EditorFontFamilyProperty

Registers the EditorFontFamily dependency property.

Declaration

cs-api-definition
public static readonly RadProperty EditorFontFamilyProperty

Field Value

RadProperty

EditorFontSizeProperty

Registers the EditorFontSize dependency property.

Declaration

cs-api-definition
public static readonly RadProperty EditorFontSizeProperty

Field Value

RadProperty

EditorFontStretchProperty

Registers the dependency property.

Declaration

cs-api-definition
public static readonly RadProperty EditorFontStretchProperty

Field Value

RadProperty

EditorFontStyleProperty

Registers the dependency property.

Declaration

cs-api-definition
public static readonly RadProperty EditorFontStyleProperty

Field Value

RadProperty

EditorFontWeightProperty

Registers the dependency property.

Declaration

cs-api-definition
public static readonly RadProperty EditorFontWeightProperty

Field Value

RadProperty

HorizontalScrollBarVisibilityProperty

Registers the HorizontalScrollBarVisibility dependency property.

Declaration

cs-api-definition
public static readonly RadProperty HorizontalScrollBarVisibilityProperty

Field Value

RadProperty

IndentProviderProperty

Registers the IndentProvider property.

Declaration

cs-api-definition
public static readonly RadProperty IndentProviderProperty

Field Value

RadProperty

InsertModeProperty

Registers the InsertMode property.

Declaration

cs-api-definition
public static readonly RadProperty InsertModeProperty

Field Value

RadProperty

IsCaretVisibleProperty

Registers the IsCaretVisible dependency property.

Declaration

cs-api-definition
public static readonly RadProperty IsCaretVisibleProperty

Field Value

RadProperty

IsReadOnlyProperty

Registers the IsReadOnly property.

Declaration

cs-api-definition
public static readonly RadProperty IsReadOnlyProperty

Field Value

RadProperty

IsSelectionEnabledProperty

Registers the IsSelectionEnabled dependency property.

Declaration

cs-api-definition
public static readonly RadProperty IsSelectionEnabledProperty

Field Value

RadProperty

IsWordWrapEnabledProperty

Registers the IsWordWrapEnabledProperty dependency property.

Declaration

cs-api-definition
public static readonly RadProperty IsWordWrapEnabledProperty

Field Value

RadProperty

PaletteProperty

Registers the Palette dependency property.

Declaration

cs-api-definition
public static readonly RadProperty PaletteProperty

Field Value

RadProperty

ScaleFactorProperty

Registers the ScaleFactor dependency property.

Declaration

cs-api-definition
public static readonly RadProperty ScaleFactorProperty

Field Value

RadProperty

SelectionFillColorProperty

Declaration

cs-api-definition
public static readonly RadProperty SelectionFillColorProperty

Field Value

RadProperty

SelectionFillProperty

Registers the SelectionFill dependency property.

Declaration

cs-api-definition
public static readonly RadProperty SelectionFillProperty

Field Value

RadProperty

SelectionStrokeColorProperty

Declaration

cs-api-definition
public static readonly RadProperty SelectionStrokeColorProperty

Field Value

RadProperty

SelectionStrokeProperty

Registers the SelectionStroke dependency property.

Declaration

cs-api-definition
public static readonly RadProperty SelectionStrokeProperty

Field Value

RadProperty

ShouldTaggersProcessEntireLinesProperty

Registers the ShouldTaggersProcessEntireLinesProperty dependency property.

Declaration

cs-api-definition
public static readonly RadProperty ShouldTaggersProcessEntireLinesProperty

Field Value

RadProperty

ShowLineNumbersProperty

Registers the ShowLineNumbers dependency property.

Declaration

cs-api-definition
public static readonly RadProperty ShowLineNumbersProperty

Field Value

RadProperty

VerticalScrollBarVisibilityProperty

Registers the VerticalScrollBarVisibility dependency property.

Declaration

cs-api-definition
public static readonly RadProperty VerticalScrollBarVisibilityProperty

Field Value

RadProperty

Properties

AcceptsReturn

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

Declaration

cs-api-definition
public bool AcceptsReturn { get; set; }

Property Value

bool

true if [accepts return]; otherwise, false.

AllowScaling

Gets or sets a value indicating whether the content of the syntax editor can be scaled (zoomed in or out).

Declaration

cs-api-definition
public bool AllowScaling { get; set; }

Property Value

bool

BorderColor

Gets or sets the color of the border around the syntax editor.

Declaration

cs-api-definition
[VsbBrowsable(true)]
public Color BorderColor { get; set; }

Property Value

Color

CaretBrush

Gets or sets the brush used to render the text cursor (caret) in the syntax editor.

Declaration

cs-api-definition
public Brush CaretBrush { get; set; }

Property Value

Brush

CaretColor

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

Declaration

cs-api-definition
public Color CaretColor { get; set; }

Property Value

Color

CaretDisplayMode

Gets or sets the visual style of the text cursor (caret) in the syntax editor, such as block, underline, or normal vertical line.

Declaration

cs-api-definition
public CaretDisplayMode CaretDisplayMode { get; set; }

Property Value

CaretDisplayMode

CaretPosition

Gets the current position of the text cursor (caret) within the document.

Declaration

cs-api-definition
public CaretPosition CaretPosition { get; }

Property Value

CaretPosition

CaretWidth

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

Declaration

cs-api-definition
public double CaretWidth { get; set; }

Property Value

double

Commands

Gets the collection of available editor commands that can be executed on this syntax editor.

Declaration

cs-api-definition
public SyntaxEditorCommands Commands { get; }

Property Value

SyntaxEditorCommands

CurrentInsertMode

Gets or sets the current insert mode.

Declaration

cs-api-definition
public string CurrentInsertMode { get; set; }

Property Value

string

The current insert mode.

Document

Gets or sets the text document that is being displayed and edited in the syntax editor.

Declaration

cs-api-definition
public TextDocument Document { get; set; }

Property Value

TextDocument

Implements ITextDocumentEditor.Document

EditorFontFamily

Gets or sets the font family used to render text in the syntax editor.

Declaration

cs-api-definition
public FontFamily EditorFontFamily { get; set; }

Property Value

FontFamily

EditorFontSize

Gets or sets the font size used to render text in the syntax editor.

Declaration

cs-api-definition
public double EditorFontSize { get; set; }

Property Value

double

EditorPresenter

Gets the presenter component responsible for rendering and displaying the text content in the syntax editor.

Declaration

cs-api-definition
public SyntaxEditorPresenter EditorPresenter { get; }

Property Value

SyntaxEditorPresenter

FoldingManager

Gets the component responsible for handling code folding functionality, allowing collapsing and expanding of code regions.

Declaration

cs-api-definition
public FoldingManager FoldingManager { get; }

Property Value

FoldingManager

HorizontalScrollBar

Gets the horizontal scroll bar element that enables scrolling through content that extends beyond the visible width of the editor.

Declaration

cs-api-definition
public RadScrollBarElement HorizontalScrollBar { get; }

Property Value

RadScrollBarElement

IndentProvider

Gets or sets the indent provider.

Declaration

cs-api-definition
public ISmartIndentProvider IndentProvider { get; set; }

Property Value

ISmartIndentProvider

The indent provider.

InputHandler

Gets or sets an instance of SyntaxEditorInputBehavior that will handle user input.

Declaration

cs-api-definition
public SyntaxEditorInputBehavior InputHandler { get; set; }

Property Value

SyntaxEditorInputBehavior

IntelliPrompts

Gets the intelli prompts.

Declaration

cs-api-definition
public SyntaxEditorIntelliPrompts IntelliPrompts { get; }

Property Value

SyntaxEditorIntelliPrompts

The intelli prompts.

IsCaretVisible

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

Declaration

cs-api-definition
public bool IsCaretVisible { get; set; }

Property Value

bool

IsInUndoGroup

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

Declaration

cs-api-definition
public bool IsInUndoGroup { get; }

Property Value

bool

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

IsOverwriteModeEnabled

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

Declaration

cs-api-definition
public bool IsOverwriteModeEnabled { get; set; }

Property Value

bool

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

IsReadOnly

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

Declaration

cs-api-definition
public bool IsReadOnly { get; set; }

Property Value

bool

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

IsSelectionEnabled

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

Declaration

cs-api-definition
public bool IsSelectionEnabled { get; set; }

Property Value

bool

IsWordWrapEnabled

Gets or sets a value indicating whether text should automatically wrap to the next line when it exceeds the width of the editor.

Declaration

cs-api-definition
public bool IsWordWrapEnabled { get; set; }

Property Value

bool

Margins

Gets the margins collection that defines the space around the text content in the syntax editor.

Declaration

cs-api-definition
public SyntaxEditorMargins Margins { get; }

Property Value

SyntaxEditorMargins

Palette

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

Declaration

cs-api-definition
public SyntaxEditorPalette Palette { get; set; }

Property Value

SyntaxEditorPalette

Properties

Gets the collection of properties that control the behavior and appearance of the syntax editor.

Declaration

cs-api-definition
public SyntaxEditorProperties Properties { get; }

Property Value

SyntaxEditorProperties

ScaleFactor

Gets or sets the zoom level of the syntax editor content as a multiplier value (1.0 is normal size, 2.0 is double size, etc.).

Declaration

cs-api-definition
public double ScaleFactor { get; set; }

Property Value

double

SearchPanel

Gets the popup control that provides find and replace functionality in the editor.

Declaration

cs-api-definition
public FindReplacePopup SearchPanel { get; }

Property Value

FindReplacePopup

Selection

Gets the selection.

Declaration

cs-api-definition
public Selection Selection { get; }

Property Value

Selection

The selection.

SelectionFill

Gets or sets the selection fill.

Declaration

cs-api-definition
public Brush SelectionFill { get; set; }

Property Value

Brush

The selection fill.

SelectionStroke

Gets or sets the selection stroke.

Declaration

cs-api-definition
public Brush SelectionStroke { get; set; }

Property Value

Brush

The selection stroke.

ShowLineNumbers

Gets or sets a value indicating whether line numbers are displayed in the margin of the syntax editor.

Declaration

cs-api-definition
public bool ShowLineNumbers { get; set; }

Property Value

bool

TaggersRegistry

Gets the registry of taggers that provide syntax highlighting and other text analysis functionality for the editor.

Declaration

cs-api-definition
public TaggersRegistry TaggersRegistry { get; }

Property Value

TaggersRegistry

TextFormatDefinitions

Gets the stack of text format definitions that control the visual appearance of text in the syntax editor.

Declaration

cs-api-definition
public TextFormatDefinitionStack TextFormatDefinitions { get; }

Property Value

TextFormatDefinitionStack

UILayersBuilder

Gets or sets the builder component responsible for creating and managing the visual layers in the syntax editor.

Declaration

cs-api-definition
public UILayersBuilder UILayersBuilder { get; set; }

Property Value

UILayersBuilder

UseMonospacedFontOptimization

Gets or sets a value indicating whether to apply rendering optimizations for monospaced fonts in the syntax editor.

Declaration

cs-api-definition
public bool UseMonospacedFontOptimization { get; set; }

Property Value

bool

UseShiftKeyInSelection

Gets or sets a value indicating whether the Shift key is required to extend text selection with arrow keys.

Declaration

cs-api-definition
public bool UseShiftKeyInSelection { get; set; }

Property Value

bool

VerticalScrollBar

Gets the vertical scroll bar element that controls scrolling through the document vertically.

Declaration

cs-api-definition
public RadScrollBarElement VerticalScrollBar { get; }

Property Value

RadScrollBarElement

Viewport

Gets the visible rectangular area of the document currently displayed in the editor.

Declaration

cs-api-definition
public Rect Viewport { get; }

Property Value

Rect

ZoomComboBox

Gets the drop-down list element that allows selecting different zoom levels for the editor content.

Declaration

cs-api-definition
public RadDropDownListElement ZoomComboBox { get; }

Property Value

RadDropDownListElement

Methods

ApplyCachedProperties(bool)

Applies any cached property values to the syntax editor element.

Declaration

cs-api-definition
protected virtual void ApplyCachedProperties(bool clearCache = true)

Parameters

clearCache

bool

Determines whether the properties cache will be cleared after applying values.

ArrangeInnerMargins(RectangleF)

Arranges the inner margins of the editor content area.

Declaration

cs-api-definition
protected virtual RectangleF ArrangeInnerMargins(RectangleF clientRect)

Parameters

clientRect

RectangleF

The client rectangle available for the editor content.

Returns

RectangleF

A rectangle that represents the area after applying inner margins.

ArrangeOuterMargins(RectangleF)

Arranges the outer margins of the editor within the available client rectangle.

Declaration

cs-api-definition
protected virtual RectangleF ArrangeOuterMargins(RectangleF clientRect)

Parameters

clientRect

RectangleF

The client rectangle available for the editor.

Returns

RectangleF

A rectangle that represents the area after applying outer margins.

ArrangeOverride(SizeF)

Arranges the syntax editor element and its children within the final allocated area.

Declaration

cs-api-definition
protected override SizeF ArrangeOverride(SizeF finalSize)

Parameters

finalSize

SizeF

The final area that the parent element allocates to the child element.

Returns

SizeF

The actual size used by the element.

Overrides RadElement.ArrangeOverride(SizeF)

Backspace()

Backspaces this instance.

Declaration

cs-api-definition
public void Backspace()

BeginUndoGroup()

Begins the undo group.

Declaration

cs-api-definition
public void BeginUndoGroup()

CancelUndoGroup()

Cancels the undo group.

Declaration

cs-api-definition
public void CancelUndoGroup()

CloseFindDialog()

Closes the find dialog.

Declaration

cs-api-definition
public void CloseFindDialog()

CompleteCode()

Completes the code.

Declaration

cs-api-definition
public void CompleteCode()

Copy()

Copies the current selection to the clipboard. If no text is selected, copies the entire current line.

Declaration

cs-api-definition
public void Copy()

CrateSyntaxEditorPresenter()

Creates a new syntax editor presenter that will display and manage the text content.

Declaration

cs-api-definition
protected virtual SyntaxEditorPresenter CrateSyntaxEditorPresenter()

Returns

SyntaxEditorPresenter

A new instance of SyntaxEditorPresenter.

CreateChildElements()

Creates the child elements that make up the structure of the editor.

Declaration

cs-api-definition
protected override void CreateChildElements()

Overrides RadElement.CreateChildElements()

CreateSyntaxEditorHistoryState()

Creates the state of the code editor history.

Declaration

cs-api-definition
public SyntaxEditorHistoryState CreateSyntaxEditorHistoryState()

Returns

SyntaxEditorHistoryState

SyntaxEditorHistoryState.

CreateZoomElement()

Creates the zoom drop-down element used for scaling the editor content.

Declaration

cs-api-definition
protected virtual RadDropDownListElement CreateZoomElement()

Returns

RadDropDownListElement

A new RadDropDownListElement configured for zoom level selection.

Cut()

Cuts this instance.

Declaration

cs-api-definition
public void Cut()

DecreaseLineIndent()

Decreases the line indent.

Declaration

cs-api-definition
public void DecreaseLineIndent()

Delete()

Deletes this instance.

Declaration

cs-api-definition
public void Delete()

DeleteFullLine()

Deletes the full line.

Declaration

cs-api-definition
public void DeleteFullLine()

DeleteWordToLeft()

Deletes the word to left.

Declaration

cs-api-definition
public void DeleteWordToLeft()

DeleteWordToRight()

Deletes the word to right.

Declaration

cs-api-definition
public void DeleteWordToRight()

Dispose()

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

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

Declaration

cs-api-definition
protected virtual void Dispose(bool disposing)

Parameters

disposing

bool

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

EndUndoGroup()

Ends the undo group.

Declaration

cs-api-definition
public void EndUndoGroup()

Find(string, int)

Finds the specified search text.

Declaration

cs-api-definition
public Span? Find(string searchText, int startIndex)

Parameters

searchText

string

The search text.

startIndex

int

The start index.

Returns

Span?

System.Nullable<Span>.

Find(string, int, bool)

Finds the specified search text.

Declaration

cs-api-definition
public Span? Find(string searchText, int startIndex, bool useRegularExpression)

Parameters

searchText

string

The search text.

startIndex

int

The start index.

useRegularExpression

bool

If set to true [use regular expression].

Returns

Span?

System.Nullable<Span>.

Find(string, int, bool, bool)

Finds the specified search text.

Declaration

cs-api-definition
public Span? Find(string searchText, int startIndex, bool matchCase, bool useRegularExpression)

Parameters

searchText

string

startIndex

int

matchCase

bool

useRegularExpression

bool

Returns

Span?

FindAll(string)

Finds all spans.

Declaration

cs-api-definition
public IEnumerable<Span> FindAll(string searchText)

Parameters

searchText

string

The search text.

Returns

IEnumerable<Span>

IEnumerable<Span>.

FindAll(string, bool)

Finds all spans.

Declaration

cs-api-definition
public IEnumerable<Span> FindAll(string searchText, bool useRegularExpression)

Parameters

searchText

string

useRegularExpression

bool

Returns

IEnumerable<Span>

FindAll(string, bool, bool)

Finds all spans.

Declaration

cs-api-definition
public IEnumerable<Span> FindAll(string searchText, bool matchCase, bool useRegularExpression)

Parameters

searchText

string

matchCase

bool

useRegularExpression

bool

Returns

IEnumerable<Span>

FindPrevious(string, int, bool)

Finds the specified search text before the current index.

Declaration

cs-api-definition
public Span? FindPrevious(string searchText, int startIndex, bool matchCase)

Parameters

searchText

string

startIndex

int

matchCase

bool

Returns

Span?

GetContentRect(RectangleF)

Calculates the content rectangle based on the available space, accounting for scroll bars and other elements.

Declaration

cs-api-definition
protected virtual RectangleF GetContentRect(RectangleF availableRect)

Parameters

availableRect

RectangleF

The rectangle representing the available space.

Returns

RectangleF

A rectangle representing the area for the editor content.

GetLineBoundingRectangleByLineNumber(int, bool)

Gets the bounding rectangle for a specific line in the document.

Declaration

cs-api-definition
public Rect GetLineBoundingRectangleByLineNumber(int lineNumber, bool cutToBaseline = false)

Parameters

lineNumber

int

The zero-based line number.

cutToBaseline

bool

If true, adjusts the rectangle to only include up to the text baseline.

Returns

Rect

A rectangle representing the bounds of the specified line.

GetLinePartBoundingRectangle(Span, bool)

Gets the bounding rectangle for a specific portion of text within the document.

Declaration

cs-api-definition
public Rect GetLinePartBoundingRectangle(Span span, bool cutToBaseline = false)

Parameters

span

Span

The span of text to get the bounds for.

cutToBaseline

bool

If true, adjusts the rectangle to only include up to the text baseline.

Returns

Rect

A rectangle representing the bounds of the specified text span.

GetPointFromPosition(CaretPosition)

Converts a document caret position to screen coordinates in the editor.

Declaration

cs-api-definition
public Point GetPointFromPosition(CaretPosition position)

Parameters

position

CaretPosition

The caret position in the document.

Returns

Point

The point in screen coordinates corresponding to the caret position.

GetPositionFromControlPoint(Point)

Converts a screen coordinate point to a document caret position.

Declaration

cs-api-definition
public CaretPosition GetPositionFromControlPoint(Point point)

Parameters

point

Point

The point in screen coordinates relative to the control.

Returns

CaretPosition

A caret position in the document corresponding to the specified point.

GetText(CaretPosition, CaretPosition)

Gets the text between the specified start and end positions.

Declaration

cs-api-definition
public string GetText(CaretPosition start, CaretPosition end)

Parameters

start

CaretPosition

end

CaretPosition

Returns

string

GetWordToLeft()

Gets the text within the current word which is to the left of the caret.

Declaration

cs-api-definition
public string GetWordToLeft()

Returns

string

GetWordToRight()

Gets the text within the current word which is to the right of the caret.

Declaration

cs-api-definition
public string GetWordToRight()

Returns

string

HighlightAllMatches(string)

Tries to highlight all span matches via all registered TextSearchHighlightTaggers.

Declaration

cs-api-definition
public void HighlightAllMatches(string searchText)

Parameters

searchText

string

IncreaseLineIndent()

Increases the line indent.

Declaration

cs-api-definition
public void IncreaseLineIndent()

Indent()

Indents this instance.

Declaration

cs-api-definition
public void Indent()

InitializeFields()

Initializes the default field values for the editor element.

Declaration

cs-api-definition
protected override void InitializeFields()

Overrides FrameworkElement.InitializeFields()

Insert(string)

Inserts the specified text.

Declaration

cs-api-definition
public void Insert(string text)

Parameters

text

string

The text.

InsertNewLine()

Inserts the new line.

Declaration

cs-api-definition
public void InsertNewLine()

InsertTab()

Inserts the tab.

Declaration

cs-api-definition
public void InsertTab()

InvalidateEditorLayout()

Invalidates the layout of the editor, forcing a recalculation of text positions and visual elements.

Declaration

cs-api-definition
public void InvalidateEditorLayout()

InvalidateEditorLayout(bool)

Invalidates the layout of the editor, forcing a recalculation of text positions and visual elements.

Declaration

cs-api-definition
public void InvalidateEditorLayout(bool force)

Parameters

force

bool

When true, forces a complete layout recalculation regardless of any optimization conditions.

MeasureInnerMargins(RectangleF)

Measures the inner margins of the editor content area.

Declaration

cs-api-definition
protected virtual RectangleF MeasureInnerMargins(RectangleF clientRect)

Parameters

clientRect

RectangleF

The client rectangle available for the editor content.

Returns

RectangleF

A rectangle that represents the area after applying inner margins.

MeasureOuterMargins(RectangleF)

Measures the outer margins of the editor within the available client rectangle.

Declaration

cs-api-definition
protected virtual RectangleF MeasureOuterMargins(RectangleF clientRect)

Parameters

clientRect

RectangleF

The client rectangle available for the editor.

Returns

RectangleF

A rectangle that represents the area after applying outer margins.

MeasureOverride(SizeF)

Measures the desired size of the syntax editor element based on the available space.

Declaration

cs-api-definition
protected override SizeF MeasureOverride(SizeF availableSize)

Parameters

availableSize

SizeF

The available size that the parent element can allocate to the child element.

Returns

SizeF

The desired size of the element.

Overrides FrameworkElement.MeasureOverride(SizeF)

MoveCurrentLineToTop()

Moves the current line to top.

Declaration

cs-api-definition
public void MoveCurrentLineToTop()

NavigateNextMatch(string)

Navigates to the next matched text in the editor.

Declaration

cs-api-definition
public void NavigateNextMatch(string searchText)

Parameters

searchText

string

NavigatePreviousMatch(string)

Navigates to the next matched text in the editor.

Declaration

cs-api-definition
public void NavigatePreviousMatch(string searchText)

Parameters

searchText

string

OnApplyTemplate()

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

Declaration

cs-api-definition
public override void OnApplyTemplate()

Overrides FrameworkElement.OnApplyTemplate()

OnCommandError(CommandErrorEventArgs)

Raises the CommandError event when a command execution results in an error.

Declaration

cs-api-definition
protected virtual void OnCommandError(CommandErrorEventArgs args)

Parameters

args

CommandErrorEventArgs

The CommandErrorEventArgs instance containing information about the error and the command that failed.

OnCommandExecuted(CommandExecutedEventArgs)

Raises the CommandExecuted event after a command has been successfully executed in the syntax editor.

Declaration

cs-api-definition
protected virtual void OnCommandExecuted(CommandExecutedEventArgs e)

Parameters

e

CommandExecutedEventArgs

The CommandExecutedEventArgs instance containing information about the executed command.

OnCommandExecuting(CommandExecutingEventArgs)

Raises the CommandExecuting event before a command is executed, allowing subscribers to cancel or modify the command execution.

Declaration

cs-api-definition
protected virtual void OnCommandExecuting(CommandExecutingEventArgs args)

Parameters

args

CommandExecutingEventArgs

The CommandExecutingEventArgs instance containing information about the command to be executed and allowing cancellation.

OnDocumentChanged()

Called when the document in the syntax editor has changed, raising the DocumentChanged event.

Declaration

cs-api-definition
protected virtual void OnDocumentChanged()

OnDocumentChanging()

Called before the document in the syntax editor changes, raising the DocumentChanging event.

Declaration

cs-api-definition
protected virtual void OnDocumentChanging()

OnDocumentContentChanged(TextContentChangedEventArgs)

Handles the event.

Declaration

cs-api-definition
protected virtual void OnDocumentContentChanged(TextContentChangedEventArgs args)

Parameters

args

TextContentChangedEventArgs

The TextContentChangedEventArgs instance containing the event data.

OnDocumentContentChanging(TextContentChangingEventArgs)

Handles the event.

Declaration

cs-api-definition
protected virtual void OnDocumentContentChanging(TextContentChangingEventArgs args)

Parameters

args

TextContentChangingEventArgs

The TextContentChangingEventArgs instance containing the event data.

OnGotFocus(EventArgs)

Called when the syntax editor element receives input focus, ensuring the caret becomes visible.

Declaration

cs-api-definition
protected override void OnGotFocus(EventArgs e)

Parameters

e

EventArgs

The event arguments.

Overrides UIElement.OnGotFocus(EventArgs)

OnIsReadOnlyChanged(EventArgs)

Raises the IsReadOnlyChanged event when the read-only state of the syntax editor changes.

Declaration

cs-api-definition
protected virtual void OnIsReadOnlyChanged(EventArgs e)

Parameters

e

EventArgs

The event arguments.

OnLayoutPropertiesChanged()

Raises the LayoutPropertiesChanged event when layout properties of the syntax editor have been modified.

Declaration

cs-api-definition
protected virtual void OnLayoutPropertiesChanged()

OnLoaded()

Called when the element has been successfully loaded. That includes loading of all its children as well.

Declaration

cs-api-definition
protected override void OnLoaded()

Overrides RadElement.OnLoaded()

OnMouseWheelZoom(double)

Called when mouse wheel zoom is requested. Handles changing the scale factor of the editor content based on mouse wheel movement.

Declaration

cs-api-definition
protected virtual bool OnMouseWheelZoom(double delta)

Parameters

delta

double

The mouse wheel delta. Positive values zoom in, negative values zoom out.

Returns

bool

True if the zoom operation was successful; otherwise, false.

OnPreviewSyntaxEditorInput(PreviewSyntaxEditorInputEventArgs)

Raises the PreviewSyntaxEditorInput event when text input is detected in the syntax editor, allowing for processing or cancellation of the input.

Declaration

cs-api-definition
protected virtual void OnPreviewSyntaxEditorInput(PreviewSyntaxEditorInputEventArgs args)

Parameters

args

PreviewSyntaxEditorInputEventArgs

The PreviewSyntaxEditorInputEventArgs instance containing the event data and providing options to handle or cancel the input.

OnPreviewSyntaxEditorKeyDown(PreviewSyntaxEditorKeyEventArgs)

Handles the event.

Declaration

cs-api-definition
protected virtual void OnPreviewSyntaxEditorKeyDown(PreviewSyntaxEditorKeyEventArgs args)

Parameters

args

PreviewSyntaxEditorKeyEventArgs

The PreviewSyntaxEditorKeyEventArgs instance containing the event data.

OnPreviewSyntaxEditorKeyUp(PreviewSyntaxEditorKeyEventArgs)

Raises the PreviewSyntaxEditorKeyUp event when a key up action is detected in the syntax editor.

Declaration

cs-api-definition
protected virtual void OnPreviewSyntaxEditorKeyUp(PreviewSyntaxEditorKeyEventArgs args)

Parameters

args

PreviewSyntaxEditorKeyEventArgs

The event arguments containing information about the key action.

OnPreviewSyntaxEditorMouseLeftButtonDown(PreviewSyntaxEditorMouseButtonEventArgs)

Raises the PreviewSyntaxEditorMouseLeftButtonDown event when a mouse left button down action is detected.

Declaration

cs-api-definition
protected virtual void OnPreviewSyntaxEditorMouseLeftButtonDown(PreviewSyntaxEditorMouseButtonEventArgs args)

Parameters

args

PreviewSyntaxEditorMouseButtonEventArgs

The event arguments containing information about the mouse action.

OnPreviewSyntaxEditorMouseRightButtonDown(PreviewSyntaxEditorMouseButtonEventArgs)

Raises the PreviewSyntaxEditorMouseRightButtonDown event when a mouse right button down action is detected.

Declaration

cs-api-definition
protected virtual void OnPreviewSyntaxEditorMouseRightButtonDown(PreviewSyntaxEditorMouseButtonEventArgs args)

Parameters

args

PreviewSyntaxEditorMouseButtonEventArgs

The event arguments containing information about the mouse action.

OnPropertyChanged(RadPropertyChangedEventArgs)

Called when a property value changes, allowing for handling specific property changes in the syntax editor.

Declaration

cs-api-definition
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

Event arguments containing information about the property that changed.

Overrides UIElement.OnPropertyChanged(RadPropertyChangedEventArgs)

OnScaleFactorChanged()

Called when the zoom level of the editor changes, raising the ScaleFactorChanged event and updating the layout.

Declaration

cs-api-definition
protected virtual void OnScaleFactorChanged()

OnScaleFactorPropertyCoerced(double)

Ensures that the scale factor value is within the valid range between minimum and maximum scale factors.

Declaration

cs-api-definition
protected virtual double OnScaleFactorPropertyCoerced(double baseValue)

Parameters

baseValue

double

The proposed scale factor value to be validated.

Returns

double

A scale factor value that is within the allowed range.

OnSelectionChanged()

Raises the SelectionChanged event when the text selection in the syntax editor changes.

Declaration

cs-api-definition
protected virtual void OnSelectionChanged()

OnViewportChanged()

Raises the ViewportChanged event when the visible area of the syntax editor changes due to scrolling or resizing.

Declaration

cs-api-definition
protected virtual void OnViewportChanged()

OpenFindDialog(string)

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

Declaration

cs-api-definition
public void OpenFindDialog(string searchText)

Parameters

searchText

string

The search text.

PageDown()

Pages down.

Declaration

cs-api-definition
public void PageDown()

PageUp()

Pages up.

Declaration

cs-api-definition
public void PageUp()

Paste()

Pastes this instance.

Declaration

cs-api-definition
public void Paste()

PopulateZoomElement()

Populates the zoom drop-down element with the default scale factors (20% to 400%).

Declaration

cs-api-definition
protected virtual void PopulateZoomElement()

Redo()

Redoes this instance.

Declaration

cs-api-definition
public bool Redo()

Returns

bool

System.Boolean.

ReplaceAllMatches(string, string, bool, bool)

Replaces all matches.

Declaration

cs-api-definition
public int ReplaceAllMatches(string searchText, string replaceText, bool matchCase, bool useRegularExpression)

Parameters

searchText

string

The search text.

replaceText

string

The replace text.

matchCase

bool

The match case.

useRegularExpression

bool

The use regular expression.

Returns

int

System.Int32.

ReplaceNextMatch(string, int, string, bool, bool)

Replaces the next match.

Declaration

cs-api-definition
public bool ReplaceNextMatch(string searchText, int startIndex, string replaceText, bool matchCase, bool useRegularExpression)

Parameters

searchText

string

The search text.

startIndex

int

The start index.

replaceText

string

The replace text.

matchCase

bool

The match case.

useRegularExpression

bool

The use regular expression.

Returns

bool

System.Boolean.

RestoreSyntaxEditorHistoryState(SyntaxEditorHistoryState)

Restores the state of the code editor history.

Declaration

cs-api-definition
public void RestoreSyntaxEditorHistoryState(SyntaxEditorHistoryState historyState)

Parameters

historyState

SyntaxEditorHistoryState

State of the history.

SelectAll()

Selects all text content in the document.

Declaration

cs-api-definition
public void SelectAll()

ShouldArrangeChild(RadElement)

Determines whether a child element should be arranged during the layout process.

Declaration

cs-api-definition
protected override bool ShouldArrangeChild(RadElement child)

Parameters

child

RadElement

The child element to check.

Returns

bool

True if the child should be arranged; otherwise, false.

Overrides RadElement.ShouldArrangeChild(RadElement)

ShouldMeasureChild(RadElement)

Determines whether a child element should be measured during the layout process.

Declaration

cs-api-definition
protected override bool ShouldMeasureChild(RadElement child)

Parameters

child

RadElement

The child element to check.

Returns

bool

True if the child should be measured; otherwise, false.

Overrides RadElement.ShouldMeasureChild(RadElement)

ToggleInsertMode()

Toggles the insert mode.

Declaration

cs-api-definition
public void ToggleInsertMode()

Undo()

Undoes this instance.

Declaration

cs-api-definition
public bool Undo()

Returns

bool

Unindent()

Unindents this instance.

Declaration

cs-api-definition
public void Unindent()

UpdateSelection()

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

Declaration

cs-api-definition
public void UpdateSelection()

ZoomIn(double)

Increases the zoom level of the editor content.

Declaration

cs-api-definition
public void ZoomIn(double zoomFactor = 1.1)

Parameters

zoomFactor

double

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

ZoomOut(double)

Decreases the zoom level of the editor content.

Declaration

cs-api-definition
public void ZoomOut(double zoomFactor = 0.91)

Parameters

zoomFactor

double

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

ZoomTo(double)

Sets the zoom level of the editor content to a specific scale factor.

Declaration

cs-api-definition
public void ZoomTo(double zoomLevel)

Parameters

zoomLevel

double

The scale factor to set (1.0 is normal size, 2.0 is double size, etc.). The minimum supported zoom level is 0.2 and the maximum supported is 4.

Exceptions

ArgumentOutOfRangeException

Thrown when zoomLevel is negative.

Events

CommandError

Occurs when a command execution in the syntax editor results in an error, providing details about the error and the command that failed.

Declaration

cs-api-definition
public event EventHandler<CommandErrorEventArgs> CommandError

Event Value

EventHandler<CommandErrorEventArgs>

CommandExecuted

Occurs after a command has been successfully executed in the syntax editor, providing information about the executed command.

Declaration

cs-api-definition
public event EventHandler<CommandExecutedEventArgs> CommandExecuted

Event Value

EventHandler<CommandExecutedEventArgs>

CommandExecuting

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

Declaration

cs-api-definition
public event EventHandler<CommandExecutingEventArgs> CommandExecuting

Event Value

EventHandler<CommandExecutingEventArgs>

DocumentChanged

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

Declaration

cs-api-definition
public event EventHandler DocumentChanged

Event Value

EventHandler

Implements ITextDocumentEditor.DocumentChanged

DocumentChanging

Occurs before the document in the syntax editor is changed, allowing you to perform actions before a new document is loaded or created.

Declaration

cs-api-definition
public event EventHandler DocumentChanging

Event Value

EventHandler

Implements ITextDocumentEditor.DocumentChanging

DocumentContentChanged

Occurs when document content has been changed.

Declaration

cs-api-definition
public event EventHandler<TextContentChangedEventArgs> DocumentContentChanged

Event Value

EventHandler<TextContentChangedEventArgs>

Implements ITextDocumentEditor.DocumentContentChanged

DocumentContentChanging

Occurs when document content is being changed.

Declaration

cs-api-definition
public event EventHandler<TextContentChangingEventArgs> DocumentContentChanging

Event Value

EventHandler<TextContentChangingEventArgs>

IsReadOnlyChanged

Occurs when the read-only state of the syntax editor changes, indicating whether editing operations are allowed or restricted.

Declaration

cs-api-definition
public event EventHandler IsReadOnlyChanged

Event Value

EventHandler

LayoutPropertiesChanged

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

Declaration

cs-api-definition
public event EventHandler LayoutPropertiesChanged

Event Value

EventHandler

PreviewSyntaxEditorInput

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

Declaration

cs-api-definition
public event EventHandler<PreviewSyntaxEditorInputEventArgs> PreviewSyntaxEditorInput

Event Value

EventHandler<PreviewSyntaxEditorInputEventArgs>

PreviewSyntaxEditorKeyDown

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

Declaration

cs-api-definition
public event EventHandler<PreviewSyntaxEditorKeyEventArgs> PreviewSyntaxEditorKeyDown

Event Value

EventHandler<PreviewSyntaxEditorKeyEventArgs>

PreviewSyntaxEditorKeyUp

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

Declaration

cs-api-definition
public event EventHandler<PreviewSyntaxEditorKeyEventArgs> PreviewSyntaxEditorKeyUp

Event Value

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

cs-api-definition
public event EventHandler<PreviewSyntaxEditorMouseButtonEventArgs> PreviewSyntaxEditorMouseLeftButtonDown

Event Value

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 or other right-click actions.

Declaration

cs-api-definition
public event EventHandler<PreviewSyntaxEditorMouseButtonEventArgs> PreviewSyntaxEditorMouseRightButtonDown

Event Value

EventHandler<PreviewSyntaxEditorMouseButtonEventArgs>

ScaleFactorChanged

Occurs when the scale factor (zoom level) of the syntax editor changes, affecting the display size of text and UI elements.

Declaration

cs-api-definition
public event EventHandler ScaleFactorChanged

Event Value

EventHandler

SelectionChanged

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

Declaration

cs-api-definition
public event EventHandler SelectionChanged

Event Value

EventHandler

ViewportChanged

Occurs when the visible portion (viewport) of the editor content changes due to scrolling or resizing.

Declaration

cs-api-definition
public event EventHandler ViewportChanged

Event Value

EventHandler

In this article
DefinitionConstructorsRadSyntaxEditorElement()FieldsAcceptsReturnPropertyAllowScalingPropertyBorderColorPropertyCaretBrushPropertyDEFAULT_NAMESPACEEditorFontFamilyPropertyEditorFontSizePropertyEditorFontStretchPropertyEditorFontStylePropertyEditorFontWeightPropertyHorizontalScrollBarVisibilityPropertyIndentProviderPropertyInsertModePropertyIsCaretVisiblePropertyIsReadOnlyPropertyIsSelectionEnabledPropertyIsWordWrapEnabledPropertyPalettePropertyScaleFactorPropertySelectionFillColorPropertySelectionFillPropertySelectionStrokeColorPropertySelectionStrokePropertyShouldTaggersProcessEntireLinesPropertyShowLineNumbersPropertyVerticalScrollBarVisibilityPropertyPropertiesAcceptsReturnAllowScalingBorderColorCaretBrushCaretColorCaretDisplayModeCaretPositionCaretWidthCommandsCurrentInsertModeDocumentEditorFontFamilyEditorFontSizeEditorPresenterFoldingManagerHorizontalScrollBarIndentProviderInputHandlerIntelliPromptsIsCaretVisibleIsInUndoGroupIsOverwriteModeEnabledIsReadOnlyIsSelectionEnabledIsWordWrapEnabledMarginsPalettePropertiesScaleFactorSearchPanelSelectionSelectionFillSelectionStrokeShowLineNumbersTaggersRegistryTextFormatDefinitionsUILayersBuilderUseMonospacedFontOptimizationUseShiftKeyInSelectionVerticalScrollBarViewportZoomComboBoxMethodsApplyCachedProperties(bool)ArrangeInnerMargins(RectangleF)ArrangeOuterMargins(RectangleF)ArrangeOverride(SizeF)Backspace()BeginUndoGroup()CancelUndoGroup()CloseFindDialog()CompleteCode()Copy()CrateSyntaxEditorPresenter()CreateChildElements()CreateSyntaxEditorHistoryState()CreateZoomElement()Cut()DecreaseLineIndent()Delete()DeleteFullLine()DeleteWordToLeft()DeleteWordToRight()Dispose()Dispose(bool)EndUndoGroup()Find(string, int)Find(string, int, bool)Find(string, int, bool, bool)FindAll(string)FindAll(string, bool)FindAll(string, bool, bool)FindPrevious(string, int, bool)GetContentRect(RectangleF)GetLineBoundingRectangleByLineNumber(int, bool)GetLinePartBoundingRectangle(Span, bool)GetPointFromPosition(CaretPosition)GetPositionFromControlPoint(Point)GetText(CaretPosition, CaretPosition)GetWordToLeft()GetWordToRight()HighlightAllMatches(string)IncreaseLineIndent()Indent()InitializeFields()Insert(string)InsertNewLine()InsertTab()InvalidateEditorLayout()InvalidateEditorLayout(bool)MeasureInnerMargins(RectangleF)MeasureOuterMargins(RectangleF)MeasureOverride(SizeF)MoveCurrentLineToTop()NavigateNextMatch(string)NavigatePreviousMatch(string)OnApplyTemplate()OnCommandError(CommandErrorEventArgs)OnCommandExecuted(CommandExecutedEventArgs)OnCommandExecuting(CommandExecutingEventArgs)OnDocumentChanged()OnDocumentChanging()OnDocumentContentChanged(TextContentChangedEventArgs)OnDocumentContentChanging(TextContentChangingEventArgs)OnGotFocus(EventArgs)OnIsReadOnlyChanged(EventArgs)OnLayoutPropertiesChanged()OnLoaded()OnMouseWheelZoom(double)OnPreviewSyntaxEditorInput(PreviewSyntaxEditorInputEventArgs)OnPreviewSyntaxEditorKeyDown(PreviewSyntaxEditorKeyEventArgs)OnPreviewSyntaxEditorKeyUp(PreviewSyntaxEditorKeyEventArgs)OnPreviewSyntaxEditorMouseLeftButtonDown(PreviewSyntaxEditorMouseButtonEventArgs)OnPreviewSyntaxEditorMouseRightButtonDown(PreviewSyntaxEditorMouseButtonEventArgs)OnPropertyChanged(RadPropertyChangedEventArgs)OnScaleFactorChanged()OnScaleFactorPropertyCoerced(double)OnSelectionChanged()OnViewportChanged()OpenFindDialog(string)PageDown()PageUp()Paste()PopulateZoomElement()Redo()ReplaceAllMatches(string, string, bool, bool)ReplaceNextMatch(string, int, string, bool, bool)RestoreSyntaxEditorHistoryState(SyntaxEditorHistoryState)SelectAll()ShouldArrangeChild(RadElement)ShouldMeasureChild(RadElement)ToggleInsertMode()Undo()Unindent()UpdateSelection()ZoomIn(double)ZoomOut(double)ZoomTo(double)EventsCommandErrorCommandExecutedCommandExecutingDocumentChangedDocumentChangingDocumentContentChangedDocumentContentChangingIsReadOnlyChangedLayoutPropertiesChangedPreviewSyntaxEditorInputPreviewSyntaxEditorKeyDownPreviewSyntaxEditorKeyUpPreviewSyntaxEditorMouseLeftButtonDownPreviewSyntaxEditorMouseRightButtonDownScaleFactorChangedSelectionChangedViewportChanged
Not finding the help you need?
Contact Support