Actipro SyntaxEditor for WinForms 2020.1

スクロール、ズーム、検索機能を改善
11月 14, 2019
新バージョン

機能

Cross-Platform Design

  • The WinForms SyntaxEditor has been rewritten to support a cross-platform API across the WPF, UWP, and WinForms platforms. This allows SyntaxEditor features for the three platforms to be kept in sync moving forward.

Scrolling and Zooming

  • Added smooth inertia-based touch scrolling.
  • Added support for Shift+MouseWheel to scroll editor views horizontally.
  • Added the IEditorViewScroller.ScrollTo method that scrolls the view to a certain view line, which can easily be displayed to the top, center, or bottom of the view via options in the supplied TextViewScrollState struct.
  • Added the IEditorViewScroller.ScrollByPixels and ScrollHorizontallyByPixels methods, allowing for diagonal and horizontal scrolling by pixels respectively.
  • When resizing a view that is scrolled to the right, the horizontal scroll amount can adjust to ensure that there isn't too much empty space on the text area's right side.
  • The view now remembers maximum line widths better, which prevents horizontal scrollbar maximum changing as much when scrolling vertically through lines that have very different widths.
  • Mouse wheel scrolling now supports page-based scrolling if the related operating system option is chosen.
  • ScrollBar acceleration features added where the vertical scrollbar accelerates its scrolling speed the longer you hold the up or down button..
  • Updated the NavigableSymbolSelector control to scroll the target offset to the middle of the view if scrolling is required when a symbol is selected.

Carets and Selection

  • Multiple selections, each with their own caret, are now supported as long as the new SyntaxEditor.AreMultipleSelectionRangesEnabled property is true. A new selection can be added by holding the Ctrl key when clicking in the text area or clicking on the selection or line number margins.
  • Properties on the IEditorView.Selection object continue to operate on the primary selection range. A new Ranges property has been added to the IEditorView.Selection object that allows for enumeration of all selection ranges.
  • Multiple selections can be set with the new IEditorView.Selection.SelectRanges method, or a new selection can be added with the AddRange method.
  • Most edit actions have been refactored to fully support multiple selections. For instance, pressing Shift+Right Arrow will extend all of the selections by one character.
  • Copying text from multiple selections unions the selected text, joining each range's text with a line terminator.
  • Pasting multi-line text into a view with the same number of selections as text lines being pasted will replace each selection with a related line from the pasted text.
  • The IEditorView.DeleteSelectedText and ReplaceSelectedText methods have been refactored to support applying to multiple selections when the EditorViewTextChangeOptions.CanApplyToMultipleSelections flag is set.
  • Selection grippers will show for the primary selection when touch input is used.
  • Carets now support movement at both the start and end of word wrapped lines.
  • Rendering of virtual space selections is improved.
  • Block selections can be made in virtual space at the end of lines, even without line end virtual space being enabled. This prevents the caret from snapping to an offset when making a block selection, which can sometimes be problematic.
  • Added the ITextChange.PostSelectionPositionRanges property that indicates the exact selection ranges for the source view after the text change is applied.
  • Added the EditorViewSelectionEventArgs.PreviousSelectionRanges property that contains a snapshot of all selection ranges prior to the selection change.
  • Added collapse selection left and collapse selection right edit actions.

Searching

  • A new search overlay pane displays over the upper-right of the active editor view when Ctrl+F (find mode) or Ctrl+H (replace mode) are pressed in a multi-line editor. Related edit actions added.
  • A toggle mode button on the search overlay pane switches between find and replace modes, and all common search options are supported via toggle buttons and other controls.
  • The search overlay pane can be closed by clicking the X button or by pressing Esc.
  • Ctrl+F3 will open the search overlay pane without focusing it, and will search forward for the currently-selected text. Ctrl+Shift+F3 will do the same but will search backwards. Related edit actions added.
  • F3 will search for the next match of the previously-used search options. Shift+F3 will search for the previous match of the previously-used search options. Related edit actions added.
  • If the SyntaxEditor.IsSearchResultHighlightingEnabled property is true, the search results will be highlighted while the search overlay pane is open. Closing the search overlay pane, clears the search result highlights.
  • The new SyntaxEditor.OverlayPaneOpened and OverlayPaneClosed events fire when the search overlay pane is opened or closed.

