New Classes, Properties, Methods and Events

In TX Text Control 20.0 the following new classes, properties, methods and events have been added:

Classes

Class Description
TXTextControl.DocumentServer.Fields.NextField The NextField class implements the MS Word specific NEXT field.
TXTextControl.DocumentServer.Fields.NextIfField The NextIfField class implements the MS Word specific NEXTIF field.
TXTextControl.DocumentServer.MailMerge.ImageMergedEventArgs The ImageMergedEventArgs class provides data for the ImageMerged event.
TXTextControl.HyphenateWordEventArgs The HyphenateWordEventArgs class provides data for the TextControl.HyphenateWord, ServerTextControl.HyphenateWord and WPF.TextControl.HyphenateWord events.
TXTextControl.Selection The Selection class describes and handles the attributes of a text selection.

Properties

Property Description
TXTextControl.DocumentServer.Fields.MergeField.DateTimeFormat Specifies a string format which is applied to date / time values.
TXTextControl.DocumentServer.Fields.MergeField.NumericFormat Specifies a string format which is applied to numeric values.
TXTextControl.DocumentServer.Fields.NextIfField.Expression1 Gets and sets the first expression text that should be compared.
TXTextControl.DocumentServer.Fields.NextIfField.Expression2 Gets and sets the second expression text that should be compared to Expression1.
TXTextControl.DocumentServer.Fields.NextIfField.FieldValue Gets or sets the field's value of the field that has been specified in Expression1.
TXTextControl.DocumentServer.Fields.NextIfField.Operator Gets and sets the comparison operator the field.
TXTextControl.DocumentServer.Fields.NextIfField.Result Gets the evaluation result of the two field expressions and the specified comparison operator.
TXTextControl.DocumentServer.MailMerge.ImageMergedEventArgs.ID Gets the ID of the merged image.
TXTextControl.DocumentServer.MailMerge.ImageMergedEventArgs.Image Gets or sets the merged image.
TXTextControl.DocumentServer.MailMerge.ImageMergedEventArgs.Name Gets the name of the merged image.
TXTextControl.DocumentServer.MailMerge.ReportDataSourceConfig Specifies the Report Data Source Configuration as an XML string.
TXTextControl.DocumentServer.MailMerge.ReportDataSourceConfigFile Gets or sets the file path of a Report Data Source Configuration file (*.rdsc) which has been created with TX Text Control Words.
TXTextControl.DocumentServer.MailMerge.TemplateFile Specifies the template file path.
TXTextControl.HyphenateWordEventArgs.Culture Gets the culture of the word to hyphenate.
TXTextControl.HyphenateWordEventArgs.DividePos Gets or sets the position at which the word should be divided.
TXTextControl.HyphenateWordEventArgs.MaxDividePos Gets the maximum dividing position.
TXTextControl.HyphenateWordEventArgs.Word Gets the word to hyphenate.
TXTextControl.InputFormat.LeftToRight Gets or sets a value specifying whether the writung direction is left-to-right at the current input position.
TXTextControl.InputFormat.RightToLeft Gets or sets a value specifying whether the writing direction is right-to-left at the current input position.
TXTextControl.InputPosition.CaretSize Gets the size of the caret, in pixels, at the current text input position.
TXTextControl.MisspelledWord.Culture Gets the culture of the misspelled word.
TXTextControl.ParagraphFormat.Direction Gets or sets the writing direction.
TXTextControl.ParagraphFormat.Justification Gets or sets the kind of justification in documents containing Arabic or Hebrew characters.
TXTextControl.Selection.Baseline Gets or sets the baseline alignment, in twips, of the selected text.
TXTextControl.Selection.Bold Gets or sets the bold attribute of the selected text.
TXTextControl.Selection.Culture Gets or sets the culture of the selected text.
TXTextControl.Selection.FontName Gets or sets the font of the selected text.
TXTextControl.Selection.FontSize Gets or sets the font's size, in twips, of the selected text.
TXTextControl.Selection.ForeColor Returns or sets the color used to display the selected text.
TXTextControl.Selection.Italic Gets or sets the italic attribute of the selected text.
TXTextControl.Selection.Length Returns or sets the number of characters selected.
TXTextControl.Selection.ListFormat Gets or sets a bulleted or numbered list and/or its formatting attributes for the selected text.
TXTextControl.Selection.ParagraphFormat Gets or sets the formatting attributes of the selected paragraphs.
TXTextControl.Selection.Start Gets or sets the starting point of selected text.
TXTextControl.Selection.Strikeout Gets or sets the strikeout attribute of the selected text.
TXTextControl.Selection.Text Gets or sets a string containing the currently selected text.
TXTextControl.Selection.TextBackColor Gets or sets the background color for selected text.
TXTextControl.Selection.Underline Gets or sets underlining styles for the selected text.
TXTextControl.ServerTextControl.IsHyphenationEnabled Gets or sets a value indicating whether hyphenation is active or not.
TXTextControl.SpellCheckTextEventArgs.Culture Gets the culture of the text to check.

Methods

Method Description
TXTextControl.DocumentServer.MailMerge.MergeObjects Merges a collection of type System.Collections.IEnumerable containing objects of any type or instances of type System.Collections.Generic.Dictionary with string keys into the loaded document template.
TXTextControl.Selection.ChangeDirection Changes the writing direction of all selected paragraphs.
TXTextControl.Selection.IsCommonValueSelected Informs about whether a certain attribute has the same value for the complete selection.
TXTextControl.Selection.Load Exchanges the currently selected text with text in a certain format.
TXTextControl.Selection.Save Saves the selected text of a document with the specified format.
TXTextControl.ServerTextControl.OnHyphenateWord Raises the HyphenateWord event.

Events

Event Description
TXTextControl.DocumentServer.MailMerge.ImageMerged Occurs when an image has been merged successfully.
TXTextControl.ServerTextControl.HyphenateWord Occurs, if a word does not fit on the line and must be hyphenated.