TX Text Control .NET for Windows Forms

ID Property

Property|Introduced in 15.1
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets an identifier for the frame. It must be a one-based value. A value of zero indicates that the image, text frame, chart, barcode or drawing has no identifier. Zero can also be used to delete a previously set identifier.

Syntax

public int ID { get; set; }

Examples

The following example adds a callout frame and works with it through the common frame API by using FrameBase.ID.

TextFrame callout = new(new System.Drawing.Size(3000, 1200)) { Name = "Callout" };
textControl.TextFrames.Add(callout, TextFrameInsertionMode.DisplaceText);
FrameBase frameBase = callout;

frameBase.ID = 100;
Console.WriteLine($"ID used by Frame Base: {frameBase.ID}");