TX Text Control .NET Server

Images Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

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.