TX Text Control .NET for Windows Forms

What's New in TX Text Control .NET for Windows Forms 26.0

Topic

With version 26.0, a Windows Forms TextControl records who changed a document and lets users accept or reject each change, and the new Sidebar control offers find, replace, styles and tracked changes beside the text instead of in a dialog box. Tables learned to calculate with formulas loaded from Excel workbooks or set in code, and mail merge received filters, sorting and conditions for merge blocks, with a dialog box to edit them.

Version 26.0 was released on November 14, 2018, as TX Text Control X16, together with TX Text Control .NET Server, TX Text Control .NET for WPF, TX Text Control ActiveX and TX Barcode .NET 5.0. Its last full installer, that of Service Pack 1, is dated May 31, 2019. The features below are the ones added since version 25.0.

Version 26.0 at a Glance

AreaWhat is new
Track changesTracked insertions and deletions per user, accepted or rejected in code or on the Proofing tab
User interfaceThe Sidebar control, a Track Changes ribbon group, the formula ribbon tab, key tips for all ribbon drop-down controls
Excel workbooksImport of XLSX files, the SpreadsheetML format
TablesFormulas in table cells, number formats, cell references in the ruler bars, new keyboard behavior
Mail mergeRemoval of empty lines, conditions, filters and sorting for merge blocks, the Filter and Sort dialog box

Track Changes

TextControl.IsTrackChangesEnabled switches track changes on and off. While it is on, the TextControl marks every new change; switching it off stops the marking, and changes marked before stay in the document until they are removed. See Track Changes.

The Sidebar Control

The Sidebar is a control that an application places next to the TextControl as an alternative to dialog boxes. Pinned, it is docked in the form; unpinned, it is shown as a dialog. It hosts a custom control or one of the predefined layouts that connect to a TextControl. See Sidebar and Panels.

Ribbon tabs can show and hide a horizontal and a vertical sidebar with a toggle button:

Ribbons

  • Track Changes group. The RibbonProofingTab received a group with buttons that switch tracking on and off, accept and reject changes and move to the next or the previous change.
  • Tables. The RibbonTableLayoutTab sets formulas and number formats of table cells, and the new RibbonFormulaTab is a ribbon tab for editing formulas.
  • Key tips. All drop-down controls of a ribbon, the application menu included, have key tips.
  • Form and application menu. RibbonForm.HasQuickAccessToolbar decides whether the caption of the form shows a quick access toolbar, and Ribbon.HasApplicationMenu whether the first tab of the ribbon is an application menu.

Built-in Ribbon Tabs describes the tabs of today's version.

Excel Workbooks

Besides WordprocessingML, TX Text Control reads SpreadsheetML, the part of Office Open XML that MS Excel uses for its XLSX files. Files and memory blocks in this format can be loaded, and the StreamType enumeration has a new value SpreadsheetML.

  • One worksheet. The import takes the content of the first worksheet. LoadSettings.GetDocumentPartNames and LoadSettings.DocumentPartName, new in this version, list the parts of a SpreadsheetML document and choose the one to load.
  • Limits. A formula with a reference to another worksheet or another file isn't supported.

Supported File Formats lists the formats of today's version.

Formulas and Number Formats in Tables

A formula lets a table cell calculate its content from other cells. It comes with a loaded SpreadsheetML document or is set in code, and a third tab of the table format dialog box, TextControl.TableFormatDialog, lets users set formulas and number formats. See Tables and Table Formulas and Tables and Calculations.

Keyboard Interface

Two keys behave differently since version 26.0. TAB in the last cell of a table adds a row at the end of the table. ENTER at the first input position of a document that begins with a table inserts an empty line above the table. Keyboard Shortcuts lists the keys of today's version.

Mail Merge

MailMerge creates documents from a template and data. In version 26.0, it gained settings for empty lines and for merge blocks, the parts of a template that are repeated for each record.

See Conditional Content, Sorting and Filtering and Reporting Ribbon and Dialog Boxes.

Other API Additions

  • Loading. LoadSettings is listed with properties such as LoadImages, LoadHypertextLinks, ImageSearchPath, PageSize and PageMargins; the table below names them all.
  • Saving. SaveSettings.OmittedContent is new.
  • Subtext parts. SubTextPart.Data keeps additional data with a subtext part.

Upgrade to Version 26.0

  • Update notes. No update notes were published for version 26.0.
  • Breaking changes. No change of version 26.0 is known to break existing code. Breaking Changes starts with version 30.0.

