ClassRadSyntaxEditor
Class RadSyntaxEditor. Implements the ITextDocumentEditor
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.SyntaxEditor.dll
Syntax:
[TelerikToolboxCategory("Input")]
public class RadSyntaxEditor : Control, ITextDocumentEditor, IDisposable
Inheritance: objectRadSyntaxEditor
Implements:
Constructors
RadSyntaxEditor()
Initializes a new instance of the RadSyntaxEditor class.
Declaration
[SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public RadSyntaxEditor()
Fields
AcceptsReturnProperty
Registers the AcceptsReturn property.
Declaration
public static readonly DependencyProperty AcceptsReturnProperty
Field Value
DependencyProperty
AllowScalingProperty
Registers the AllowScaling dependency property.
Declaration
public static readonly DependencyProperty AllowScalingProperty
Field Value
DependencyProperty
AutoScrollToCaretOnTextChangeProperty
Registers the AutoScrollToCaretOnTextChange dependency property.
Declaration
public static readonly DependencyProperty AutoScrollToCaretOnTextChangeProperty
Field Value
DependencyProperty
CaretBrushProperty
Registers the CaretBrush dependency property.
Declaration
public static readonly DependencyProperty CaretBrushProperty
Field Value
DependencyProperty
EditorFontFamilyProperty
Registers the EditorFontFamily dependency property.
Declaration
public static readonly DependencyProperty EditorFontFamilyProperty
Field Value
DependencyProperty
EditorFontSizeProperty
Registers the EditorFontSize dependency property.
Declaration
public static readonly DependencyProperty EditorFontSizeProperty
Field Value
DependencyProperty
HorizontalScrollBarVisibilityProperty
Registers the HorizontalScrollBarVisibility dependency property.
Declaration
public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty
Field Value
DependencyProperty
IndentProviderProperty
Registers the IndentProvider property.
Declaration
public static readonly DependencyProperty IndentProviderProperty
Field Value
DependencyProperty
InsertModeProperty
Registers the InsertMode property.
Declaration
public static readonly DependencyProperty InsertModeProperty
Field Value
DependencyProperty
IsCaretVisibleProperty
Registers the IsCaretVisible dependency property.
Declaration
public static readonly DependencyProperty IsCaretVisibleProperty
Field Value
DependencyProperty
IsReadOnlyProperty
Registers the IsReadOnly property.
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
DependencyProperty
IsSelectionEnabledProperty
Registers the IsSelectionEnabled dependency property.
Declaration
public static readonly DependencyProperty IsSelectionEnabledProperty
Field Value
DependencyProperty
IsWordWrapEnabledProperty
Registers the IsWordWrapEnabled dependency property.
Declaration
public static readonly DependencyProperty IsWordWrapEnabledProperty
Field Value
DependencyProperty
PaletteProperty
Registers the Palette dependency property.
Declaration
public static readonly DependencyProperty PaletteProperty
Field Value
DependencyProperty
ScaleFactorProperty
Registers the ScaleFactor dependency property.
Declaration
public static readonly DependencyProperty ScaleFactorProperty
Field Value
DependencyProperty
SearchPanelWidthProperty
Registers the SearchPanelWidth dependency property.
Declaration
public static readonly DependencyProperty SearchPanelWidthProperty
Field Value
DependencyProperty
SelectionFillProperty
Registers the SelectionFill dependency property.
Declaration
public static readonly DependencyProperty SelectionFillProperty
Field Value
DependencyProperty
SelectionStrokeProperty
Registers the SelectionStroke dependency property.
Declaration
public static readonly DependencyProperty SelectionStrokeProperty
Field Value
DependencyProperty
ShouldTaggersProcessEntireLinesProperty
Registers the ShouldTaggersProcessEntireLines dependency property.
Declaration
public static readonly DependencyProperty ShouldTaggersProcessEntireLinesProperty
Field Value
DependencyProperty
VerticalScrollBarVisibilityProperty
Registers the VerticalScrollBarVisibility dependency property.
Declaration
public static readonly DependencyProperty VerticalScrollBarVisibilityProperty
Field Value
DependencyProperty
Properties
AcceptsReturn
Gets or sets a value indicating whether [accepts return].
Declaration
public bool AcceptsReturn { get; set; }
Property Value
true if [accepts return]; otherwise, false.
AllowScaling
Gets or sets a value indicating whether [allow scaling].
Declaration
public bool AllowScaling { get; set; }
Property Value
true if [allow scaling]; otherwise, false.
AutoScrollToCaretOnTextChange
Gets or sets a value indicating whether the document is automatically scrolled to the CaretPosition when the text inside the document is changed.
Declaration
public bool AutoScrollToCaretOnTextChange { get; set; }
Property Value
CaretBrush
Gets or sets the brush of the active caret in the editor.
Declaration
public Brush CaretBrush { get; set; }
Property Value
Brush
CaretDisplayMode
Gets or sets the caret display mode.
Declaration
public CaretDisplayMode CaretDisplayMode { get; set; }
Property Value
The caret display mode.
CaretPosition
Gets the caret position.
Declaration
public CaretPosition CaretPosition { get; }
Property Value
The caret position.
Commands
Gets the commands.
Declaration
public SyntaxEditorCommands Commands { get; }
Property Value
The commands.
CurrentInsertMode
Gets or sets the current insert mode.
Declaration
public string CurrentInsertMode { get; set; }
Property Value
The current insert mode.
Document
Gets or sets the text document.
Declaration
public TextDocument Document { get; set; }
Property Value
The document.
Implements
EditorFontFamily
Gets or sets a value indicating the font family of the text editor.
Declaration
public FontFamily EditorFontFamily { get; set; }
Property Value
FontFamily
EditorFontSize
Gets or sets a value indicating the font size of the text editor.
EditorPresenter
Gets the editor presenter.
Declaration
public SyntaxEditorPresenter EditorPresenter { get; }
Property Value
The editor presenter.
FoldingManager
Gets the folding manager.
Declaration
public FoldingManager FoldingManager { get; }
Property Value
The folding manager.
HorizontalScrollBar
Gets the horizontal scroll bar.
Declaration
public ScrollBar HorizontalScrollBar { get; }
Property Value
ScrollBar
The horizontal scroll bar.
HorizontalScrollBarVisibility
Gets or sets the horizontal scroll bar visibility.
Declaration
public ScrollBarVisibility HorizontalScrollBarVisibility { get; set; }
Property Value
ScrollBarVisibility
The horizontal scroll bar visibility.
IndentProvider
Gets or sets the indent provider.
Declaration
public ISmartIndentProvider IndentProvider { get; set; }
Property Value
The indent provider.
IntelliPrompts
Gets the intelli prompts.
Declaration
public SyntaxEditorIntelliPrompts IntelliPrompts { get; }
Property Value
The intelli prompts.
IsCaretVisible
Gets or sets a value indicating whether this instance is caret visible.
Declaration
public bool IsCaretVisible { get; set; }
Property Value
true if this instance is caret visible; otherwise, false.
IsInUndoGroup
Gets a value indicating whether this instance is in undo group.
Declaration
public bool IsInUndoGroup { get; }
Property Value
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
public bool IsOverwriteModeEnabled { get; set; }
Property Value
true if this instance is overwrite mode enabled; otherwise, false.
IsReadOnly
Gets or sets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; set; }
Property Value
true if this instance is read only; otherwise, false.
IsSelectionEnabled
Gets or sets a value indicating whether this instance is selection enabled.
Declaration
public bool IsSelectionEnabled { get; set; }
Property Value
true if this instance is selection enabled; otherwise, false.
IsWordWrapEnabled
Gets or sets a value indicating whether the word wrapping mode is enabled.
KeyBindings
Gets the key bindings.
Declaration
public KeyBindingUtilities KeyBindings { get; }
Property Value
The key bindings.
Margins
Gets the margins.
Declaration
public SyntaxEditorMargins Margins { get; }
Property Value
The margins.
Palette
Gets or sets the palette of syntax elements' colors used for this RadSyntaxEditor instance.
Declaration
public SyntaxEditorPalette Palette { get; set; }
Property Value
Properties
Gets the properties.
Declaration
public SyntaxEditorProperties Properties { get; }
Property Value
The properties.
ScaleFactor
Gets or sets the scale factor.
Declaration
public double ScaleFactor { get; set; }
Property Value
The scale factor.
SearchPanelWidth
Gets or sets a value indicating the width of the search panel.
Selection
Gets the selection.
Declaration
public Selection Selection { get; }
Property Value
The selection.
SelectionFill
Gets or sets the selection fill.
Declaration
public Brush SelectionFill { get; set; }
Property Value
Brush
The selection fill.
SelectionStroke
Gets or sets the selection stroke.
Declaration
public Brush SelectionStroke { get; set; }
Property Value
Brush
The selection stroke.
ShouldTaggersProcessEntireLines
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.
Declaration
public bool ShouldTaggersProcessEntireLines { get; set; }
Property Value
TaggersRegistry
Gets the taggers registry.
Declaration
public TaggersRegistry TaggersRegistry { get; }
Property Value
The taggers registry.
TextFormatDefinitions
Gets the text format definitions.
Declaration
public TextFormatDefinitionStack TextFormatDefinitions { get; }
Property Value
The text format definitions.
TouchMarkerDragDistance
Gets or sets a value indicating the touch drag area around a touch selection marker.
Declaration
public double TouchMarkerDragDistance { get; set; }
Property Value
UILayersBuilder
Gets or sets the UI layers builder.
Declaration
public UILayersBuilder UILayersBuilder { get; set; }
Property Value
The UI layers builder.
UseMonospacedFontOptimization
Gets or sets a value indicating whether [use monospaced font optimization].
Declaration
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Monospaced")]
public bool UseMonospacedFontOptimization { get; set; }
Property Value
true if [use monospaced font optimization]; otherwise, false.
UseShiftKeyInSelection
Gets or sets a value indicating whether [use shift key in selection].
Declaration
public bool UseShiftKeyInSelection { get; set; }
Property Value
true if [use shift key in selection]; otherwise, false.
VerticalScrollBar
Gets the vertical scroll bar.
Declaration
public ScrollBar VerticalScrollBar { get; }
Property Value
ScrollBar
The vertical scroll bar.
VerticalScrollBarVisibility
Gets or sets the vertical scroll bar visibility.
Declaration
public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
Property Value
ScrollBarVisibility
The vertical scroll bar visibility.
Viewport
Gets the viewport.
Declaration
public Rect Viewport { get; }
Property Value
Rect
The viewport.
Methods
CreateSyntaxEditorHistoryState()
Creates the state of the code editor history.
Declaration
public SyntaxEditorHistoryState CreateSyntaxEditorHistoryState()
Returns
SyntaxEditorHistoryState.
DecreaseLineIndent()
Decreases the line indent.
Declaration
public void DecreaseLineIndent()
DeleteWordToLeft()
Deletes the word to left.
Declaration
public void DeleteWordToLeft()
DeleteWordToRight()
Deletes the word to right.
Declaration
public void DeleteWordToRight()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Implements
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Find(string, int)
Finds the specified search text.
Find(string, int, bool)
Finds the specified search text.
Declaration
public Span? Find(string searchText, int startIndex, bool useRegularExpression)
Parameters
searchText
The search text or regex pattern.
startIndex
The start index to search in the document.
useRegularExpression
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.
Find(string, int, bool, bool)
Finds the specified search text.
Declaration
public Span? Find(string searchText, int startIndex, bool matchCase, bool useRegularExpression)
Parameters
searchText
The search text or regex pattern.
startIndex
The start index to search in the document.
matchCase
Indicates whether the search is case-sensitive.
useRegularExpression
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.
Find(string, int, bool, bool, bool)
Finds the specified search text.
Declaration
public Span? Find(string searchText, int startIndex, bool matchCase, bool useRegularExpression, bool matchWord)
Parameters
searchText
The search text or regex pattern.
startIndex
The start index to search in the document.
matchCase
Indicates whether the search is case-sensitive.
useRegularExpression
If set to true indicates that the search text will be used as regular expression search pattern.
matchWord
If set to true, indicates that the search finds whole words only.
Returns
Span?
Nullable Span which, when not null, indicates the found text.
FindAll(string)
Finds all spans with the given searchText.
Declaration
public IEnumerable<Span> FindAll(string searchText)
Parameters
searchText
The search text.
Returns
List of all matched spans.
FindAll(string, bool)
Finds all spans with the given searchText or regex pattern.
Declaration
public IEnumerable<Span> FindAll(string searchText, bool useRegularExpression)
Parameters
searchText
The search text or regex pattern.
useRegularExpression
If set to true indicates that the search text will be used as regular expression search pattern.
Returns
List of all matched spans.
FindAll(string, bool, bool)
Finds all spans with the given searchText or regex pattern.
Declaration
public IEnumerable<Span> FindAll(string searchText, bool matchCase, bool useRegularExpression)
Parameters
searchText
The search text or regex pattern.
matchCase
Indicates whether the search is case-sensitive.
useRegularExpression
If set to true indicates that the search text will be used as regular expression search pattern.
Returns
List of all matched spans.
FindAll(string, bool, bool, bool)
Finds all spans with the given searchText or regex pattern.
Declaration
public IEnumerable<Span> FindAll(string searchText, bool matchCase, bool useRegularExpression, bool matchWord)
Parameters
searchText
The search text or regex pattern.
matchCase
Indicates whether the search is case-sensitive.
useRegularExpression
If set to true indicates that the search text will be used as regular expression search pattern.
matchWord
If set to true, indicates that the search finds whole words only.
Returns
List of all matched spans.
FindPrevious(string, int, bool)
Finds the specified search text before the current index.
Declaration
public Span? FindPrevious(string searchText, int startIndex, bool matchCase)
Parameters
searchText
The search text or regex pattern.
startIndex
The start index to search in the document.
matchCase
Indicates whether the search is case-sensitive.
Returns
Span?
Nullable Span which, when not null, indicates the found text.
FindPrevious(string, int, bool, bool, bool)
Finds the specified search text before the current index.
Declaration
public Span? FindPrevious(string searchText, int startIndex, bool matchCase, bool useRegularExpression, bool matchWord)
Parameters
searchText
The search text or regex pattern.
startIndex
The start index to search in the document.
matchCase
Indicates whether the search is case-sensitive.
useRegularExpression
If set to true indicates that the search text will be used as regular expression search pattern.
matchWord
If set to true, indicates that the search finds whole words only.
Returns
Span?
Nullable Span which, when not null, indicates the found text.
GetLineBoundingRectangleByLineNumber(int, bool)
Gets the line bounding rectangle by line number.
GetLinePartBoundingRectangle(Span, bool)
Gets the line part bounding rectangle.
GetPointFromPosition(CaretPosition)
Gets the point from position.
Declaration
public Point GetPointFromPosition(CaretPosition position)
Parameters
position
The position.
Returns
Point
Point.
GetPositionFromPoint(Point)
Gets the position from point.
Declaration
public CaretPosition GetPositionFromPoint(Point point)
Parameters
point
Point
The point.
Returns
CaretPosition.
GotoLine(int, bool)
Navigates to the line by number.
HighlightAllMatches(string)
Tries to highlight all span matches via all registered TextSearchHighlightTaggers.
Declaration
public void HighlightAllMatches(string searchText)
Parameters
searchText
IncreaseLineIndent()
Increases the line indent.
Declaration
public void IncreaseLineIndent()
InitializeTouch(SyntaxEditorPresenter)
Called when touch manager methods are being initialized for the SyntaxEditorPresenter.
Declaration
protected virtual void InitializeTouch(SyntaxEditorPresenter presenter)
Parameters
presenter
Insert(string)
Inserts the specified text.
InvalidateEditorLayout()
Invalidates the editor layout.
Declaration
public void InvalidateEditorLayout()
InvalidateEditorLayout(bool)
Invalidates the editor layout.
MeasureOverride(Size)
Called when control is measured.
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
constraint
Size
Returns
Size
MoveCurrentLineToBottom()
Moves the current line to bottom.
Declaration
[SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
public void MoveCurrentLineToBottom()
MoveCurrentLineToTop()
Moves the current line to top.
Declaration
public void MoveCurrentLineToTop()
NavigateNextMatch(string)
Navigates to the next matched text in the editor.
Declaration
public void NavigateNextMatch(string searchText)
Parameters
searchText
The search text.
NavigatePreviousMatch(string)
Navigates to the next matched text in the editor.
Declaration
public void NavigatePreviousMatch(string searchText)
Parameters
searchText
The search text.
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call .
Declaration
public override void OnApplyTemplate()
OnCommandError(CommandErrorEventArgs)
Handles the event.
Declaration
protected virtual void OnCommandError(CommandErrorEventArgs args)
Parameters
args
The CommandErrorEventArgs instance containing the event data.
OnCommandExecuted(CommandExecutedEventArgs)
Handles the event.
Declaration
protected virtual void OnCommandExecuted(CommandExecutedEventArgs e)
Parameters
e
The CommandExecutedEventArgs instance containing the event data.
OnCommandExecuting(CommandExecutingEventArgs)
Handles the event.
Declaration
protected virtual void OnCommandExecuting(CommandExecutingEventArgs args)
Parameters
args
The CommandExecutingEventArgs instance containing the event data.
OnCreateAutomationPeer()
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
The type-specific AutomationPeer implementation.
OnDocumentChanged()
Called when [document changed].
Declaration
protected virtual void OnDocumentChanged()
OnDocumentChanging()
Called when [document changing].
Declaration
protected virtual void OnDocumentChanging()
OnDocumentContentChanged(TextContentChangedEventArgs)
Handles the event.
Declaration
protected virtual void OnDocumentContentChanged(TextContentChangedEventArgs args)
Parameters
args
The TextContentChangedEventArgs instance containing the event data.
OnDocumentContentChanging(TextContentChangingEventArgs)
Handles the event.
Declaration
protected virtual void OnDocumentContentChanging(TextContentChangingEventArgs args)
Parameters
args
The TextContentChangingEventArgs instance containing the event data.
OnGotFocus(RoutedEventArgs)
Invoked whenever an unhandled event reaches this element in its route.
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
e
RoutedEventArgs
The RoutedEventArgs that contains the event data.
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnIsReadOnlyChanged(EventArgs)
Handles the event.
OnLayoutPropertiesChanged()
Called when [layout properties changed].
Declaration
protected virtual void OnLayoutPropertiesChanged()
OnMouseWheelZoom(double)
Called when mouse wheel zoom is requested.
OnPreviewSyntaxEditorInput(PreviewSyntaxEditorInputEventArgs)
Handles the event.
Declaration
protected virtual void OnPreviewSyntaxEditorInput(PreviewSyntaxEditorInputEventArgs args)
Parameters
args
PreviewSyntaxEditorInputEventArgs
The PreviewSyntaxEditorInputEventArgs instance containing the event data.
OnPreviewSyntaxEditorKeyDown(PreviewSyntaxEditorKeyEventArgs)
Handles the event.
Declaration
protected virtual void OnPreviewSyntaxEditorKeyDown(PreviewSyntaxEditorKeyEventArgs args)
Parameters
args
PreviewSyntaxEditorKeyEventArgs
The PreviewSyntaxEditorKeyEventArgs instance containing the event data.
OnPreviewSyntaxEditorKeyUp(PreviewSyntaxEditorKeyEventArgs)
Handles the event.
Declaration
protected virtual void OnPreviewSyntaxEditorKeyUp(PreviewSyntaxEditorKeyEventArgs args)
Parameters
args
PreviewSyntaxEditorKeyEventArgs
The PreviewSyntaxEditorKeyEventArgs instance containing the event data.
OnPreviewSyntaxEditorMouseLeftButtonDown(PreviewSyntaxEditorMouseButtonEventArgs)
Handles the event.
Declaration
protected virtual void OnPreviewSyntaxEditorMouseLeftButtonDown(PreviewSyntaxEditorMouseButtonEventArgs args)
Parameters
args
PreviewSyntaxEditorMouseButtonEventArgs
The PreviewSyntaxEditorMouseButtonEventArgs instance containing the event data.
OnPreviewSyntaxEditorMouseRightButtonDown(PreviewSyntaxEditorMouseButtonEventArgs)
Handles the event.
Declaration
protected virtual void OnPreviewSyntaxEditorMouseRightButtonDown(PreviewSyntaxEditorMouseButtonEventArgs args)
Parameters
args
PreviewSyntaxEditorMouseButtonEventArgs
The PreviewSyntaxEditorMouseButtonEventArgs instance containing the event data.
OnPropertyChanged(DependencyPropertyChangedEventArgs)
Occurs when property changes.
Declaration
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
Parameters
e
DependencyPropertyChangedEventArgs
OnScaleFactorChanged()
Called when [scale factor changed].
Declaration
protected virtual void OnScaleFactorChanged()
OnSearchPanelClosed()
Called when search panel is closed.
Declaration
protected virtual void OnSearchPanelClosed()
OnSearchPanelOpened()
Called when search panel is opened.
Declaration
protected virtual void OnSearchPanelOpened()
OnSelectionChanged()
Called when the selection changes.
Declaration
protected virtual void OnSelectionChanged()
OnTextSearched(TextSearchedEventArgs)
Handles the event.
Declaration
protected virtual void OnTextSearched(TextSearchedEventArgs args)
Parameters
args
The TextSearchedEventArgs instance containing the event data.
OnViewportChanged()
Called when [viewport changed].
Declaration
protected virtual void OnViewportChanged()
OpenFindDialog(string)
Opens the find dialog with the specified searchText in the search textbox.
Declaration
public void OpenFindDialog(string searchText)
Parameters
searchText
The search text.
Redo()
Redoes this instance.
ReplaceAllMatches(string, string, bool, bool)
Replaces all matches.
Declaration
public int ReplaceAllMatches(string searchText, string replaceText, bool matchCase, bool useRegularExpression)
Parameters
searchText
The search text.
replaceText
The replace text.
matchCase
The match case.
useRegularExpression
The use regular expression.
Returns
System.Int32.
ReplaceAllMatches(string, string, bool, bool, bool)
Replaces all matches.
Declaration
public int ReplaceAllMatches(string searchText, string replaceText, bool matchCase, bool useRegularExpression, bool matchWord)
Parameters
searchText
The search text.
replaceText
The replace text.
matchCase
The match case.
useRegularExpression
The use regular expression.
matchWord
The match word.
Returns
System.Int32.
ReplaceNextMatch(string, int, string, bool, bool)
Replaces the next match.
Declaration
public bool ReplaceNextMatch(string searchText, int startIndex, string replaceText, bool matchCase, bool useRegularExpression)
Parameters
searchText
The search text.
startIndex
The start index.
replaceText
The replace text.
matchCase
The match case.
useRegularExpression
The use regular expression.
Returns
System.Boolean.
RestoreSyntaxEditorHistoryState(SyntaxEditorHistoryState)
Restores the state of the code editor history.
Declaration
public void RestoreSyntaxEditorHistoryState(SyntaxEditorHistoryState historyState)
Parameters
historyState
State of the history.
ToggleInsertMode()
Toggles the insert mode.
Declaration
public void ToggleInsertMode()
ZoomIn(double)
Zooms in.
Declaration
public void ZoomIn(double zoomFactor = 1.1)
Parameters
zoomFactor
The zoom increase factor. Should be a number greater than 1. Default value is 1.1.
ZoomOut(double)
Zooms out.
Declaration
public void ZoomOut(double zoomFactor = 0.91)
Parameters
zoomFactor
The zoom decrease factor. Should be a number less than 1. Default value is 0.91.
ZoomTo(double)
Zooms to particular zoom level.
Declaration
public void ZoomTo(double zoomLevel)
Parameters
zoomLevel
The zoom level.
Exceptions
ZoomLevel must be non negative.
Events
CommandError
Occurs when command error is produced.
Declaration
public event EventHandler<CommandErrorEventArgs> CommandError
Event Value
CommandExecuted
Occurs when command is executed.
Declaration
public event EventHandler<CommandExecutedEventArgs> CommandExecuted
Event Value
CommandExecuting
Occurs when command is executing.
Declaration
public event EventHandler<CommandExecutingEventArgs> CommandExecuting
Event Value
DocumentChanged
Occurs when document has been changed.
Declaration
public event EventHandler DocumentChanged
Event Value
Implements
DocumentChanging
Occurs when document is being changed.
Declaration
public event EventHandler DocumentChanging
Event Value
Implements
DocumentContentChanged
DocumentContentChanged event.
Declaration
public event EventHandler<TextContentChangedEventArgs> DocumentContentChanged
Event Value
Implements
DocumentContentChanging
DocumentContentChanging event.
Declaration
public event EventHandler<TextContentChangingEventArgs> DocumentContentChanging
Event Value
IsReadOnlyChanged
Occurs when the readonly state has changed.
LayoutPropertiesChanged
Occurs when layout properties are changed.
Declaration
public event EventHandler LayoutPropertiesChanged
Event Value
PreviewSyntaxEditorInput
Occurs when text input in the syntax editor is starting.
Declaration
public event EventHandler<PreviewSyntaxEditorInputEventArgs> PreviewSyntaxEditorInput
Event Value
PreviewSyntaxEditorKeyDown
Occurs when key down is pressed.
Declaration
public event EventHandler<PreviewSyntaxEditorKeyEventArgs> PreviewSyntaxEditorKeyDown
Event Value
PreviewSyntaxEditorKeyUp
Occurs when a key is released.
Declaration
public event EventHandler<PreviewSyntaxEditorKeyEventArgs> PreviewSyntaxEditorKeyUp
Event Value
PreviewSyntaxEditorMouseLeftButtonDown
Occurs when mouse left button down is pressed.
Declaration
public event EventHandler<PreviewSyntaxEditorMouseButtonEventArgs> PreviewSyntaxEditorMouseLeftButtonDown
Event Value
PreviewSyntaxEditorMouseRightButtonDown
Occurs when mouse right button down is pressed.
Declaration
public event EventHandler<PreviewSyntaxEditorMouseButtonEventArgs> PreviewSyntaxEditorMouseRightButtonDown
Event Value
ScaleFactorChanged
Occurs when scale factor changes.
SearchPanelClosed
Occurs when the search panel is closed.
SearchPanelOpened
Occurs when the search panel is opened.
SelectionChanged
Occurs when the selection of the control changes.
TextSearched
Occurs when a text is searched in the control.
Declaration
public event EventHandler<TextSearchedEventArgs> TextSearched
Event Value
ViewportChanged
Occurs when the viewport changes.