Class RadSyntaxEditor
Class RadSyntaxEditor.
Implements the IText
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.SyntaxEditor.dll
Syntax
[TelerikToolboxCategory("Input")]
public class RadSyntaxEditor : Control, IThemable, ITextDocumentEditor, IDisposable
Constructors
RadSyntaxEditor()
Fields
AcceptsReturnProperty
Registers the Accepts
Declaration
public static readonly DependencyProperty AcceptsReturnProperty
Field Value
System.
|
AllowScalingProperty
Registers the Allow
Declaration
public static readonly DependencyProperty AllowScalingProperty
Field Value
System.
|
AutoScrollToCaretOnTextChangeProperty
Registers the Auto
Declaration
public static readonly DependencyProperty AutoScrollToCaretOnTextChangeProperty
Field Value
System.
|
CaretBrushProperty
Registers the Caret
Declaration
public static readonly DependencyProperty CaretBrushProperty
Field Value
System.
|
EditorFontFamilyProperty
Registers the Editor
Declaration
public static readonly DependencyProperty EditorFontFamilyProperty
Field Value
System.
|
EditorFontSizeProperty
Registers the Editor
Declaration
public static readonly DependencyProperty EditorFontSizeProperty
Field Value
System.
|
HorizontalScrollBarVisibilityProperty
Registers the Horizontal
Declaration
public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty
Field Value
System.
|
IndentProviderProperty
Registers the Indent
Declaration
public static readonly DependencyProperty IndentProviderProperty
Field Value
System.
|
InsertModeProperty
Registers the Insert
Declaration
public static readonly DependencyProperty InsertModeProperty
Field Value
System.
|
IsCaretVisibleProperty
Registers the Is
Declaration
public static readonly DependencyProperty IsCaretVisibleProperty
Field Value
System.
|
IsReadOnlyProperty
Registers the Is
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
System.
|
IsSelectionEnabledProperty
Registers the Is
Declaration
public static readonly DependencyProperty IsSelectionEnabledProperty
Field Value
System.
|
IsWordWrapEnabledProperty
Registers the Is
Declaration
public static readonly DependencyProperty IsWordWrapEnabledProperty
Field Value
System.
|
PaletteProperty
Registers the Palette dependency property.
Declaration
public static readonly DependencyProperty PaletteProperty
Field Value
System.
|
ScaleFactorProperty
Registers the Scale
Declaration
public static readonly DependencyProperty ScaleFactorProperty
Field Value
System.
|
SearchPanelWidthProperty
Registers the Search
Declaration
public static readonly DependencyProperty SearchPanelWidthProperty
Field Value
System.
|
SelectionFillProperty
Registers the Selection
Declaration
public static readonly DependencyProperty SelectionFillProperty
Field Value
System.
|
SelectionStrokeProperty
Registers the Selection
Declaration
public static readonly DependencyProperty SelectionStrokeProperty
Field Value
System.
|
ShouldTaggersProcessEntireLinesProperty
Registers the Should
Declaration
public static readonly DependencyProperty ShouldTaggersProcessEntireLinesProperty
Field Value
System.
|
VerticalScrollBarVisibilityProperty
Registers the Vertical
Declaration
public static readonly DependencyProperty VerticalScrollBarVisibilityProperty
Field Value
System.
|
Properties
AcceptsReturn
Gets or sets a value indicating whether [accepts return].
Declaration
public bool AcceptsReturn { get; set; }
Property Value
System.
|
AllowScaling
Gets or sets a value indicating whether [allow scaling].
Declaration
public bool AllowScaling { get; set; }
Property Value
System.
|
AutoScrollToCaretOnTextChange
Gets or sets a value indicating whether the document is automatically scrolled to the Caret
Declaration
public bool AutoScrollToCaretOnTextChange { get; set; }
Property Value
System.
|
CaretBrush
Gets or sets the brush of the active caret in the editor.
Declaration
public Brush CaretBrush { get; set; }
Property Value
System.
|
CaretDisplayMode
Gets or sets the caret display mode.
Declaration
public CaretDisplayMode CaretDisplayMode { get; set; }
Property Value
Caret The caret display mode. |
CaretPosition
Gets the caret position.
Declaration
public CaretPosition CaretPosition { get; }
Property Value
Caret The caret position. |
Commands
Gets the commands.
Declaration
public SyntaxEditorCommands Commands { get; }
Property Value
Syntax The commands. |
CurrentInsertMode
Gets or sets the current insert mode.
Declaration
public string CurrentInsertMode { get; set; }
Property Value
System. The current insert mode. |
Document
Gets or sets the text document.
Declaration
public TextDocument Document { get; set; }
Property Value
Text 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
System.
|
EditorFontSize
Gets or sets a value indicating the font size of the text editor.
Declaration
public double EditorFontSize { get; set; }
Property Value
System.
|
EditorPresenter
Gets the editor presenter.
Declaration
public SyntaxEditorPresenter EditorPresenter { get; }
Property Value
Syntax The editor presenter. |
FoldingManager
Gets the folding manager.
Declaration
public FoldingManager FoldingManager { get; }
Property Value
Folding The folding manager. |
HorizontalScrollBar
Gets the horizontal scroll bar.
Declaration
public ScrollBar HorizontalScrollBar { get; }
Property Value
System. The horizontal scroll bar. |
HorizontalScrollBarVisibility
Gets or sets the horizontal scroll bar visibility.
Declaration
public ScrollBarVisibility HorizontalScrollBarVisibility { get; set; }
Property Value
System. The horizontal scroll bar visibility. |
IndentProvider
Gets or sets the indent provider.
Declaration
public ISmartIndentProvider IndentProvider { get; set; }
Property Value
ISmart The indent provider. |
IntelliPrompts
Gets the intelli prompts.
Declaration
public SyntaxEditorIntelliPrompts IntelliPrompts { get; }
Property Value
Syntax The intelli prompts. |
IsCaretVisible
Gets or sets a value indicating whether this instance is caret visible.
Declaration
public bool IsCaretVisible { get; set; }
Property Value
System.
|
IsInUndoGroup
Gets a value indicating whether this instance is in undo group.
Declaration
public bool IsInUndoGroup { get; }
Property Value
System.
|
IsOverwriteModeEnabled
Gets or sets a value indicating whether this instance is overwrite mode enabled.
Declaration
public bool IsOverwriteModeEnabled { get; set; }
Property Value
System.
|
IsReadOnly
Gets or sets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; set; }
Property Value
System.
|
IsSelectionEnabled
Gets or sets a value indicating whether this instance is selection enabled.
Declaration
public bool IsSelectionEnabled { get; set; }
Property Value
System.
|
IsWordWrapEnabled
Gets or sets a value indicating whether the word wrapping mode is enabled.
Declaration
public bool IsWordWrapEnabled { get; set; }
Property Value
System.
|
KeyBindings
Gets the key bindings.
Declaration
public KeyBindingUtilities KeyBindings { get; }
Property Value
Key The key bindings. |
Margins
Gets the margins.
Declaration
public SyntaxEditorMargins Margins { get; }
Property Value
Syntax The margins. |
Palette
Gets or sets the palette of syntax elements' colors used for this Rad
Declaration
public SyntaxEditorPalette Palette { get; set; }
Property Value
Properties
Gets the properties.
Declaration
public SyntaxEditorProperties Properties { get; }
Property Value
Syntax The properties. |
ScaleFactor
Gets or sets the scale factor.
Declaration
public double ScaleFactor { get; set; }
Property Value
System. The scale factor. |
SearchPanelWidth
Gets or sets a value indicating the width of the search panel.
Declaration
public double SearchPanelWidth { get; set; }
Property Value
System.
|
Selection
Gets the selection.
Declaration
public Selection Selection { get; }
Property Value
Selection
The selection. |
SelectionFill
Gets or sets the selection fill.
Declaration
public Brush SelectionFill { get; set; }
Property Value
System. The selection fill. |
SelectionStroke
Gets or sets the selection stroke.
Declaration
public Brush SelectionStroke { get; set; }
Property Value
System. 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
System.
|
TaggersRegistry
Gets the taggers registry.
Declaration
public TaggersRegistry TaggersRegistry { get; }
Property Value
Taggers The taggers registry. |
TextFormatDefinitions
Gets the text format definitions.
Declaration
public TextFormatDefinitionStack TextFormatDefinitions { get; }
Property Value
Text 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
System.
|
UILayersBuilder
Gets or sets the UI layers builder.
Declaration
public UILayersBuilder UILayersBuilder { get; set; }
Property Value
UILayers The UI layers builder. |
UseMonospacedFontOptimization
Gets or sets a value indicating whether [use monospaced font optimization].
Declaration
public bool UseMonospacedFontOptimization { get; set; }
Property Value
System.
|
UseShiftKeyInSelection
Gets or sets a value indicating whether [use shift key in selection].
Declaration
public bool UseShiftKeyInSelection { get; set; }
Property Value
System.
|
VerticalScrollBar
Gets the vertical scroll bar.
Declaration
public ScrollBar VerticalScrollBar { get; }
Property Value
System. The vertical scroll bar. |
VerticalScrollBarVisibility
Gets or sets the vertical scroll bar visibility.
Declaration
public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
Property Value
System. The vertical scroll bar visibility. |
Viewport
Gets the viewport.
Declaration
public Rect Viewport { get; }
Property Value
System. The viewport. |
Methods
Backspace()
Backspaces this instance.
Declaration
public void Backspace()
BeginUndoGroup()
Begins the undo group.
Declaration
public void BeginUndoGroup()
CancelUndoGroup()
Cancels the undo group.
Declaration
public void CancelUndoGroup()
CloseFindDialog()
Closes the find dialog.
Declaration
public void CloseFindDialog()
CompleteCode()
Completes the code.
Declaration
public void CompleteCode()
Copy()
Copies this instance.
Declaration
public void Copy()
CreateSyntaxEditorHistoryState()
Creates the state of the code editor history.
Declaration
public SyntaxEditorHistoryState CreateSyntaxEditorHistoryState()
Returns
Syntax SyntaxEditorHistoryState. |
Cut()
Cuts this instance.
Declaration
public void Cut()
DecreaseLineIndent()
Decreases the line indent.
Declaration
public void DecreaseLineIndent()
Delete()
Deletes this instance.
Declaration
public void Delete()
DeleteFullLine()
Deletes the full line.
Declaration
public void DeleteFullLine()
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()
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
System.
|
EndUndoGroup()
Ends the undo group.
Declaration
public void EndUndoGroup()
Find(String, Int32)
Finds the specified search text.
Declaration
public Nullable<Span> Find(string searchText, int startIndex)
Parameters
System. The search text. |
System. The start index. |
Returns
System. System.Nullable<Span>. |
Find(String, Int32, Boolean)
Finds the specified search text.
Declaration
public Nullable<Span> Find(string searchText, int startIndex, bool useRegularExpression)
Parameters
System. The search text or regex pattern. |
System. The start index to search in the document. |
System. If set to |
Returns
System. Nullable Span which, when not null, indicates the found text. |
Find(String, Int32, Boolean, Boolean)
Finds the specified search text.
Declaration
public Nullable<Span> Find(string searchText, int startIndex, bool matchCase, bool useRegularExpression)
Parameters
System. The search text or regex pattern. |
System. The start index to search in the document. |
System. Indicates whether the search is case-sensitive. |
System. If set to |
Returns
System. Nullable Span which, when not null, indicates the found text. |
Find(String, Int32, Boolean, Boolean, Boolean)
Finds the specified search text.
Declaration
public Nullable<Span> Find(string searchText, int startIndex, bool matchCase, bool useRegularExpression, bool matchWord)
Parameters
System. The search text or regex pattern. |
System. The start index to search in the document. |
System. Indicates whether the search is case-sensitive. |
System. If set to |
System. If set to |
Returns
System. 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
System. The search text. |
Returns
System. List of all matched spans. |
FindAll(String, Boolean)
Finds all spans with the given searchText or regex pattern.
Declaration
public IEnumerable<Span> FindAll(string searchText, bool useRegularExpression)
Parameters
System. The search text or regex pattern. |
System. If set to |
Returns
System. List of all matched spans. |
FindAll(String, Boolean, Boolean)
Finds all spans with the given searchText or regex pattern.
Declaration
public IEnumerable<Span> FindAll(string searchText, bool matchCase, bool useRegularExpression)
Parameters
System. The search text or regex pattern. |
System. Indicates whether the search is case-sensitive. |
System. If set to |
Returns
System. List of all matched spans. |
FindAll(String, Boolean, Boolean, Boolean)
Finds all spans with the given searchText or regex pattern.
Declaration
public IEnumerable<Span> FindAll(string searchText, bool matchCase, bool useRegularExpression, bool matchWord)
Parameters
System. The search text or regex pattern. |
System. Indicates whether the search is case-sensitive. |
System. If set to |
System. If set to |
Returns
System. List of all matched spans. |
FindPrevious(String, Int32, Boolean)
Finds the specified search text before the current index.
Declaration
public Nullable<Span> FindPrevious(string searchText, int startIndex, bool matchCase)
Parameters
System. The search text or regex pattern. |
System. The start index to search in the document. |
System. Indicates whether the search is case-sensitive. |
Returns
System. Nullable Span which, when not null, indicates the found text. |
FindPrevious(String, Int32, Boolean, Boolean, Boolean)
Finds the specified search text before the current index.
Declaration
public Nullable<Span> FindPrevious(string searchText, int startIndex, bool matchCase, bool useRegularExpression, bool matchWord)
Parameters
System. The search text or regex pattern. |
System. The start index to search in the document. |
System. Indicates whether the search is case-sensitive. |
System. If set to |
System. If set to |
Returns
System. Nullable Span which, when not null, indicates the found text. |
GetLineBoundingRectangleByLineNumber(Int32, Boolean)
Gets the line bounding rectangle by line number.
Declaration
public Rect GetLineBoundingRectangleByLineNumber(int lineNumber, bool cutToBaseline = false)
Parameters
System.
|
System.
|
Returns
System.
|
GetLinePartBoundingRectangle(Span, Boolean)
Gets the line part bounding rectangle.
Declaration
public Rect GetLinePartBoundingRectangle(Span span, bool cutToBaseline = false)
Parameters
Span
span
|
System.
|
Returns
System.
|
GetPointFromPosition(CaretPosition)
Gets the point from position.
Declaration
public Point GetPointFromPosition(CaretPosition position)
Parameters
Caret The position. |
Returns
System. Point. |
GetPositionFromPoint(Point)
Gets the position from point.
Declaration
public CaretPosition GetPositionFromPoint(Point point)
Parameters
System. The point. |
Returns
Caret CaretPosition. |
GotoLine(Int32, Boolean)
Navigates to the line by number.
Declaration
public void GotoLine(int lineNumber, bool focusSyntaxEditor = false)
Parameters
System. The line number. |
System. Specifies if the SyntaxEditor should be focused after navigating to the given line. |
HighlightAllMatches(String)
Tries to highlight all span matches via all registered Text
Declaration
public void HighlightAllMatches(string searchText)
Parameters
System.
|
IncreaseLineIndent()
Increases the line indent.
Declaration
public void IncreaseLineIndent()
Indent()
Indents this instance.
Declaration
public void Indent()
InitializeTouch(SyntaxEditorPresenter)
Called when touch manager methods are being initialized for the Syntax
Declaration
protected virtual void InitializeTouch(SyntaxEditorPresenter presenter)
Parameters
Syntax
|
Insert(String)
Inserts the specified text.
Declaration
public void Insert(string text)
Parameters
System. The text. |
InsertNewLine()
Inserts the new line.
Declaration
public void InsertNewLine()
InsertTab()
Inserts the tab.
Declaration
public void InsertTab()
InvalidateEditorLayout()
Invalidates the editor layout.
Declaration
public void InvalidateEditorLayout()
InvalidateEditorLayout(Boolean)
Invalidates the editor layout.
Declaration
public void InvalidateEditorLayout(bool force)
Parameters
System.
|
MeasureOverride(Size)
Called when control is measured.
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
System.
|
Returns
System.
|
MoveCurrentLineToBottom()
Moves the current line to bottom.
Declaration
public void MoveCurrentLineToBottom()
MoveCurrentLineToTop()
Moves the current line to top.
Declaration
public void MoveCurrentLineToTop()
NavigateNextMatch(String)
NavigatePreviousMatch(String)
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call System.
Declaration
public override void OnApplyTemplate()
OnCommandError(CommandErrorEventArgs)
Handles the Command
Declaration
protected virtual void OnCommandError(CommandErrorEventArgs args)
Parameters
Command The Command |
OnCommandExecuted(CommandExecutedEventArgs)
Handles the Command
Declaration
protected virtual void OnCommandExecuted(CommandExecutedEventArgs e)
Parameters
Command The Command |
OnCommandExecuting(CommandExecutingEventArgs)
Handles the Command
Declaration
protected virtual void OnCommandExecuting(CommandExecutingEventArgs args)
Parameters
Command The Command |
OnCreateAutomationPeer()
Returns class-specific System.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System. The type-specific System. |
OnDocumentChanged()
Called when [document changed].
Declaration
protected virtual void OnDocumentChanged()
OnDocumentChanging()
Called when [document changing].
Declaration
protected virtual void OnDocumentChanging()
OnDocumentContentChanged(TextContentChangedEventArgs)
Handles the Document
Declaration
protected virtual void OnDocumentContentChanged(TextContentChangedEventArgs args)
Parameters
Text The Text |
OnDocumentContentChanging(TextContentChangingEventArgs)
Handles the Document
Declaration
protected virtual void OnDocumentContentChanging(TextContentChangingEventArgs args)
Parameters
Text The Text |
OnGotFocus(RoutedEventArgs)
Invoked whenever an unhandled System.
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
System. The System. |
OnInitialized(EventArgs)
Raises the System.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System. The System. |
OnIsReadOnlyChanged(EventArgs)
Handles the Is
Declaration
protected virtual void OnIsReadOnlyChanged(EventArgs e)
Parameters
System. The System. |
OnLayoutPropertiesChanged()
Called when [layout properties changed].
Declaration
protected virtual void OnLayoutPropertiesChanged()
OnMouseWheelZoom(Double)
Called when mouse wheel zoom is requested.
Declaration
protected virtual bool OnMouseWheelZoom(double delta)
Parameters
System. The mouse wheel delta. |
Returns
System.
|
OnPreviewSyntaxEditorInput(PreviewSyntaxEditorInputEventArgs)
Handles the Preview
Declaration
protected virtual void OnPreviewSyntaxEditorInput(PreviewSyntaxEditorInputEventArgs args)
Parameters
Preview The Preview |
OnPreviewSyntaxEditorKeyDown(PreviewSyntaxEditorKeyEventArgs)
Handles the Preview
Declaration
protected virtual void OnPreviewSyntaxEditorKeyDown(PreviewSyntaxEditorKeyEventArgs args)
Parameters
Preview The Preview |
OnPreviewSyntaxEditorKeyUp(PreviewSyntaxEditorKeyEventArgs)
Handles the Preview
Declaration
protected virtual void OnPreviewSyntaxEditorKeyUp(PreviewSyntaxEditorKeyEventArgs args)
Parameters
Preview The Preview |
OnPreviewSyntaxEditorMouseLeftButtonDown(PreviewSyntaxEditorMouseButtonEventArgs)
Handles the Preview
Declaration
protected virtual void OnPreviewSyntaxEditorMouseLeftButtonDown(PreviewSyntaxEditorMouseButtonEventArgs args)
Parameters
Preview The Preview |
OnPreviewSyntaxEditorMouseRightButtonDown(PreviewSyntaxEditorMouseButtonEventArgs)
Handles the Preview
Declaration
protected virtual void OnPreviewSyntaxEditorMouseRightButtonDown(PreviewSyntaxEditorMouseButtonEventArgs args)
Parameters
Preview The Preview |
OnPropertyChanged(DependencyPropertyChangedEventArgs)
Occurs when property changes.
Declaration
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
Parameters
System.
|
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 Text
Declaration
protected virtual void OnTextSearched(TextSearchedEventArgs args)
Parameters
Text The Text |
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
System. The search text. |
PageDown()
Pages down.
Declaration
public void PageDown()
PageUp()
Pages up.
Declaration
public void PageUp()
Paste()
Pastes this instance.
Declaration
public void Paste()
Redo()
Redoes this instance.
Declaration
public bool Redo()
Returns
System. System.Boolean. |
ReplaceAllMatches(String, String, Boolean, Boolean)
Replaces all matches.
Declaration
public int ReplaceAllMatches(string searchText, string replaceText, bool matchCase, bool useRegularExpression)
Parameters
System. The search text. |
System. The replace text. |
System. The match case. |
System. The use regular expression. |
Returns
System. System.Int32. |
ReplaceAllMatches(String, String, Boolean, Boolean, Boolean)
Replaces all matches.
Declaration
public int ReplaceAllMatches(string searchText, string replaceText, bool matchCase, bool useRegularExpression, bool matchWord)
Parameters
System. The search text. |
System. The replace text. |
System. The match case. |
System. The use regular expression. |
System. The match word. |
Returns
System. System.Int32. |
ReplaceNextMatch(String, Int32, String, Boolean, Boolean)
Replaces the next match.
Declaration
public bool ReplaceNextMatch(string searchText, int startIndex, string replaceText, bool matchCase, bool useRegularExpression)
Parameters
System. The search text. |
System. The start index. |
System. The replace text. |
System. The match case. |
System. The use regular expression. |
Returns
System. System.Boolean. |
RestoreSyntaxEditorHistoryState(SyntaxEditorHistoryState)
Restores the state of the code editor history.
Declaration
public void RestoreSyntaxEditorHistoryState(SyntaxEditorHistoryState historyState)
Parameters
Syntax State of the history. |
SelectAll()
Selects all.
Declaration
public void SelectAll()
ToggleInsertMode()
Toggles the insert mode.
Declaration
public void ToggleInsertMode()
Undo()
Undoes this instance.
Declaration
public bool Undo()
Returns
System.
|
Unindent()
Unindents this instance.
Declaration
public void Unindent()
UpdateSelection()
Updates the selection.
Declaration
public void UpdateSelection()
ZoomIn(Double)
Zooms in.
Declaration
public void ZoomIn(double zoomFactor = 1.1)
Parameters
System. 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
System. 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
System. The zoom level. |
Exceptions
System. ZoomLevel must be non negative. |
Events
CommandError
Occurs when command error is produced.
Declaration
public event EventHandler<CommandErrorEventArgs> CommandError
Event Type
System.
|
CommandExecuted
Occurs when command is executed.
Declaration
public event EventHandler<CommandExecutedEventArgs> CommandExecuted
Event Type
System.
|
CommandExecuting
Occurs when command is executing.
Declaration
public event EventHandler<CommandExecutingEventArgs> CommandExecuting
Event Type
System.
|
DocumentChanged
Occurs when document has been changed.
Declaration
public event EventHandler DocumentChanged
Event Type
System.
|
Implements
DocumentChanging
Occurs when document is being changed.
Declaration
public event EventHandler DocumentChanging
Event Type
System.
|
Implements
DocumentContentChanged
DocumentContentChanged event.
Declaration
public event EventHandler<TextContentChangedEventArgs> DocumentContentChanged
Event Type
System.
|
Implements
DocumentContentChanging
DocumentContentChanging event.
Declaration
public event EventHandler<TextContentChangingEventArgs> DocumentContentChanging
Event Type
System.
|
IsReadOnlyChanged
Occurs when the readonly state has changed.
Declaration
public event EventHandler IsReadOnlyChanged
Event Type
System.
|
LayoutPropertiesChanged
Occurs when layout properties are changed.
Declaration
public event EventHandler LayoutPropertiesChanged
Event Type
System.
|
PreviewSyntaxEditorInput
Occurs when text input in the syntax editor is starting.
Declaration
public event EventHandler<PreviewSyntaxEditorInputEventArgs> PreviewSyntaxEditorInput
Event Type
System.
|
PreviewSyntaxEditorKeyDown
Occurs when key down is pressed.
Declaration
public event EventHandler<PreviewSyntaxEditorKeyEventArgs> PreviewSyntaxEditorKeyDown
Event Type
System.
|
PreviewSyntaxEditorKeyUp
Occurs when a key is released.
Declaration
public event EventHandler<PreviewSyntaxEditorKeyEventArgs> PreviewSyntaxEditorKeyUp
Event Type
System.
|
PreviewSyntaxEditorMouseLeftButtonDown
Occurs when mouse left button down is pressed.
Declaration
public event EventHandler<PreviewSyntaxEditorMouseButtonEventArgs> PreviewSyntaxEditorMouseLeftButtonDown
Event Type
System.
|
PreviewSyntaxEditorMouseRightButtonDown
Occurs when mouse right button down is pressed.
Declaration
public event EventHandler<PreviewSyntaxEditorMouseButtonEventArgs> PreviewSyntaxEditorMouseRightButtonDown
Event Type
System.
|
ScaleFactorChanged
Occurs when scale factor changes.
Declaration
public event EventHandler ScaleFactorChanged
Event Type
System.
|
SearchPanelClosed
Occurs when the search panel is closed.
Declaration
public event EventHandler SearchPanelClosed
Event Type
System.
|
SearchPanelOpened
Occurs when the search panel is opened.
Declaration
public event EventHandler SearchPanelOpened
Event Type
System.
|
SelectionChanged
Occurs when the selection of the control changes.
Declaration
public event EventHandler SelectionChanged
Event Type
System.
|
TextSearched
Occurs when a text is searched in the control.
Declaration
public event EventHandler<TextSearchedEventArgs> TextSearched
Event Type
System.
|
ViewportChanged
Occurs when the viewport changes.
Declaration
public event EventHandler ViewportChanged
Event Type
System.
|