Splitting

  • Updated the scrollbar splitter button with a larger appearance.
  • Drag a view splitter to the bottom of the view to remove the split and keep the top view.

Margins

  • Added the ITextViewLineNumberProvider language service with a DefaultTextViewLineNumberProvider implementation that allows for complete customization of how line numbers are rendered in the line number margin. Added the IEditorDocument.LineNumberOrigin property that sets the line number for the first line in the document, and defaults to one.
  • Added the ruler margin, which is displayed via the SyntaxEditor.IsRulerMarginVisible property.
  • Added outlining margin highlights when moving a pointer over nodes in the margin.
  • Updated line modification marks with improved logic that better tracks unsaved, saves, and reverted changes.

Indicators

  • Updated the IIndicatorTag interface to use the fast new rendering mechanism for drawing glyphs instead of making UI elements.
  • Improved the rendering of built-in indicator glyphs.

Delimiters

  • Added the SyntaxEditor.IsDelimiterAutoCompleteEnabled property to determine if syntax languages support delimiter auto-completion. Delimiter auto-completion can be implemented by registering an IDelimiterAutoCompleter language service. The built-in DelimiterAutoCompleter class implements common delimiter auto-completion functionality.
  • Added the SyntaxEditor.IsDelimiterHighlightingEnabled property to determine if multi-threaded delimiter highlighting is enabled. IStructureMatcher and DelimiterHighlightTagger provider services are required on the syntax language to support this feature.

Input and Editing

  • Added the PerformTyping, PerformInsertTyping, and PerformOverwriteTyping methods to the IEditorViewTextChangeActions interface that simulate typing.
  • Added the IEditorViewTextChangeActions.FormatDocument and FormatSelection methods, which call the related edit commands.
  • Improved the open line above and open line below edit actions to use the current language's indent provider for caret positioning.
  • Added support for triple-clicks to select an entire view line. Dragging the pointer on the final click will extend the selection by view line.

IntelliPrompt

  • IntelliPrompt UI reworked across all platforms.
  • The Metro Light and Metro Dark common image sets have been added as options in place of the existing Classic common image set.
  • Added a completion list feature that highlights the matched text in completion items as you type.
  • Added a completion list option that filters out items that don't match the typed text, thereby shrinking the list of visible items.
  • Added various completion list item matchers and match options that allow for special item matching logic to be injected. Numerous built-in item matchers are available such as starts-with, acronym, shorthand, etc.
  • Added completion filter UI such as buttons and tabs.
  • Updated all language add-on IntelliPrompt quick info and parameter info tips to use the current editor background and syntax highlighting colors.

Text Rendering

  • Text rendering now properly handles cultural editing concepts like complex glyphs, bi-directional text, etc.

Miscellaneous

  • The SyntaxEditor.IsDefaultContextMenuEnabled property determines if the default context menu is enabled. The default context menu is initialized and passed into the new SyntaxEditor.MenuRequested when a menu is requested for display. Handle the MenuRequested event to update the menu's items before it is opened.
  • Added the SyntaxEditor.IsWordWrapEnabled property for easy binding in menu items.
  • Language features are now implemented via services registered on syntax languages.
  • The TypeMemberDropDownList control in the .NET Languages Add-on changed to a new NavigableSymbolSelector control that can work for many languages.

.NET Languages Add-on

  • Updated the C# parser and resolver to support C# 7.3 syntax.
  • Updated the VB parser and resolver to support VB 15.8 syntax.
  • Added IntelliPrompt completion list toggle button filters for the various kinds of items displayed in the list.
  • The IntelliPrompt completion filter UI (toggle buttons and tabs) only shows based on the available items in the unfiltered list. For instance, if there are no types in the list, no 'Types' toggle button filter is visible.

Web Languages Add-on

  • Added the JavaScript language.
  • Added the JSON language.
Actipro SyntaxEditor for WinForms

Actipro SyntaxEditor for WinForms(英語版)

C#とVBのIntellisenseオプションが付いた豊富な機能の構文強調表示コードエディタコントロール。

ご質問がありますか?

今すぐ Actipro Software ライセンススペシャリストとライブ チャット