New Classes, Properties, Methods and Events

These are the classes and members that the What's New documentation of version 26.0 lists for TX Text Control .NET for Windows Forms. Names are relative to the TXTextControl namespace. Each name links to its current reference page. The list includes the members of ServerTextControl, the document processing class without a user interface that is part of this product too, and it names classes that existed before, such as LoadSettings and TableCell, as that documentation does.

New Classes

.NET Members by Class

ClassPropertiesMethodsEvents
CannotTrackChangeEventArgsCancel, DefaultMessage, Handled
DocumentServer.DataShaping.FilterInstructionColumnName, CompareTo, ComparisonOperator, LogicalOperator
DocumentServer.DataShaping.SortingInstructionOrderBy, SortOrder
DocumentServer.DataSources.MergeBlockInfoBlockMergingCondition, Filters, SortingInstructions
DocumentServer.DataSources.MergeBlockSettingsCreatedTable, TableID
DocumentServer.MailMergeRemoveEmptyLines
DocumentServer.Windows.Forms.FilterAndSortDialogFilters, SortingInstructionsStoreBlockMetaData
DocumentServer.Windows.Forms.InsertMergeBlockDialogCreatedTable
FormulaExceptionCharacterIndex
HeaderFooterTrackedChanges
IFormattedTextTrackedChanges
InputFormatNumberFormat, NumberTextType, StandardTextType
LoadSettingsAddParagraph, BytesRead, CssFileName, DocumentPartName, DocumentTitle, ImageSearchPath, LoadedFile, LoadedStreamType, LoadHypertextLinks, LoadImages, PageMargins, PageSizeGetDocumentPartNames
NumberFormatExceptionCharacterIndex
RulerBarFormulaMode
SaveSettingsOmittedContent
ServerTextControlFormulaReferenceStyle, IsFormulaCalculationEnabled, TrackedChangesOnTrackedChangeCreated, OnTrackedChangeDeletedTrackedChangeCreated, TrackedChangeDeleted
SubTextPartData
TableCellCellFormat, Column, Formula, Length, Position, Row, Start, Text, Width
TableCellFormatNumberFormat, TextType
TableCollectionCanAdd, GridLines, SupportedFormulaFunctions, SupportedNumberFormatsAdd, GetItem, Remove
TextControlFormulaReferenceStyle, IsFormulaCalculationEnabled, IsTrackChangesEnabled, TrackedChangesOnCannotTrackChange, OnMainTextActivated, OnTrackedChangeChanged, OnTrackedChangeCreated, OnTrackedChangeDeleted, OnTrackedChangeStateChangedCannotTrackChange, MainTextActivated, TrackedChangeChanged, TrackedChangeCreated, TrackedChangeDeleted, TrackedChangeStateChanged
TextFrameTrackedChanges
TrackedChangeActive, ChangeKind, ChangeTime, DefaultHighlightColor, HighlightColor, HighlightMode, Length, Number, Start, Text, UserNameSave, ScrollTo, Select
TrackedChangeCollectionCount, IsSynchronized, Item, SyncRootCopyTo, GetEnumerator, GetItem, Remove
TrackedChangeEventArgsTrackedChange
Windows.Forms.Ribbon.RibbonHasApplicationMenu
Windows.Forms.Ribbon.RibbonButtonIsScalable
Windows.Forms.Ribbon.RibbonFormHasQuickAccessToolbar
Windows.Forms.Ribbon.RibbonFormattingTabFindHorizontalSidebar, FindSidebar, GotoHorizontalSidebar, GotoSidebar, ReplaceHorizontalSidebar, ReplaceSidebar, StylesSidebar
Windows.Forms.Ribbon.RibbonFormulaTabFindItem
Windows.Forms.Ribbon.RibbonGroupKeyTip
Windows.Forms.Ribbon.RibbonProofingTabTrackedChangesHorizontalSidebar, TrackedChangesSidebar
Windows.Forms.Ribbon.RibbonTextBoxIsScalable, SelectedText, SelectionLength, SelectionStart
Windows.Forms.SidebarContent, ContentLayout, DialogLocation, DialogSize, DialogStyle, IsPinned, IsShown, IsSizable, ShowCloseButton, ShowPinButton, ShowTitle, Text, TextControl, TitleFont, TitleForeColorFindItem

Next Steps