Images Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public ReadOnly Property Images As ImageCollectionExamples
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);Dim headers As HeaderFooterCollection = textControl.Sections(1).HeadersAndFooters
headers.Add(HeaderFooterType.Header)
Dim headerFooter As HeaderFooter = headers.GetItem(HeaderFooterType.Header)
Dim logo As New TXTextControl.Image("Images\company-logo.svg", 0)
headerFooter.Images.Add(logo, TXTextControl.HorizontalAlignment.Right, 1, ImageInsertionMode.AboveTheText)Limitations
Read only.