What's New in TX Text Control 15.1
Images and text frames got a common base class in TX Text Control 15.1, with an identifier, a name and a position that code can change. The version also sets the export format of all images of a document at once and creates images from objects in memory.
Version 15.1 was released in December 2009 as TX Text Control .NET for Windows Forms 15.1 and TX Text Control Server for ASP.NET (incl. Windows Forms) 15.1, as the blog article TX Text Control 15.1 Has Been Released announced. According to the press release, it also improved the rendering quality of images. Features of the Windows Forms control, such as drag and drop, display colors, the unlimited zoom factor and the mouse wheel, aren't listed here.
Version 15.1 at a Glance
| Area | What is new |
|---|---|
| Images and text frames | The FrameBase class with an ID and a name, settable insertion mode and location, alignment of anchored frames |
| Saving images | One export format and saving mode for all images of a document |
| Inserting images | Images from System.Drawing.Image objects |
| Fonts | The fonts the formatting device supports |
Images and Text Frames
Images and text frames share the new base class FrameBase:
- Identifier and name. FrameBase.ID and FrameBase.Name identify an image or a text frame. ImageCollection.GetItem and TextFrameCollection.GetItem find one by its identifier or its name.
- Position. FrameBase.Location and the
InsertionModeof images and text frames can be set, so that code can move an object or change how it is inserted. - Alignment. FrameBase.Alignment aligns an image or a text frame that is anchored to a paragraph.
- Images from memory. A new constructor of Image takes a
System.Drawing.Imageobject, so that an image can be inserted without a file.
Images and Text Frames and Shapes show how to work with them today.
Saving Images and Fonts
- Image export for the whole document. SaveSettings.ImageSaveMode and SaveSettings.ImageExportFilterIndex save all images of a document with one saving mode and in one format. See Saving and Converting Documents.
- Supported fonts. ServerTextControl.GetSupportedFonts returns the names of all fonts that the formatting device set with
FormattingPrintersupports.
Upgrade to Version 15.1
The properties FrameBase.Location, Image.InsertionMode and TextFrame.InsertionMode were read-only before and can now be set.
New Classes, Properties, Methods and Events
The classes and members below are the ones that the What's New documentation of version 15.1 lists for TX Text Control .NET Server. Names are relative to the TXTextControl namespace, each name links to its current reference page, and "(obsolete)" marks a member that is obsolete today. The version's own list also names ImageCollection as a new class, but version 12.0 already added overloads of ImageCollection.Add for anchored images, so it isn't listed under New Classes.
New Classes
Members by Class
Next Steps
- Version 16.0: the features of the next version.
- Version 15.0: columns, PDF/A, PDF import, paragraphs and the ASP.NET DocumentViewer.
- Images: insert and position images.