ID Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property ID As IntegerExamples
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}");Dim callout As New TextFrame(New System.Drawing.Size(3000, 1200)) With { .Name = "Callout" }
textControl.TextFrames.Add(callout, TextFrameInsertionMode.DisplaceText)
Dim frameBase As FrameBase = callout
frameBase.ID = 100
Console.WriteLine($"ID used by Frame Base: {frameBase.ID}")