SyntaxEditor Class
Represents a syntax-highlighting code editor control.
[TemplatePart(Name = "PART_EditorViewHost", Type = typeof(EditorViewHost))]
public class SyntaxEditor : Control, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
- Inheritance:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control Object
Constructors
SyntaxEditor()
Initializes a new instance of the SyntaxEditor
class.
public SyntaxEditor()
Properties
AcceptsTab
Gets or sets the Tab
key is accepted, allowing for the insertion of tab stops and/or indenting blocks of text.
public bool AcceptsTab { get; set; }
Property Value
- System.Boolean:
true
if the tab key is accepted; otherwise,false
. The default value istrue
.
Remarks
When this property is false
, the Tab
and Shift+Tab
key shortcuts will move focus instead.
ActiveView
Gets the currently-active IEditorView in the editor.
public IEditorView ActiveView { get; }
Property Value
- IEditorView:
The currently-active IEditorView in the editor.
Remarks
The currently-active view in the editor is the view that contains focus when focus is moved within the editor. There is always a single view in an editor marked as active.
AllowDrag
Gets or sets whether dragging text from the editor is allowed.
public bool AllowDrag { get; set; }
Property Value
- System.Boolean:
true
if dragging text from the editor is allowed; otherwise,false
. The default value istrue
.
AreColumnGuidesVisible
Gets or sets whether column guides are visible.
public bool AreColumnGuidesVisible { get; set; }
Property Value
- System.Boolean:
true
if column guides are visible; otherwise,false
. The default value istrue
.
AreIndentationGuidesVisible
Gets or sets whether indentation guides are visible.
public bool AreIndentationGuidesVisible { get; set; }
Property Value
- System.Boolean:
true
if indentation guides are visible; otherwise,false
. The default value isfalse
.
AreLineModificationMarksVisible
Gets or sets whether line modification marks are visible.
public bool AreLineModificationMarksVisible { get; set; }
Property Value
- System.Boolean:
true
if line modification marks are visible; otherwise,false
. The default value istrue
.
AreMultipleSelectionRangesEnabled
Gets or sets whether multiple selection range features (and related carets) are enabled.
public bool AreMultipleSelectionRangesEnabled { get; set; }
Property Value
- System.Boolean:
true
if multiple selection range features (and related carets) are enabled; otherwise,false
. The default value istrue
.
Remarks
When this property is true
, various features for supporting insertion of multiple carets
and managing more than a single selection range will be enabled.
Set this property to false
to prevent more than a single selection range.
AreSelectionGrippersEnabled
Gets or sets whether selection grippers (when touching a view) are enabled.
public bool AreSelectionGrippersEnabled { get; set; }
Property Value
- System.Boolean:
true
if selection grippers (when touching a view) are enabled; otherwise,false
. The default value istrue
.
AreWordWrapGlyphsVisible
Gets or sets whether word wrap glyphs are visible when word wrap is enabled.
public bool AreWordWrapGlyphsVisible { get; set; }
Property Value
- System.Boolean:
true
if word wrap glyphs are visible when word wrap is enabled; otherwise,false
. The default value isfalse
.
Remarks
Set the WordWrapMode property to control to designate the current word wrap mode.
CanBackspaceOverSpacesToTabStop
Gets or sets whether a Backspace key pressed before the first non-whitespace character of a line will backspace to the previous tab stop.
public bool CanBackspaceOverSpacesToTabStop { get; set; }
Property Value
- System.Boolean:
true
if a Backspace key pressed before the first non-whitespace character of a line will backspace to the previous tab stop; otherwise,false
. The default value istrue
.
Remarks
This property is only used when AutoConvertTabsToSpaces is true
.
When this property is false
, only one space character maximum will be consumed when backspacing
before the first non-whitespace character of a line.
See Also
CanCutCopyBlankLineWhenNoSelection
Gets or sets whether cut/copy operations on a blank line with no selection overwrites the clipboard with the blank line.
public bool CanCutCopyBlankLineWhenNoSelection { get; set; }
Property Value
- System.Boolean:
true
if cut/copy operations on a blank line with no selection overwrites the clipboard with the blank line; otherwise,false
. The default value istrue
.
Remarks
When there is no selection in the editor and a cut or copy operation occurs, the text of the current line will
be sent to the clipboard. If the text is subsequently pasted back into the editor while there is no selection,
a new link will be created to insert the clipboard data and the caret will not move.
Even if this property is false
, cutting of blank lines will occur but the clipboard will not be changed.
CanCutCopyDragWithHtml
Gets or sets whether the cutting and copying of text to the clipboard or dragging text
also copies the text in HTML
format, which retains syntax highlighting.
public bool CanCutCopyDragWithHtml { get; set; }
Property Value
- System.Boolean:
true
ifHTML
format is included; otherwise,false
. The default value isfalse
.
Remarks
Activating this feature will cause a slight delay when cutting, copying, or dragging text
since the building of HTML
formatted text can take time. However most likely this delay will be negligible.
CanCutCopyDragWithRtf
Gets or sets whether the cutting and copying of text to the clipboard or dragging text
also copies the text in RTF
format, which retains syntax highlighting.
public bool CanCutCopyDragWithRtf { get; set; }
Property Value
- System.Boolean:
true
ifRTF
format is included; otherwise,false
. The default value istrue
.
Remarks
Activating this feature will cause a slight delay when cutting, copying, or dragging text
since the building of RTF
formatted text can take time. However most likely this delay will be negligible.
CanIncrementalSearchTrimUnmatchedFindText
Gets or sets whether incremental search can ignore typed characters appended to the find text when no match was found for the previous find text.
public bool CanIncrementalSearchTrimUnmatchedFindText { get; set; }
Property Value
- System.Boolean:
true
if incremental search can ignore typed characters appended to the find text when no match was found for the previous find text; otherwise,false
. The default value istrue
.
CanMoveCaretForSecondaryPointerButton
Gets or sets whether to move the caret when a secondary pointer button (e.g. a right mouse button) is pressed outside of the current selection.
public bool CanMoveCaretForSecondaryPointerButton { get; set; }
Property Value
- System.Boolean:
true
if the caret should move when a secondary pointer button (e.g. a right mouse button) is pressed outside of the current selection; otherwise,false
. The default value istrue
.
CanMoveCaretToNextLineAtLineEnd
Gets or sets whether to move the caret to the next view line when pressing the right-arrow key at the end of a view line.
public bool CanMoveCaretToNextLineAtLineEnd { get; set; }
Property Value
- System.Boolean:
true
if the caret should move to the next view line when pressing the right-arrow key at the end of a view line; otherwise,false
. The default value istrue
.
CanMoveCaretToPreviousLineAtLineStart
Gets or sets whether to move the caret to the previous view line when pressing the left-arrow key at the start of a view line.
public bool CanMoveCaretToPreviousLineAtLineStart { get; set; }
Property Value
- System.Boolean:
true
if the caret should move to the previous view line when pressing the left-arrow key at the start of a view line; otherwise,false
. The default value istrue
.
CanPointerWheelScrollUnfocusedViews
Gets or sets whether pointer (mouse) wheels can scroll unfocused editor views.
public bool CanPointerWheelScrollUnfocusedViews { get; set; }
Property Value
- System.Boolean:
true
if pointer (mouse) wheels can scroll unfocused editor views; otherwise,false
. The default value istrue
.
CanScrollPastDocumentEnd
Gets or sets whether it is possible to scroll past the end of the document.
public bool CanScrollPastDocumentEnd { get; set; }
Property Value
- System.Boolean:
true
if it is possible to scroll past the end of the document; otherwise,false
. The default value istrue
.
Remarks
When this property is set to true
, the vertical scrollbar allows scrolling of the
last line of the document up to the first view line in the view.
This property should not be set to false
when intra-line adornments are used or
multiple font faces/sizes are used in highlighting styles, since the vertical scrollbar maximum
cannot be properly calculated in those scenarios.
This property has no effect when word wrap mode is active.
CanScrollPastDocumentEndResolved
Gets a resolved value for whether it is possible to scroll past the end of the document.
public bool CanScrollPastDocumentEndResolved { get; }
Property Value
- System.Boolean:
true
if it is possible to scroll past the end of the document; otherwise,false
.
Remarks
CanScrollPastDocumentEnd is forced when in word wrap mode.
CanSplitHorizontally
Gets or sets whether the editor can be split horizontally to show more than one view.
public bool CanSplitHorizontally { get; set; }
Property Value
- System.Boolean:
true
if the editor can be split horizontally to show more than one view; otherwise,false
. The default value istrue
.
CaretBlinkInterval
Gets or sets the interval at which the caret blinks, in milliseconds.
public int CaretBlinkInterval { get; set; }
Property Value
- System.Int32:
The interval at which the caret blinks, in milliseconds. The default value is
500ms
.
CaretBrush
Gets or sets the System.Windows.Media.Brush to use for rendering the caret.
public Brush CaretBrush { get; set; }
Property Value
- System.Windows.Media.Brush:
The System.Windows.Media.Brush to use for rendering the caret.
CaretInsertKind
Gets or sets the kind of the caret when in insert mode.
public CaretKind CaretInsertKind { get; set; }
Property Value
CaretInsertWidth
Gets or sets the width of the caret when in insert mode, if a non-block caret kind is used.
public int CaretInsertWidth { get; set; }
Property Value
- System.Int32:
The width of the caret when in insert mode. The width must be within
1
and8
. The default value is1
.
CaretOverwriteKind
Gets or sets the kind of the caret when in overwrite mode.
public CaretKind CaretOverwriteKind { get; set; }
Property Value
CaretOverwriteWidth
Gets or sets the width of the caret when in overwrite mode, if a non-block caret kind is used.
public int CaretOverwriteWidth { get; set; }
Property Value
- System.Int32:
The width of the caret when in overwrite mode. The width must be within
1
and8
. The default value is1
.
ColumnGuides
Gets or sets a collection of IColumnGuide instances to be displayed in the ITextView.
public IColumnGuideCollection ColumnGuides { get; set; }
Property Value
- IColumnGuideCollection:
An instance of IColumnGuideCollection.
Document
Gets or sets the IEditorDocument being edited by the control.
public IEditorDocument Document { get; set; }
Property Value
- IEditorDocument:
The IEditorDocument being edited by the control.
HasHorizontalSplit
Gets or sets whether the editor is currently split horizontally to show more than one view.
public bool HasHorizontalSplit { get; set; }
Property Value
- System.Boolean:
true
if the editor is currently split horizontally to show more than one view; otherwise,false
. The default value isfalse
.
See Also
HasSearchOverlayPaneKeyBindings
Gets or sets whether the editor has key bindings (hotkeys) that trigger the built-in search overlay pane.
public bool HasSearchOverlayPaneKeyBindings { get; set; }
Property Value
- System.Boolean:
true
if the editor has key bindings (hotkeys) that trigger the built-in search overlay pane; otherwise,false
. The default value istrue
.
Remarks
This properly should be set to false
when an external search UI is used, since a false
setting will prevent access to the built-in search overlay pane.
Key bindings like those involving F3
, Ctrl+F
, and Ctrl+H
are affected by this property.
When this property is toggled, the ResetInputBindings() method will be called.
HighlightingStyleRegistry
Gets or sets the default IHighlightingStyleRegistry to use.
public IHighlightingStyleRegistry HighlightingStyleRegistry { get; set; }
Property Value
- IHighlightingStyleRegistry:
The default IHighlightingStyleRegistry to use.
Remarks
If this property is null
, the AmbientHighlightingStyleRegistry will be used.
HorizontalScrollBarVisibility
Gets or sets the System.Windows.Controls.ScrollBarVisibility that specifies the visibility of the horizontal ScrollBar.
public ScrollBarVisibility HorizontalScrollBarVisibility { get; set; }
Property Value
- System.Windows.Controls.ScrollBarVisibility:
The System.Windows.Controls.ScrollBarVisibility that specifies the visibility of the horizontal ScrollBar. The default value is
Visible
.
Remarks
Visible
and Auto
always show the ScrollBar.
Hidden
and Disabled
always hide the ScrollBar.
HorizontalSplitPercentage
Gets or sets the percentage across the height of the editor at which the horizontal split is located.
public double HorizontalSplitPercentage { get; set; }
Property Value
- System.Double:
A value between
0
and1
indicating the percentage. The default value is0
.
Remarks
A value of 0
indicates that there is no split.
See Also
InactiveSelectedTextBackground
Gets or sets the System.Windows.Media.Brush to use when rendering the inactive selection background.
public Brush InactiveSelectedTextBackground { get; set; }
Property Value
- System.Windows.Media.Brush:
The System.Windows.Media.Brush to use when rendering the inactive selection background.
IndicatorMarginBackground
Gets or sets the System.Windows.Media.Brush to use when rendering the indicator margin background.
public Brush IndicatorMarginBackground { get; set; }
Property Value
- System.Windows.Media.Brush:
The System.Windows.Media.Brush to use when rendering the indicator margin background.
IntelliPrompt
Gets the IIntelliPromptManager that manages IntelliPrompt user interface functionality for this editor.
public IIntelliPromptManager IntelliPrompt { get; }
Property Value
- IIntelliPromptManager:
The IIntelliPromptManager that manages IntelliPrompt user interface functionality for this editor.
IsAutoCorrectEnabled
Gets or sets whether auto-correct, such as case correction, is enabled.
public bool IsAutoCorrectEnabled { get; set; }
Property Value
- System.Boolean:
true
if auto-correct, such as case correction, is enabled; otherwise,false
. The default value istrue
.
Remarks
Note that the auto correct feature requires that the current language have an IAutoCorrector service registered, along with other possible requirements.
IsCollapsibleRegionHighlightingEnabled
Gets or sets whether collapsible regions highlight when the pointer is over the outlining margin.
public bool IsCollapsibleRegionHighlightingEnabled { get; set; }
Property Value
- System.Boolean:
true
if collapsible regions highlight when the pointer is over the outlining margin; otherwise,false
. The default value istrue
.
IsCurrentLineHighlightingEnabled
Gets or sets whether current line highlighting is enabled for the active view.
public bool IsCurrentLineHighlightingEnabled { get; set; }
Property Value
- System.Boolean:
true
if current line highlighting is enabled for the active view; otherwise,false
. The default value isfalse
.
IsDefaultContextMenuEnabled
Gets or sets whether the default context menu is enabled.
public bool IsDefaultContextMenuEnabled { get; set; }
Property Value
- System.Boolean:
true
if the default context menu is enabled; otherwise,false
. The default value istrue
.
IsDelimiterAutoCompleteEnabled
Gets or sets whether delimiter auto-complete is enabled for the active view.
public bool IsDelimiterAutoCompleteEnabled { get; set; }
Property Value
- System.Boolean:
true
if delimiter auto-complete is enabled for the active view; otherwise,false
. The default value istrue
.
IsDelimiterHighlightingEnabled
Gets or sets whether delimiter highlighting is enabled for the active view.
public bool IsDelimiterHighlightingEnabled { get; set; }
Property Value
- System.Boolean:
true
if delimiter highlighting is enabled for the active view; otherwise,false
. The default value istrue
.
IsDocumentReadOnly
Gets or sets whether the attached document is read-only.
public bool IsDocumentReadOnly { get; set; }
Property Value
- System.Boolean:
true
if attached document is read-only; otherwise,false
. The default value isfalse
.
Remarks
You may also use the ITextDocument.IsReadOnly property to alter this value.
IsDragDropTextReselectEnabled
Gets or sets whether to reselect text that is dragged and dropped into the control.
public bool IsDragDropTextReselectEnabled { get; set; }
Property Value
- System.Boolean:
true
if text that is dragged and dropped into the control should be reselected; otherwise,false
. The default value istrue
.
IsImeEnabled
Gets or sets whether support for IME (Input Method Editor) is enabled.
public bool IsImeEnabled { get; set; }
Property Value
- System.Boolean:
true
if IME support is enabled; otherwise,false
. The default value istrue
.
Remarks
IME is a Window feature that allows users to enter characters and symbols not found on their input device. It allows Western keyboards to enter Chinese, Japanese, etc. characters.
IsIndicatorMarginVisible
Gets or sets whether the indicator margin is visible.
public bool IsIndicatorMarginVisible { get; set; }
Property Value
- System.Boolean:
true
if the indicator margin is visible; otherwise,false
. The default value isfalse
.
Remarks
This property is only effective if the default indicator margin is created by the ViewMarginFactories currently in use.
IsLineNumberMarginVisible
Gets or sets whether the line number margin is visible.
public bool IsLineNumberMarginVisible { get; set; }
Property Value
- System.Boolean:
true
if the line number margin is visible; otherwise,false
. The default value isfalse
.
Remarks
This property is only effective if the default line number margin is created by the ViewMarginFactories currently in use.
IsMultiLine
Gets or sets whether the editor allows multiple lines of text.
public bool IsMultiLine { get; set; }
Property Value
- System.Boolean:
true
if the editor allows multiple lines of text; otherwise,false
. The default value istrue
.
Remarks
When this property is false
, only a single line of text is permitted in the document
and the editor renders like a native single-line textbox.
IsOutliningMarginVisible
Gets or sets whether the outlining margin is visible.
public bool IsOutliningMarginVisible { get; set; }
Property Value
- System.Boolean:
true
if the outlining margin is visible; otherwise,false
. The default value istrue
.
Remarks
This property is only effective if the default outlining margin is created by the ViewMarginFactories currently in use.
IsOverwriteModeActive
Gets or sets whether the editor is in overwrite mode, where typing overwrites the character at the caret's offset.
public bool IsOverwriteModeActive { get; set; }
Property Value
- System.Boolean:
true
if the editor is in overwrite mode; otherwise,false
. The default value isfalse
.
IsRulerMarginVisible
Gets or sets whether the ruler margin is visible.
public bool IsRulerMarginVisible { get; set; }
Property Value
- System.Boolean:
true
if the ruler margin is visible; otherwise,false
. The default value isfalse
.
Remarks
This property is only effective if the default ruler margin is created by the ViewMarginFactories currently in use.
IsSearchResultHighlightingEnabled
Gets or sets whether search result highlighting is enabled for the active view when performing incremental search or when using the searcn overlay pane.
public bool IsSearchResultHighlightingEnabled { get; set; }
Property Value
- System.Boolean:
true
if search result highlighting is enabled for the active view; otherwise,false
. The default value istrue
.
IsSelectionMarginVisible
Gets or sets whether the selection margin is visible.
public bool IsSelectionMarginVisible { get; set; }
Property Value
- System.Boolean:
true
if the selection margin is visible; otherwise,false
. The default value istrue
.
Remarks
This property is only effective if the default selection margin is created by the ViewMarginFactories currently in use.
IsTextDataBindingEnabled
Gets or sets whether data binding on the Text property is currently enabled.
public bool IsTextDataBindingEnabled { get; set; }
Property Value
- System.Boolean:
true
if data binding on the Text property is currently enabled; otherwise,false
. The default value isfalse
.
Remarks
Data binding is off by default on the Text property for two reasons. First, supporting the Text dependency property means that two full copies of the document text are stored in memory instead of one, which can increase memory a lot for large documents. Second, the full text must be set to the dependency property after each text change, meaning performance could suffer depending on the size of the document.
It is recommended to only set IsTextDataBindingEnabled to true
when data binding is required,
and note that the IsTextDataBindingEnabled property must be set before creating a binding on the Text property.
IsViewLineMeasureEnabled
Gets or sets whether the editor view lines are measured, allowing the editor to resize as text contents change.
public bool IsViewLineMeasureEnabled { get; set; }
Property Value
- System.Boolean:
true
if the editor view lines can be measured; otherwise,false
. The default value isfalse
.
Remarks
This property affects performance and should only be set to true
in specific scenarios where
it is desired for the editor to resize based on contents, such as when used within a StackPanel
.
IsVirtualSpaceAtLineEndEnabled
Gets or sets whether virtual space at the end of lines is enabled.
public bool IsVirtualSpaceAtLineEndEnabled { get; set; }
Property Value
- System.Boolean:
true
if virtual space at the end of lines is enabled; otherwise,false
. The default value isfalse
.
Remarks
When true
, the caret can move past the end of lines.
Use of virtual space at the end of lines will disable word wrap.
IsWhitespaceVisible
Gets or sets whether whitespace (spaces and tabs) is visible.
public bool IsWhitespaceVisible { get; set; }
Property Value
- System.Boolean:
true
if whitespace (spaces and tabs) is visible; otherwise,false
. The default value isfalse
.
IsWordWrapEnabled
Gets or sets whether word wrap mode is currently enabled.
public bool IsWordWrapEnabled { get; set; }
Property Value
- System.Boolean:
true
if word wrap mode is currently enabled; otherwise,false
. The default value isfalse
.
Remarks
This property returns true
if any WordWrapMode property value other than None
is specified.
Set the WordWrapMode property to control to designate the current word wrap mode.
IsWordWrapGlyphMarginVisible
Gets whether the word wrap glyph margin is visible.
public bool IsWordWrapGlyphMarginVisible { get; }
Property Value
- System.Boolean:
true
if the word wrap glyph margin is visible; otherwise,false
. The default value isfalse
.
LineNumberMarginBackground
Gets or sets the System.Windows.Media.Brush to use when rendering the line number margin background.
public Brush LineNumberMarginBackground { get; set; }
Property Value
- System.Windows.Media.Brush:
The System.Windows.Media.Brush to use when rendering the line number margin background.
LineNumberMarginFontFamily
Gets or sets the System.Windows.Media.FontFamily to use when rendering line number margin text.
public FontFamily LineNumberMarginFontFamily { get; set; }
Property Value
- System.Windows.Media.FontFamily:
The System.Windows.Media.FontFamily to use when rendering line number margin text. The default value is a null value, meaning use the same font family as the text area.
LineNumberMarginFontSize
Gets or sets the font size to use when rendering line number margin text.
public double LineNumberMarginFontSize { get; set; }
Property Value
- System.Double:
The font size to use when rendering line number margin text. The default value is
0
, meaning us the same font size as the text area.
LineNumberMarginForeground
Gets or sets the System.Windows.Media.Brush to use when rendering line number margin text.
public Brush LineNumberMarginForeground { get; set; }
Property Value
- System.Windows.Media.Brush:
The System.Windows.Media.Brush to use when rendering line number margin text.
MacroRecording
Gets the IMacroRecording that manages macro recording and playback functionality.
public IMacroRecording MacroRecording { get; }
Property Value
- IMacroRecording:
The IMacroRecording that manages macro recording and playback functionality.
MaxIntelliPromptZoomLevel
Gets or sets a percentage value indicating the maximum zoom level of IntelliPrompt content when the ZoomLevel property is changed.
public double MaxIntelliPromptZoomLevel { get; set; }
Property Value
- System.Double:
A percentage value indicating the maximum zoom level of IntelliPrompt content when the ZoomLevel property is changed. The default value is
3.0
, meaning300%
.
Remarks
Ensure the ZoomModesAllowed property is set to an option that supports zooming.
See Also
MaxZoomLevel
Gets or sets a percentage value indicating the maximum zoom level of editor view content.
public double MaxZoomLevel { get; set; }
Property Value
- System.Double:
A percentage value indicating the maximum zoom level of editor view content. The default value is
3.0
, meaning300%
.
Remarks
Ensure the ZoomModesAllowed property is set to an option that supports zooming.
See Also
MinIntelliPromptZoomLevel
Gets or sets a percentage value indicating the minimum zoom level of IntelliPrompt content when the ZoomLevel property is changed.
public double MinIntelliPromptZoomLevel { get; set; }
Property Value
- System.Double:
A percentage value indicating the minimum zoom level of IntelliPrompt content when the ZoomLevel property is changed. The default value is
1.0
, meaning100%
.
Remarks
Ensure the ZoomModesAllowed property is set to an option that supports zooming.
See Also
MinZoomLevel
Gets or sets a percentage value indicating the minimum zoom level of editor view content.
public double MinZoomLevel { get; set; }
Property Value
- System.Double:
A percentage value indicating the minimum zoom level of editor view content. The default value is
0.5
, meaning50%
.
Remarks
Ensure the ZoomModesAllowed property is set to an option that supports zooming.
See Also
OutliningMarginBackground
Gets or sets the System.Windows.Media.Brush to use when rendering the outlining margin background.
public Brush OutliningMarginBackground { get; set; }
Property Value
- System.Windows.Media.Brush:
The System.Windows.Media.Brush to use when rendering the outlining margin background.
PrintSettings
Gets or sets the IPrintSettings that provides access to all printing functionality.
public IPrintSettings PrintSettings { get; set; }
Property Value
- IPrintSettings:
The IPrintSettings that provides access to all printing functionality.
RulerMarginBackground
Gets or sets the System.Windows.Media.Brush to use when rendering the ruler margin background.
public Brush RulerMarginBackground { get; set; }
Property Value
- System.Windows.Media.Brush:
The System.Windows.Media.Brush to use when rendering the ruler margin background.
RulerMarginForeground
Gets or sets the System.Windows.Media.Brush to use when rendering the ruler margin foreground.
public Brush RulerMarginForeground { get; set; }
Property Value
- System.Windows.Media.Brush:
The System.Windows.Media.Brush to use when rendering the ruler margin foreground.
ScrollBarAccelerationInterval
Gets or sets the TimeSpan
that indicates the amount of time it takes to increase the number of ScrollBar
units
scrolled per small change during ScrollBar
acceleration.
public TimeSpan ScrollBarAccelerationInterval { get; set; }
Property Value
- System.TimeSpan:
A
TimeSpan
indicating the interval. The default value is3 seconds
.
Remarks
ScrollBar
acceleration kicks in when holding down one of the ScrollBar
controls' small change buttons.
At each interval specified by ScrollBarAccelerationInterval, the number of units scrolled with each
small change increases by 1
until ScrollBarAccelerationMaximum is reached.
This enables you to more quickly scroll large distances through documents.
For example, with the default settings, holding the vertical ScrollBar
's
down button will start scrolling down 1
line at a time.
3
seconds later, it will increase to 2
lines at a time.
3
seconds later, it will increase to 3
lines at a time.
3
seconds later, it will increase to 4
lines at a time and will no longer increase the lines scrolled per small change.
Once the down button is released, everything resets back and acceleration is available for the next scroll operation.
See Also
ScrollBarAccelerationMaximum
Gets or sets a value between 1
and 10
that indicates the maximum number of ScrollBar
units
that are scrolled during peak ScrollBar
acceleration.
public int ScrollBarAccelerationMaximum { get; set; }
Property Value
- System.Int32:
A value between
1
and10
indicating the maximum number of units. Set to1
, the minimum, to disable acceleration. The default value is4
.
Remarks
ScrollBar
acceleration kicks in when holding down one of the ScrollBar
controls' small change buttons.
At each interval specified by ScrollBarAccelerationInterval, the number of units scrolled with each
small change increases by 1
until ScrollBarAccelerationMaximum is reached.
This enables you to more quickly scroll large distances through documents.
For example, with the default settings, holding the vertical ScrollBar
's
down button will start scrolling down 1
line at a time.
3
seconds later, it will increase to 2
lines at a time.
3
seconds later, it will increase to 3
lines at a time.
3
seconds later, it will increase to 4
lines at a time and will no longer increase the lines scrolled per small change.
Once the down button is released, everything resets back and acceleration is available for the next scroll operation.
See Also
ScrollBarTrayBottomTemplate
Gets or sets the System.Windows.DataTemplate containing controls that are displayed under the vertical ScrollBar in an IEditorView.
public DataTemplate ScrollBarTrayBottomTemplate { get; set; }
Property Value
- System.Windows.DataTemplate:
The System.Windows.DataTemplate containing controls that are displayed under the vertical ScrollBar in an IEditorView.
ScrollBarTrayLeftTemplate
Gets or sets the System.Windows.DataTemplate containing controls that are displayed left of the horizontal ScrollBar in an IEditorView.
public DataTemplate ScrollBarTrayLeftTemplate { get; set; }
Property Value
- System.Windows.DataTemplate:
The System.Windows.DataTemplate containing controls that are displayed left of the horizontal ScrollBar in an IEditorView.
ScrollBarTrayRightTemplate
Gets or sets the System.Windows.DataTemplate containing controls that are displayed right of the horizontal ScrollBar in an IEditorView.
public DataTemplate ScrollBarTrayRightTemplate { get; set; }
Property Value
- System.Windows.DataTemplate:
The System.Windows.DataTemplate containing controls that are displayed right of the horizontal ScrollBar in an IEditorView.
ScrollBarTrayTopTemplate
Gets or sets the System.Windows.DataTemplate containing controls that are displayed above the vertical ScrollBar in an IEditorView.
public DataTemplate ScrollBarTrayTopTemplate { get; set; }
Property Value
- System.Windows.DataTemplate:
The System.Windows.DataTemplate containing controls that are displayed above the vertical ScrollBar in an IEditorView.
ScrollToCaretOnSelectAll
Gets or sets whether to scroll to the caret when selecting all text in a view.
public bool ScrollToCaretOnSelectAll { get; set; }
Property Value
- System.Boolean:
true
if a view should scroll to the caret when selecting all its text; otherwise,false
. The default value istrue
.
SearchOptions
Gets or sets the IEditorSearchOptions to use when searching within the editor with the search overlay pane.
public IEditorSearchOptions SearchOptions { get; set; }
Property Value
- IEditorSearchOptions:
The IEditorSearchOptions to use when searching within the editor with the search overlay pane.
Remarks
This property defaults to using the static Default property value.
SelectedTextBackground
Gets or sets the System.Windows.Media.Brush to use when rendering the active selection background.
public Brush SelectedTextBackground { get; set; }
Property Value
- System.Windows.Media.Brush:
The System.Windows.Media.Brush to use when rendering the active selection background.
SelectionCollapsesOnCopy
Gets or sets whether the selection collapses when a copy operation occurs.
public bool SelectionCollapsesOnCopy { get; set; }
Property Value
- System.Boolean:
true
if the selection collapses when a copy operation occurs; otherwise,false
. The default value isfalse
.
SelectionCollapsesToAnchor
Gets or sets whether the selection collapses to the anchor of the selection.
public bool SelectionCollapsesToAnchor { get; set; }
Property Value
- System.Boolean:
true
if the selection collapses to the anchor of the selection; otherwise,false
. The default value isfalse
.
SelectionMarginBackground
Gets or sets the System.Windows.Media.Brush to use when rendering the selection margin background.
public Brush SelectionMarginBackground { get; set; }
Property Value
- System.Windows.Media.Brush:
The System.Windows.Media.Brush to use when rendering the selection margin background.
SelectionModesAllowed
Gets or sets a SelectionModes value indicating the selection modes that are allowed within the editor.
public SelectionModes SelectionModesAllowed { get; set; }
Property Value
- SelectionModes:
A SelectionModes value indicating the selection modes that are allowed within the editor. The default value is
Block
andContinuousStream
.
Text
Gets or sets the complete document text within the editor.
This property is created specifically for data binding, and be sure to see the remarks for important configuration and performance information.
public string Text { get; set; }
Property Value
- System.String:
The complete document text within the editor.
Remarks
Every time the getter of this property is called, the text of the document is reconstructed. Every call to the setter, sets the complete document text. Therefore many calls to this property can be a performance bottleneck.
Data binding is off by default on the Text property for two reasons. First, supporting the Text dependency property means that two full copies of the document text are stored in memory instead of one, which can increase memory a lot for large documents. Second, the full text must be set to the dependency property after each text change, meaning performance could suffer depending on the size of the document.
Data binding can be enabled by setting the IsTextDataBindingEnabled property to true
.
It is recommended to only set IsTextDataBindingEnabled to true
when data binding is required,
and note that the IsTextDataBindingEnabled property must be set before creating a binding on the Text property.
When IsTextDataBindingEnabled is false
, the TextProperty dependency property is not used
and text is get/set directly from the document.
To properly get text substrings from the document, get the current ITextSnapshot from ITextDocument.CurrentSnapshot and use the GetSubstring(Int32, Int32) method. Likewise, to determine document length, use the ITextSnapshot.Length property.
Programmatic document updates should be performed using methods on ITextDocument.
TextAreaFontSize
Gets or sets the font size to use in the editor's text area only.
public double TextAreaFontSize { get; set; }
Property Value
- System.Double:
The font size to use in the editor's text area only. The default value is
0.0
, meaning use the value of theFontSize
property.
Remarks
The FontSize
property will also affect IntelliPrompt popups and overlay panes.
Use this text area font size property if you wish to keep those user interface pieces the normal font size and wish to only update the default text area font size.
VerticalScrollBarVisibility
Gets or sets the System.Windows.Controls.ScrollBarVisibility that specifies the visibility of the vertical ScrollBar.
public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
Property Value
- System.Windows.Controls.ScrollBarVisibility:
The System.Windows.Controls.ScrollBarVisibility that specifies the visibility of the vertical ScrollBar. The default value is
Visible
.
Remarks
Visible
and Auto
always show the ScrollBar.
Hidden
and Disabled
always hide the ScrollBar.
ViewMarginFactories
Gets the collection that contains the IEditorViewMarginFactory objects used to generate the margins for an IEditorView.
public IEditorViewMarginFactoryCollection ViewMarginFactories { get; }
Property Value
- IEditorViewMarginFactoryCollection:
A IEditorViewMarginFactoryCollection that contains the factories. The default collection contains a DefaultEditorViewMarginFactory.
VisibleWhitespaceForeground
Gets or sets the System.Windows.Media.Brush to use when rendering visible whitespace.
public Brush VisibleWhitespaceForeground { get; set; }
Property Value
- System.Windows.Media.Brush:
The System.Windows.Media.Brush to use when rendering visible whitespace.
WordWrapGlyphMarginBackground
Gets or sets the System.Windows.Media.Brush to use when rendering the word wrap glyph margin background.
public Brush WordWrapGlyphMarginBackground { get; set; }
Property Value
- System.Windows.Media.Brush:
The System.Windows.Media.Brush to use when rendering the word wrap glyph margin background.
WordWrapGlyphMarginForeground
Gets or sets the System.Windows.Media.Brush to use when rendering the word wrap glyph margin foreground.
public Brush WordWrapGlyphMarginForeground { get; set; }
Property Value
- System.Windows.Media.Brush:
The System.Windows.Media.Brush to use when rendering the word wrap glyph margin foreground.
WordWrapMode
Gets or sets a WordWrapMode value indicating the type of word wrapping that is performed.
public WordWrapMode WordWrapMode { get; set; }
Property Value
- WordWrapMode:
A WordWrapMode value indicating the type of word wrapping that is performed. The default value is
WordWrapMode.None
.
WrappedLineIndentAmount
Gets or sets the number of characters to indent any wrapped lines beyond the original indent level of the primary line.
public int WrappedLineIndentAmount { get; set; }
Property Value
- System.Int32:
The number of characters to indent any wrapped lines beyond the original indent level of the primary line. The default value is
2
.
Remarks
A value of 2
will indent wrapped lines to the original indent level of the primary line, plus 2
additional character widths.
A value of 0
will indent wrapped lines to the original indent level of the primary line.
A value of -1
will not indent wrapped lines at all, and will simply align them to the left edge of the view.
The indent amount may be limited or altogether disabled if there is not enough available width in the view to support proper indentation.
ZoomAnimationDuration
Gets or sets the duration in milliseconds to animate the scale from one zoom level to the next.
public double ZoomAnimationDuration { get; set; }
Property Value
- System.Double:
The duration in milliseconds to animate the scale from one zoom level to the next. The default value is
200ms
.
Remarks
Set to 0ms
to disable zoom animation.
See Also
ZoomLevel
Gets or sets a percentage value indicating the zoom level of editor view content.
public double ZoomLevel { get; set; }
Property Value
- System.Double:
A percentage value indicating the zoom level of editor view content. The default value is
1.0
, meaning100%
.
See Also
ZoomLevelAnimated
Gets or sets a percentage value indicating the current animated zoom level of editor view content.
public double ZoomLevelAnimated { get; set; }
Property Value
- System.Double:
A percentage value indicating the current animated zoom level of editor view content.
Remarks
Never set this property directly. Use the ZoomLevel property instead.
See Also
ZoomLevelIncrement
Gets or sets the percentage increment by which the zoom level changes.
public double ZoomLevelIncrement { get; set; }
Property Value
- System.Double:
The percentage increment by which the zoom level changes. The default value is
0.25
, meaning25%
increments.
Remarks
Ensure the ZoomModesAllowed property is set to an option that supports zooming.
See Also
ZoomModesAllowed
Gets or sets the ZoomModes that indicates the input modes by which zooming can occur.
public ZoomModes ZoomModesAllowed { get; set; }
Property Value
- ZoomModes:
The ZoomModes that indicates the input modes by which zooming can occur. The default value is
All
.
Remarks
Zooming occurs at 0.25
(25%
) increments so plan your MinZoomLevel and
MaxZoomLevel settings in increments of 0.25
for best results.
See Also
Methods
CloseOverlayPanes(String)
Closes open overlay panes with the optional key in all editor instances.
public static void CloseOverlayPanes(string key)
Parameter | Type | Description |
---|---|---|
key | System.String | The key of overlay panes to close, or |
See Also
CreateDefaultContextMenu(IEditorView)
Creates the default menu.
protected virtual ContextMenu CreateDefaultContextMenu(IEditorView targetView)
Parameter | Type | Description |
---|---|---|
targetView | IEditorView | The optional target IEditorView. Passing |
Returns
- System.Windows.Controls.ContextMenu:
The default menu to use.
CreateMacroRecording()
Creates the IMacroRecording object to use for this editor.
protected virtual IMacroRecording CreateMacroRecording()
Returns
- IMacroRecording:
The IMacroRecording object to use for this editor.
GetView(EditorViewPlacement)
Returns the IEditorView for the specified location.
public IEditorView GetView(EditorViewPlacement viewPlacement)
Parameter | Type | Description |
---|---|---|
viewPlacement | EditorViewPlacement | The EditorViewPlacement to check. |
Returns
- IEditorView:
The IEditorView for the specified location.
HitTest(Point)
Performs a hit test of the specified System.Windows.Point within the editor and returns detailed results in an IHitTestResult.
public IHitTestResult HitTest(Point point)
Parameter | Type | Description |
---|---|---|
point | System.Windows.Point | The System.Windows.Point to hit test, relative to the editor's coordinates. |
Returns
- IHitTestResult:
An IHitTestResult that contains the hit test results.
InvalidateViews()
Invalidates the views and redraws them.
public void InvalidateViews()
IsSelectionModeAllowed(SelectionModes)
Gets whether the specified SelectionModes value is allowed.
public bool IsSelectionModeAllowed(SelectionModes mode)
Parameter | Type | Description |
---|---|---|
mode | SelectionModes | A SelectionModes indicating the value to check. |
Returns
- System.Boolean:
true
if the specified SelectionModes value is allowed; otherwise,false
.
OnActiveViewChanged(EditorViewChangedEventArgs)
Occurs after the ActiveView property is changed.
protected virtual void OnActiveViewChanged(EditorViewChangedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | EditorViewChangedEventArgs | The |
OnApplyTemplate()
Invoked whenever application code or internal processes call ApplyTemplate
.
public override void OnApplyTemplate()
OnAreWordWrapGlyphsVisiblePropertyChanged(Boolean, Boolean)
Occurs when the AreWordWrapGlyphsVisible property is changed.
protected virtual void OnAreWordWrapGlyphsVisiblePropertyChanged(bool oldValue, bool newValue)
Parameter | Type | Description |
---|---|---|
oldValue | System.Boolean | The old value. |
newValue | System.Boolean | The new value. |
OnCanSplitHorizontallyPropertyChanged(Boolean, Boolean)
Occurs when the CanSplitHorizontally property is changed.
protected virtual void OnCanSplitHorizontallyPropertyChanged(bool oldValue, bool newValue)
Parameter | Type | Description |
---|---|---|
oldValue | System.Boolean | The old value. |
newValue | System.Boolean | The new value. |
OnColumnGuidesPropertyChanged(IColumnGuideCollection, IColumnGuideCollection)
Occurs when the ColumnGuides property is changed.
protected virtual void OnColumnGuidesPropertyChanged(IColumnGuideCollection oldValue, IColumnGuideCollection newValue)
Parameter | Type | Description |
---|---|---|
oldValue | IColumnGuideCollection | The old value. |
newValue | IColumnGuideCollection | The new value. |
OnContextMenuOpening(ContextMenuEventArgs)
Occurs when a context menu is requested.
protected override void OnContextMenuOpening(ContextMenuEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.Windows.Controls.ContextMenuEventArgs | The System.Windows.Controls.ContextMenuEventArgs that contains the event data. |
OnCreateAutomationPeer()
Returns an System.Windows.Automation.Peers.AutomationPeer object for this control instance.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- System.Windows.Automation.Peers.AutomationPeer:
An System.Windows.Automation.Peers.AutomationPeer instance.
OnCutCopyDrag(CutCopyDragEventArgs)
Occurs before text is cut or copied to the clipboard, and also before a drag occurs.
protected virtual void OnCutCopyDrag(CutCopyDragEventArgs e)
Parameter | Type | Description |
---|---|---|
e | CutCopyDragEventArgs | The |
OnDocumentChanged(EditorDocumentChangedEventArgs)
Occurs after the Document property is changed.
protected virtual void OnDocumentChanged(EditorDocumentChangedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | EditorDocumentChangedEventArgs | The |
OnDocumentIsModifiedChanged(RoutedEventArgs)
Occurs after the current document's IsModified property value has changed.
protected virtual void OnDocumentIsModifiedChanged(RoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.Windows.RoutedEventArgs | The |
OnDocumentIsReadOnlyChanged(RoutedEventArgs)
Occurs after the current document's IsReadOnly property value has changed.
protected virtual void OnDocumentIsReadOnlyChanged(RoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.Windows.RoutedEventArgs | The |
OnDocumentLanguageChanged(EditorDocumentLanguageChangedEventArgs)
Occurs when the current document's Language property value has changed.
protected virtual void OnDocumentLanguageChanged(EditorDocumentLanguageChangedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | EditorDocumentLanguageChangedEventArgs | The |
OnDocumentParseDataChanged(RoutedEventArgs)
Occurs after the current document's ParseData property value has changed.
protected virtual void OnDocumentParseDataChanged(RoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.Windows.RoutedEventArgs | The |
OnDocumentPropertyChanged(IEditorDocument, IEditorDocument)
Occurs when the Document property is changed.
protected virtual void OnDocumentPropertyChanged(IEditorDocument oldValue, IEditorDocument newValue)
Parameter | Type | Description |
---|---|---|
oldValue | IEditorDocument | The old value. |
newValue | IEditorDocument | The new value. |
OnDocumentTextChanged(EditorSnapshotChangedEventArgs)
Occurs after a text change occurs to the Document.
protected virtual void OnDocumentTextChanged(EditorSnapshotChangedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | EditorSnapshotChangedEventArgs | The |
OnDocumentTextChanging(EditorSnapshotChangingEventArgs)
Occurs before a text change occurs to the Document.
protected virtual void OnDocumentTextChanging(EditorSnapshotChangingEventArgs e)
Parameter | Type | Description |
---|---|---|
e | EditorSnapshotChangingEventArgs | The |
OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)
Occurs after the control gains keyboard focus.
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.Windows.Input.KeyboardFocusChangedEventArgs | A System.Windows.Input.KeyboardFocusChangedEventArgs that contains the event data. |
OnHasHorizontalSplitPropertyChanged(Boolean, Boolean)
Occurs when the HasHorizontalSplit property is changed.
protected virtual void OnHasHorizontalSplitPropertyChanged(bool oldValue, bool newValue)
Parameter | Type | Description |
---|---|---|
oldValue | System.Boolean | The old value. |
newValue | System.Boolean | The new value. |
OnHasSearchOverlayPaneKeyBindingsPropertyChanged(Boolean, Boolean)
Occurs when the HasSearchOverlayPaneKeyBindings property is changed.
protected virtual void OnHasSearchOverlayPaneKeyBindingsPropertyChanged(bool oldValue, bool newValue)
Parameter | Type | Description |
---|---|---|
oldValue | System.Boolean | The old value. |
newValue | System.Boolean | The new value. |
OnHighlightingStyleRegistryPropertyChanged(IHighlightingStyleRegistry, IHighlightingStyleRegistry)
Occurs when the HighlightingStyleRegistry property is changed.
protected virtual void OnHighlightingStyleRegistryPropertyChanged(IHighlightingStyleRegistry oldValue, IHighlightingStyleRegistry newValue)
Parameter | Type | Description |
---|---|---|
oldValue | IHighlightingStyleRegistry | The old value. |
newValue | IHighlightingStyleRegistry | The new value. |
OnHorizontalSplitPercentagePropertyChanged(Double, Double)
Occurs when the HasHorizontalSplit property is changed.
protected virtual void OnHorizontalSplitPercentagePropertyChanged(double oldValue, double newValue)
Parameter | Type | Description |
---|---|---|
oldValue | System.Double | The old value. |
newValue | System.Double | The new value. |
OnIsMultiLinePropertyChanged(Boolean, Boolean)
Occurs when the IsMultiLine property is changed.
protected virtual void OnIsMultiLinePropertyChanged(bool oldValue, bool newValue)
Parameter | Type | Description |
---|---|---|
oldValue | System.Boolean | The old value. |
newValue | System.Boolean | The new value. |
OnIsOverwriteModeActiveChanged(RoutedEventArgs)
Occurs when the IsOverwriteModeActive property value changes.
protected virtual void OnIsOverwriteModeActiveChanged(RoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.Windows.RoutedEventArgs | The |
OnIsSearchResultHighlightingEnabledPropertyChanged(Boolean, Boolean)
Occurs when the IsSearchResultHighlightingEnabled property is changed.
protected virtual void OnIsSearchResultHighlightingEnabledPropertyChanged(bool oldValue, bool newValue)
Parameter | Type | Description |
---|---|---|
oldValue | System.Boolean | The old value. |
newValue | System.Boolean | The new value. |
OnIsVirtualSpaceAtLineEndEnabledPropertyChanged(Boolean, Boolean)
Occurs when the IsVirtualSpaceAtLineEndEnabled property is changed.
protected virtual void OnIsVirtualSpaceAtLineEndEnabledPropertyChanged(bool oldValue, bool newValue)
Parameter | Type | Description |
---|---|---|
oldValue | System.Boolean | The old value. |
newValue | System.Boolean | The new value. |
OnIsWordWrapEnabledPropertyChanged(Boolean, Boolean)
Occurs when the IsWordWrapEnabled property is changed.
protected virtual void OnIsWordWrapEnabledPropertyChanged(bool oldValue, bool newValue)
Parameter | Type | Description |
---|---|---|
oldValue | System.Boolean | The old value. |
newValue | System.Boolean | The new value. |
OnMacroRecordingStateChanged(RoutedEventArgs)
Occurs when the macro recording state changes.
protected virtual void OnMacroRecordingStateChanged(RoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.Windows.RoutedEventArgs | The |
OnMenuRequested(SyntaxEditorMenuEventArgs)
Occurs when a menu is requested, which will be opened in the editor.
protected virtual void OnMenuRequested(SyntaxEditorMenuEventArgs e)
Parameter | Type | Description |
---|---|---|
e | SyntaxEditorMenuEventArgs | The |
OnOverlayPaneClosed(OverlayPaneEventArgs)
Occurs after an overlay pane is closed.
protected virtual void OnOverlayPaneClosed(OverlayPaneEventArgs e)
Parameter | Type | Description |
---|---|---|
e | OverlayPaneEventArgs | The |
OnOverlayPaneOpened(OverlayPaneEventArgs)
Occurs after an overlay pane is opened.
protected virtual void OnOverlayPaneOpened(OverlayPaneEventArgs e)
Parameter | Type | Description |
---|---|---|
e | OverlayPaneEventArgs | The |
OnPasteDragDrop(PasteDragDropEventArgs)
Occurs when a paste or drag/drop operation occurs over the control, allowing for customization of the text to be inserted.
protected virtual void OnPasteDragDrop(PasteDragDropEventArgs e)
Parameter | Type | Description |
---|---|---|
e | PasteDragDropEventArgs | The |
Remarks
This event allows for any sort of IDataStore (such as a file) to be handled when pasted or drag/dropped on the editor and representative text inserted.
OnPropertyChanged(DependencyPropertyChangedEventArgs)
Occurs when any dependency property value has changed.
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.Windows.DependencyPropertyChangedEventArgs | A |
OnUserInterfaceUpdate(RoutedEventArgs)
Occurs after a brief delay following any document text, parse data, or view selection update, allowing consumers to update the user interface during an idle period.
protected virtual void OnUserInterfaceUpdate(RoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.Windows.RoutedEventArgs | The |
OnViewActionExecuting(EditActionEventArgs)
Occurs before an IEditAction is executed in an IEditorView.
protected virtual void OnViewActionExecuting(EditActionEventArgs e)
Parameter | Type | Description |
---|---|---|
e | EditActionEventArgs | The |
OnViewClosed(TextViewEventArgs)
Occurs when an ITextView is closed.
protected virtual void OnViewClosed(TextViewEventArgs e)
Parameter | Type | Description |
---|---|---|
e | TextViewEventArgs | The |
OnViewIsIncrementalSearchActiveChanged(TextViewEventArgs)
Occurs when the incremental search mode of an ITextView is activated or deactivated.
protected virtual void OnViewIsIncrementalSearchActiveChanged(TextViewEventArgs e)
Parameter | Type | Description |
---|---|---|
e | TextViewEventArgs | The |
OnViewOpened(TextViewEventArgs)
Occurs when an ITextView is opened.
protected virtual void OnViewOpened(TextViewEventArgs e)
Parameter | Type | Description |
---|---|---|
e | TextViewEventArgs | The |
OnViewSearch(EditorViewSearchEventArgs)
Occurs when a IEditorView search operation is performed.
protected virtual void OnViewSearch(EditorViewSearchEventArgs e)
Parameter | Type | Description |
---|---|---|
e | EditorViewSearchEventArgs | The |
OnViewSelectionChanged(EditorViewSelectionEventArgs)
Occurs when a IEditorView selection has changed.
protected virtual void OnViewSelectionChanged(EditorViewSelectionEventArgs e)
Parameter | Type | Description |
---|---|---|
e | EditorViewSelectionEventArgs | The |
OnViewSplitAdded(RoutedEventArgs)
Occurs when an IEditorView split is added.
protected virtual void OnViewSplitAdded(RoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.Windows.RoutedEventArgs | The |
OnViewSplitMoved(RoutedEventArgs)
Occurs when an IEditorView split is moved.
protected virtual void OnViewSplitMoved(RoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.Windows.RoutedEventArgs | The |
OnViewSplitRemoved(RoutedEventArgs)
Occurs when an IEditorView split is removed.
protected virtual void OnViewSplitRemoved(RoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.Windows.RoutedEventArgs | The |
OnWordWrapModeChanged(RoutedEventArgs)
Occurs after the WordWrapMode property is changed.
protected virtual void OnWordWrapModeChanged(RoutedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.Windows.RoutedEventArgs | The |
OnWordWrapModePropertyChanged(WordWrapMode, WordWrapMode)
Occurs when the WordWrapMode property is changed.
protected virtual void OnWordWrapModePropertyChanged(WordWrapMode oldValue, WordWrapMode newValue)
Parameter | Type | Description |
---|---|---|
oldValue | WordWrapMode | The old value. |
newValue | WordWrapMode | The new value. |
OnZoomLevelPropertyChanged(Double, Double)
Occurs when the ZoomLevel property is changed.
protected virtual void OnZoomLevelPropertyChanged(double oldValue, double newValue)
Parameter | Type | Description |
---|---|---|
oldValue | System.Double | The old value. |
newValue | System.Double | The new value. |
ResetCommandBindings()
Resets the CommandBindings
property to its default value.
public virtual void ResetCommandBindings()
ResetInputBindings()
Resets the input bindings to their default values.
public virtual void ResetInputBindings()
ResetViews()
Resets the splits and creates an initial view.
public void ResetViews()
ResumeCaretBlinking()
Resumes the blinking of the caret(s).
public void ResumeCaretBlinking()
ShowPrintDialog()
Displays the print dialog.
public bool ShowPrintDialog()
Returns
- System.Boolean:
true
if the dialog was displayed successfully and printing occurred; otherwise,false
.
ShowPrintPreviewDialog()
Displays the print preview dialog.
public bool ShowPrintPreviewDialog()
Returns
- System.Boolean:
true
if the dialog was displayed successfully; otherwise,false
.
Remarks
This dialog cannot be displayed in an XBAP.
SuspendCaretBlinking(Boolean)
Suspends the blinking of the caret(s).
public void SuspendCaretBlinking(bool show)
Parameter | Type | Description |
---|---|---|
show | System.Boolean | Whether to display the caret(s). |
Events
ActiveViewChanged
Occurs after the ActiveView property is changed.
public event EventHandler<EditorViewChangedEventArgs> ActiveViewChanged
Event Type
- System.EventHandler<EditorViewChangedEventArgs>
CutCopyDrag
Occurs before text is cut or copied to the clipboard, and also before a drag occurs.
public event EventHandler<CutCopyDragEventArgs> CutCopyDrag
Event Type
- System.EventHandler<CutCopyDragEventArgs>
DocumentChanged
Occurs after the Document property is changed.
public event EventHandler<EditorDocumentChangedEventArgs> DocumentChanged
Event Type
- System.EventHandler<EditorDocumentChangedEventArgs>
DocumentIsModifiedChanged
Occurs after the current document's IsModified property value has changed.
public event RoutedEventHandler DocumentIsModifiedChanged
Event Type
- System.Windows.RoutedEventHandler
DocumentIsReadOnlyChanged
Occurs after the current document's IsReadOnly property value has changed.
public event RoutedEventHandler DocumentIsReadOnlyChanged
Event Type
- System.Windows.RoutedEventHandler
DocumentLanguageChanged
Occurs when the current document's Language property value has changed.
public event EventHandler<EditorDocumentLanguageChangedEventArgs> DocumentLanguageChanged
Event Type
- System.EventHandler<EditorDocumentLanguageChangedEventArgs>
DocumentParseDataChanged
Occurs after the current document's ParseData property value has changed.
public event RoutedEventHandler DocumentParseDataChanged
Event Type
- System.Windows.RoutedEventHandler
DocumentTextChanged
Occurs after a text change occurs to the Document.
public event EventHandler<EditorSnapshotChangedEventArgs> DocumentTextChanged
Event Type
- System.EventHandler<EditorSnapshotChangedEventArgs>
DocumentTextChanging
Occurs before a text change occurs to the Document.
public event EventHandler<EditorSnapshotChangingEventArgs> DocumentTextChanging
Event Type
- System.EventHandler<EditorSnapshotChangingEventArgs>
IsOverwriteModeActiveChanged
Occurs when the IsOverwriteModeActive property value changes.
public event RoutedEventHandler IsOverwriteModeActiveChanged
Event Type
- System.Windows.RoutedEventHandler
MacroRecordingStateChanged
Occurs when the macro recording state changes.
public event RoutedEventHandler MacroRecordingStateChanged
Event Type
- System.Windows.RoutedEventHandler
MenuRequested
Occurs when a menu is requested, which will be opened in the editor.
public event EventHandler<SyntaxEditorMenuEventArgs> MenuRequested
Event Type
- System.EventHandler<SyntaxEditorMenuEventArgs>
OverlayPaneClosed
Occurs after an overlay pane is closed.
public event EventHandler<OverlayPaneEventArgs> OverlayPaneClosed
Event Type
- System.EventHandler<OverlayPaneEventArgs>
OverlayPaneOpened
Occurs after an overlay pane is opened.
public event EventHandler<OverlayPaneEventArgs> OverlayPaneOpened
Event Type
- System.EventHandler<OverlayPaneEventArgs>
PasteDragDrop
Occurs when a paste or drag/drop operation occurs over the control, allowing for customization of the text to be inserted.
public event EventHandler<PasteDragDropEventArgs> PasteDragDrop
Event Type
- System.EventHandler<PasteDragDropEventArgs>
Remarks
This event allows for any sort of IDataStore (such as a file) to be handled when pasted or drag/dropped on the editor and representative text inserted.
UserInterfaceUpdate
Occurs after a brief delay following any document text, parse data, or view selection update, allowing consumers to update the user interface during an idle period.
public event RoutedEventHandler UserInterfaceUpdate
Event Type
- System.Windows.RoutedEventHandler
ViewActionExecuting
Occurs before an IEditAction is executed in an IEditorView.
public event EventHandler<EditActionEventArgs> ViewActionExecuting
Event Type
- System.EventHandler<EditActionEventArgs>
ViewClosed
Occurs when an ITextView is closed.
public event EventHandler<TextViewEventArgs> ViewClosed
Event Type
- System.EventHandler<TextViewEventArgs>
ViewIsIncrementalSearchActiveChanged
Occurs when the incremental search mode of an ITextView is activated or deactivated.
public event EventHandler<TextViewEventArgs> ViewIsIncrementalSearchActiveChanged
Event Type
- System.EventHandler<TextViewEventArgs>
ViewOpened
Occurs when an ITextView is opened.
public event EventHandler<TextViewEventArgs> ViewOpened
Event Type
- System.EventHandler<TextViewEventArgs>
ViewSearch
Occurs when a IEditorView search operation is performed.
public event EventHandler<EditorViewSearchEventArgs> ViewSearch
Event Type
- System.EventHandler<EditorViewSearchEventArgs>
ViewSelectionChanged
Occurs when a IEditorView selection has changed.
public event EventHandler<EditorViewSelectionEventArgs> ViewSelectionChanged
Event Type
- System.EventHandler<EditorViewSelectionEventArgs>
ViewSplitAdded
Occurs when an IEditorView split is added.
public event RoutedEventHandler ViewSplitAdded
Event Type
- System.Windows.RoutedEventHandler
ViewSplitMoved
Occurs when an IEditorView split is moved.
public event RoutedEventHandler ViewSplitMoved
Event Type
- System.Windows.RoutedEventHandler
ViewSplitRemoved
Occurs when an IEditorView split is removed.
public event RoutedEventHandler ViewSplitRemoved
Event Type
- System.Windows.RoutedEventHandler
WordWrapModeChanged
Occurs after the WordWrapMode property is changed.
public event RoutedEventHandler WordWrapModeChanged
Event Type
- System.Windows.RoutedEventHandler
Fields
AcceptsTabProperty
Identifies the AcceptsTab dependency property. This field is read-only.
public static readonly DependencyProperty AcceptsTabProperty
ActiveViewChangedEvent
Identifies the ActiveViewChanged routed event. This field is read-only.
public static readonly RoutedEvent ActiveViewChangedEvent
ActiveViewProperty
Identifies the ActiveView dependency property. This field is read-only.
public static readonly DependencyProperty ActiveViewProperty
AllowDragProperty
Identifies the AllowDrag dependency property. This field is read-only.
public static readonly DependencyProperty AllowDragProperty
AreColumnGuidesVisibleProperty
Identifies the AreColumnGuidesVisible dependency property. This field is read-only.
public static readonly DependencyProperty AreColumnGuidesVisibleProperty
AreIndentationGuidesVisibleProperty
Identifies the AreIndentationGuidesVisible dependency property. This field is read-only.
public static readonly DependencyProperty AreIndentationGuidesVisibleProperty
AreLineModificationMarksVisibleProperty
Identifies the AreLineModificationMarksVisible dependency property. This field is read-only.
public static readonly DependencyProperty AreLineModificationMarksVisibleProperty
AreMultipleSelectionRangesEnabledProperty
Identifies the AreMultipleSelectionRangesEnabled dependency property. This field is read-only.
public static readonly DependencyProperty AreMultipleSelectionRangesEnabledProperty
AreSelectionGrippersEnabledProperty
Identifies the AreSelectionGrippersEnabled dependency property. This field is read-only.
public static readonly DependencyProperty AreSelectionGrippersEnabledProperty
AreWordWrapGlyphsVisibleProperty
Identifies the AreWordWrapGlyphsVisible dependency property. This field is read-only.
public static readonly DependencyProperty AreWordWrapGlyphsVisibleProperty
CanBackspaceOverSpacesToTabStopProperty
Identifies the CanBackspaceOverSpacesToTabStop dependency property. This field is read-only.
public static readonly DependencyProperty CanBackspaceOverSpacesToTabStopProperty
CanCutCopyBlankLineWhenNoSelectionProperty
Identifies the CanCutCopyBlankLineWhenNoSelection dependency property. This field is read-only.
public static readonly DependencyProperty CanCutCopyBlankLineWhenNoSelectionProperty
CanCutCopyDragWithHtmlProperty
Identifies the CanCutCopyDragWithHtml dependency property. This field is read-only.
public static readonly DependencyProperty CanCutCopyDragWithHtmlProperty
CanCutCopyDragWithRtfProperty
Identifies the CanCutCopyDragWithRtf dependency property. This field is read-only.
public static readonly DependencyProperty CanCutCopyDragWithRtfProperty
CanIncrementalSearchTrimUnmatchedFindTextProperty
Identifies the CanIncrementalSearchTrimUnmatchedFindText dependency property. This field is read-only.
public static readonly DependencyProperty CanIncrementalSearchTrimUnmatchedFindTextProperty
CanMoveCaretForSecondaryPointerButtonProperty
Identifies the CanMoveCaretForSecondaryPointerButton dependency property. This field is read-only.
public static readonly DependencyProperty CanMoveCaretForSecondaryPointerButtonProperty
CanMoveCaretToNextLineAtLineEndProperty
Identifies the CanMoveCaretToNextLineAtLineEnd dependency property. This field is read-only.
public static readonly DependencyProperty CanMoveCaretToNextLineAtLineEndProperty
CanMoveCaretToPreviousLineAtLineStartProperty
Identifies the CanMoveCaretToPreviousLineAtLineStart dependency property. This field is read-only.
public static readonly DependencyProperty CanMoveCaretToPreviousLineAtLineStartProperty
CanPointerWheelScrollUnfocusedViewsProperty
Identifies the CanPointerWheelScrollUnfocusedViews dependency property. This field is read-only.
public static readonly DependencyProperty CanPointerWheelScrollUnfocusedViewsProperty
CanScrollPastDocumentEndProperty
Identifies the CanScrollPastDocumentEnd dependency property. This field is read-only.
public static readonly DependencyProperty CanScrollPastDocumentEndProperty
CanSplitHorizontallyProperty
Identifies the CanSplitHorizontally dependency property. This field is read-only.
public static readonly DependencyProperty CanSplitHorizontallyProperty
CaretBlinkIntervalProperty
Identifies the CaretBlinkInterval dependency property. This field is read-only.
public static readonly DependencyProperty CaretBlinkIntervalProperty
CaretBrushProperty
Identifies the CaretBrush dependency property. This field is read-only.
public static readonly DependencyProperty CaretBrushProperty
CaretInsertKindProperty
Identifies the CaretInsertKind dependency property. This field is read-only.
public static readonly DependencyProperty CaretInsertKindProperty
CaretInsertWidthProperty
Identifies the CaretInsertWidth dependency property. This field is read-only.
public static readonly DependencyProperty CaretInsertWidthProperty
CaretOverwriteKindProperty
Identifies the CaretOverwriteKind dependency property. This field is read-only.
public static readonly DependencyProperty CaretOverwriteKindProperty
CaretOverwriteWidthProperty
Identifies the CaretOverwriteWidth dependency property. This field is read-only.
public static readonly DependencyProperty CaretOverwriteWidthProperty
ColumnGuidesProperty
Identifies the ColumnGuides dependency property. This field is read-only.
public static readonly DependencyProperty ColumnGuidesProperty
CutCopyDragEvent
Identifies the CutCopyDrag routed event. This field is read-only.
public static readonly RoutedEvent CutCopyDragEvent
DocumentChangedEvent
Identifies the DocumentChanged routed event. This field is read-only.
public static readonly RoutedEvent DocumentChangedEvent
DocumentIsModifiedChangedEvent
Identifies the DocumentIsModifiedChanged routed event. This field is read-only.
public static readonly RoutedEvent DocumentIsModifiedChangedEvent
DocumentIsReadOnlyChangedEvent
Identifies the DocumentIsReadOnlyChanged routed event. This field is read-only.
public static readonly RoutedEvent DocumentIsReadOnlyChangedEvent
DocumentLanguageChangedEvent
Identifies the DocumentLanguageChanged routed event. This field is read-only.
public static readonly RoutedEvent DocumentLanguageChangedEvent
DocumentParseDataChangedEvent
Identifies the DocumentParseDataChanged routed event. This field is read-only.
public static readonly RoutedEvent DocumentParseDataChangedEvent
DocumentProperty
Identifies the Document dependency property. This field is read-only.
public static readonly DependencyProperty DocumentProperty
DocumentTextChangedEvent
Identifies the DocumentTextChanged routed event. This field is read-only.
public static readonly RoutedEvent DocumentTextChangedEvent
DocumentTextChangingEvent
Identifies the DocumentTextChanging routed event. This field is read-only.
public static readonly RoutedEvent DocumentTextChangingEvent
HasHorizontalSplitProperty
Identifies the HasHorizontalSplit dependency property. This field is read-only.
public static readonly DependencyProperty HasHorizontalSplitProperty
HasSearchOverlayPaneKeyBindingsProperty
Identifies the HasSearchOverlayPaneKeyBindings dependency property. This field is read-only.
public static readonly DependencyProperty HasSearchOverlayPaneKeyBindingsProperty
HighlightingStyleRegistryProperty
Identifies the HighlightingStyleRegistry dependency property. This field is read-only.
public static readonly DependencyProperty HighlightingStyleRegistryProperty
HorizontalScrollBarVisibilityProperty
Identifies the HorizontalScrollBarVisibility dependency property. This field is read-only.
public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty
HorizontalSplitPercentageProperty
Identifies the HorizontalSplitPercentage dependency property. This field is read-only.
public static readonly DependencyProperty HorizontalSplitPercentageProperty
InactiveSelectedTextBackgroundProperty
Identifies the InactiveSelectedTextBackground dependency property. This field is read-only.
public static readonly DependencyProperty InactiveSelectedTextBackgroundProperty
IndicatorMarginBackgroundProperty
Identifies the IndicatorMarginBackground dependency property. This field is read-only.
public static readonly DependencyProperty IndicatorMarginBackgroundProperty
IsAutoCorrectEnabledProperty
Identifies the IsAutoCorrectEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsAutoCorrectEnabledProperty
IsCollapsibleRegionHighlightingEnabledProperty
Identifies the IsCollapsibleRegionHighlightingEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsCollapsibleRegionHighlightingEnabledProperty
IsCurrentLineHighlightingEnabledProperty
Identifies the IsCurrentLineHighlightingEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsCurrentLineHighlightingEnabledProperty
IsDefaultContextMenuEnabledProperty
Identifies the IsDefaultContextMenuEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsDefaultContextMenuEnabledProperty
IsDelimiterAutoCompleteEnabledProperty
Identifies the IsDelimiterAutoCompleteEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsDelimiterAutoCompleteEnabledProperty
IsDelimiterHighlightingEnabledProperty
Identifies the IsDelimiterHighlightingEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsDelimiterHighlightingEnabledProperty
IsDocumentReadOnlyProperty
Identifies the IsDocumentReadOnly dependency property. This field is read-only.
public static readonly DependencyProperty IsDocumentReadOnlyProperty
IsDragDropTextReselectEnabledProperty
Identifies the IsDragDropTextReselectEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsDragDropTextReselectEnabledProperty
IsImeEnabledProperty
Identifies the IsImeEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsImeEnabledProperty
IsIndicatorMarginVisibleProperty
Identifies the IsIndicatorMarginVisible dependency property. This field is read-only.
public static readonly DependencyProperty IsIndicatorMarginVisibleProperty
IsLineNumberMarginVisibleProperty
Identifies the IsLineNumberMarginVisible dependency property. This field is read-only.
public static readonly DependencyProperty IsLineNumberMarginVisibleProperty
IsMultiLineProperty
Identifies the IsMultiLine dependency property. This field is read-only.
public static readonly DependencyProperty IsMultiLineProperty
IsOutliningMarginVisibleProperty
Identifies the IsOutliningMarginVisible dependency property. This field is read-only.
public static readonly DependencyProperty IsOutliningMarginVisibleProperty
IsOverwriteModeActiveChangedEvent
Identifies the IsOverwriteModeActiveChanged routed event. This field is read-only.
public static readonly RoutedEvent IsOverwriteModeActiveChangedEvent
IsOverwriteModeActiveProperty
Identifies the IsOverwriteModeActive dependency property. This field is read-only.
public static readonly DependencyProperty IsOverwriteModeActiveProperty
IsRulerMarginVisibleProperty
Identifies the IsRulerMarginVisible dependency property. This field is read-only.
public static readonly DependencyProperty IsRulerMarginVisibleProperty
IsSearchResultHighlightingEnabledProperty
Identifies the IsSearchResultHighlightingEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsSearchResultHighlightingEnabledProperty
IsSelectionMarginVisibleProperty
Identifies the IsSelectionMarginVisible dependency property. This field is read-only.
public static readonly DependencyProperty IsSelectionMarginVisibleProperty
IsTextDataBindingEnabledProperty
Identifies the IsTextDataBindingEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsTextDataBindingEnabledProperty
IsViewLineMeasureEnabledProperty
Identifies the IsViewLineMeasureEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsViewLineMeasureEnabledProperty
IsVirtualSpaceAtLineEndEnabledProperty
Identifies the IsVirtualSpaceAtLineEndEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsVirtualSpaceAtLineEndEnabledProperty
IsWhitespaceVisibleProperty
Identifies the IsWhitespaceVisible dependency property. This field is read-only.
public static readonly DependencyProperty IsWhitespaceVisibleProperty
IsWordWrapEnabledProperty
Identifies the IsWordWrapEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsWordWrapEnabledProperty
IsWordWrapGlyphMarginVisibleProperty
Identifies the IsWordWrapGlyphMarginVisible dependency property. This field is read-only.
public static readonly DependencyProperty IsWordWrapGlyphMarginVisibleProperty
LineNumberMarginBackgroundProperty
Identifies the LineNumberMarginBackground dependency property. This field is read-only.
public static readonly DependencyProperty LineNumberMarginBackgroundProperty
LineNumberMarginFontFamilyProperty
Identifies the LineNumberMarginFontFamily dependency property. This field is read-only.
public static readonly DependencyProperty LineNumberMarginFontFamilyProperty
LineNumberMarginFontSizeProperty
Identifies the LineNumberMarginFontSize dependency property. This field is read-only.
public static readonly DependencyProperty LineNumberMarginFontSizeProperty
LineNumberMarginForegroundProperty
Identifies the LineNumberMarginForeground dependency property. This field is read-only.
public static readonly DependencyProperty LineNumberMarginForegroundProperty
MacroRecordingStateChangedEvent
Identifies the MacroRecordingStateChanged routed event. This field is read-only.
public static readonly RoutedEvent MacroRecordingStateChangedEvent
MaxIntelliPromptZoomLevelProperty
Identifies the MaxIntelliPromptZoomLevel dependency property. This field is read-only.
public static readonly DependencyProperty MaxIntelliPromptZoomLevelProperty
MaxZoomLevelProperty
Identifies the MaxZoomLevel dependency property. This field is read-only.
public static readonly DependencyProperty MaxZoomLevelProperty
MenuRequestedEvent
Identifies the MenuRequested routed event. This field is read-only.
public static readonly RoutedEvent MenuRequestedEvent
MinIntelliPromptZoomLevelProperty
Identifies the MinIntelliPromptZoomLevel dependency property. This field is read-only.
public static readonly DependencyProperty MinIntelliPromptZoomLevelProperty
MinZoomLevelProperty
Identifies the MinZoomLevel dependency property. This field is read-only.
public static readonly DependencyProperty MinZoomLevelProperty
OutliningMarginBackgroundProperty
Identifies the OutliningMarginBackground dependency property. This field is read-only.
public static readonly DependencyProperty OutliningMarginBackgroundProperty
OverlayPaneClosedEvent
Identifies the OverlayPaneClosed routed event. This field is read-only.
public static readonly RoutedEvent OverlayPaneClosedEvent
OverlayPaneOpenedEvent
Identifies the OverlayPaneOpened routed event. This field is read-only.
public static readonly RoutedEvent OverlayPaneOpenedEvent
PasteDragDropEvent
Identifies the PasteDragDrop routed event. This field is read-only.
public static readonly RoutedEvent PasteDragDropEvent
PrintSettingsProperty
Identifies the PrintSettings dependency property. This field is read-only.
public static readonly DependencyProperty PrintSettingsProperty
RulerMarginBackgroundProperty
Identifies the RulerMarginBackground dependency property. This field is read-only.
public static readonly DependencyProperty RulerMarginBackgroundProperty
RulerMarginForegroundProperty
Identifies the RulerMarginForeground dependency property. This field is read-only.
public static readonly DependencyProperty RulerMarginForegroundProperty
ScrollBarAccelerationIntervalProperty
Identifies the ScrollBarAccelerationInterval dependency property. This field is read-only.
public static readonly DependencyProperty ScrollBarAccelerationIntervalProperty
ScrollBarAccelerationMaximumProperty
Identifies the ScrollBarAccelerationMaximum dependency property. This field is read-only.
public static readonly DependencyProperty ScrollBarAccelerationMaximumProperty
ScrollBarTrayBottomTemplateProperty
Identifies the ScrollBarTrayBottomTemplate dependency property. This field is read-only.
public static readonly DependencyProperty ScrollBarTrayBottomTemplateProperty
ScrollBarTrayLeftTemplateProperty
Identifies the ScrollBarTrayLeftTemplate dependency property. This field is read-only.
public static readonly DependencyProperty ScrollBarTrayLeftTemplateProperty
ScrollBarTrayRightTemplateProperty
Identifies the ScrollBarTrayRightTemplate dependency property. This field is read-only.
public static readonly DependencyProperty ScrollBarTrayRightTemplateProperty
ScrollBarTrayTopTemplateProperty
Identifies the ScrollBarTrayTopTemplate dependency property. This field is read-only.
public static readonly DependencyProperty ScrollBarTrayTopTemplateProperty
ScrollToCaretOnSelectAllProperty
Identifies the ScrollToCaretOnSelectAll dependency property. This field is read-only.
public static readonly DependencyProperty ScrollToCaretOnSelectAllProperty
SearchOptionsProperty
Identifies the SearchOptions dependency property. This field is read-only.
public static readonly DependencyProperty SearchOptionsProperty
SelectedTextBackgroundProperty
Identifies the SelectedTextBackground dependency property. This field is read-only.
public static readonly DependencyProperty SelectedTextBackgroundProperty
SelectionCollapsesOnCopyProperty
Identifies the SelectionCollapsesOnCopy dependency property. This field is read-only.
public static readonly DependencyProperty SelectionCollapsesOnCopyProperty
SelectionCollapsesToAnchorProperty
Identifies the SelectionCollapsesToAnchor dependency property. This field is read-only.
public static readonly DependencyProperty SelectionCollapsesToAnchorProperty
SelectionMarginBackgroundProperty
Identifies the SelectionMarginBackground dependency property. This field is read-only.
public static readonly DependencyProperty SelectionMarginBackgroundProperty
SelectionModesAllowedProperty
Identifies the SelectionModesAllowed dependency property. This field is read-only.
public static readonly DependencyProperty SelectionModesAllowedProperty
TextAreaFontSizeProperty
Identifies the TextAreaFontSize dependency property. This field is read-only.
public static readonly DependencyProperty TextAreaFontSizeProperty
TextProperty
Identifies the Text dependency property. This field is read-only.
public static readonly DependencyProperty TextProperty
UserInterfaceUpdateEvent
Identifies the UserInterfaceUpdate routed event. This field is read-only.
public static readonly RoutedEvent UserInterfaceUpdateEvent
VerticalScrollBarVisibilityProperty
Identifies the VerticalScrollBarVisibility dependency property. This field is read-only.
public static readonly DependencyProperty VerticalScrollBarVisibilityProperty
ViewActionExecutingEvent
Identifies the ViewActionExecuting routed event. This field is read-only.
public static readonly RoutedEvent ViewActionExecutingEvent
ViewClosedEvent
Identifies the ViewClosed routed event. This field is read-only.
public static readonly RoutedEvent ViewClosedEvent
ViewIsIncrementalSearchActiveChangedEvent
Identifies the ViewIsIncrementalSearchActiveChanged routed event. This field is read-only.
public static readonly RoutedEvent ViewIsIncrementalSearchActiveChangedEvent
ViewOpenedEvent
Identifies the ViewOpened routed event. This field is read-only.
public static readonly RoutedEvent ViewOpenedEvent
ViewSearchEvent
Identifies the ViewSearch routed event. This field is read-only.
public static readonly RoutedEvent ViewSearchEvent
ViewSelectionChangedEvent
Identifies the ViewSelectionChanged routed event. This field is read-only.
public static readonly RoutedEvent ViewSelectionChangedEvent
ViewSplitAddedEvent
Identifies the ViewSplitAdded routed event. This field is read-only.
public static readonly RoutedEvent ViewSplitAddedEvent
ViewSplitMovedEvent
Identifies the ViewSplitMoved routed event. This field is read-only.
public static readonly RoutedEvent ViewSplitMovedEvent
ViewSplitRemovedEvent
Identifies the ViewSplitRemoved routed event. This field is read-only.
public static readonly RoutedEvent ViewSplitRemovedEvent
VisibleWhitespaceForegroundProperty
Identifies the VisibleWhitespaceForeground dependency property. This field is read-only.
public static readonly DependencyProperty VisibleWhitespaceForegroundProperty
WordWrapGlyphMarginBackgroundProperty
Identifies the WordWrapGlyphMarginBackground dependency property. This field is read-only.
public static readonly DependencyProperty WordWrapGlyphMarginBackgroundProperty
WordWrapGlyphMarginForegroundProperty
Identifies the WordWrapGlyphMarginForeground dependency property. This field is read-only.
public static readonly DependencyProperty WordWrapGlyphMarginForegroundProperty
WordWrapModeChangedEvent
Identifies the WordWrapModeChanged routed event. This field is read-only.
public static readonly RoutedEvent WordWrapModeChangedEvent
WordWrapModeProperty
Identifies the WordWrapMode dependency property. This field is read-only.
public static readonly DependencyProperty WordWrapModeProperty
WrappedLineIndentAmountProperty
Identifies the WrappedLineIndentAmount dependency property. This field is read-only.
public static readonly DependencyProperty WrappedLineIndentAmountProperty
ZoomAnimationDurationProperty
Identifies the ZoomAnimationDuration dependency property. This field is read-only.
public static readonly DependencyProperty ZoomAnimationDurationProperty
ZoomLevelAnimatedProperty
Identifies the ZoomLevelAnimated dependency property. This field is read-only.
public static readonly DependencyProperty ZoomLevelAnimatedProperty
ZoomLevelIncrementProperty
Identifies the ZoomLevelIncrement dependency property. This field is read-only.
public static readonly DependencyProperty ZoomLevelIncrementProperty
ZoomLevelProperty
Identifies the ZoomLevel dependency property. This field is read-only.
public static readonly DependencyProperty ZoomLevelProperty
ZoomModesAllowedProperty
Identifies the ZoomModesAllowed dependency property. This field is read-only.
public static readonly DependencyProperty ZoomModesAllowedProperty
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()