TX Text Control .NET for WPF

Images Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets a collection of all images the header or footer contains. The property value is an object of the type ImageCollection.

Syntax

public ImageCollection Images { get; }

Examples

The following example inserts a right-aligned company logo into the first section header.

HeaderFooterCollection headers = textControl.Sections[1].HeadersAndFooters;
headers.Add(HeaderFooterType.Header);
HeaderFooter headerFooter = headers.GetItem(HeaderFooterType.Header);
TXTextControl.Image logo = new(@"Images\company-logo.svg", 0);
headerFooter.Images.Add(logo, TXTextControl.HorizontalAlignment.Right, 1, ImageInsertionMode.AboveTheText);

Limitations

Read only.