public bool UseAllDigits { get; set; }
A value indicating whether or not to use all the number of digits specified on the NumberOfDigits property to view the AnnBatesNumber digits.
Suppose that the set the number of digits is 5 and the method AsString returns 1.
Setting this property to true represents it as 00001. Whereas setting it to false represents the numerical value as 1.
Note: Empty digits are filled with 0 when this property is true.
using Leadtools.Annotations.BatesStamp;public void IAnnBateElement_IAnnBateElement(){//The base interface for all bates stamp elementsIAnnBatesElement baseElement = null;//Create AnnBatesDateTime element and set its propertiesAnnBatesDateTime dateTimeElement = new AnnBatesDateTime();dateTimeElement.CurrentDateTime = DateTime.Now;dateTimeElement.Kind = AnnDateTimeKind.Local;dateTimeElement.Format = "M/d/yy";baseElement = dateTimeElement;//print the content of this dateTimeElementDebug.WriteLine(baseElement.AsString());//Create AnnBatesNumber element and set its propertiesAnnBatesNumber numberElement = new AnnBatesNumber();numberElement.NumberOfDigits = 4;numberElement.PrefixText = "PrefixTest";numberElement.StartNumber = 5;numberElement.SuffixText = "SuffixTest";numberElement.UseAllDigits = true;numberElement.AutoIncrement = true;baseElement = numberElement;//print the content of this numberElementDebug.WriteLine(baseElement.AsString()); // the output will be "PrefixTest0005SuffixTest"//Create AnnBatesText elementAnnBatesText textElement = AnnBatesText.Create("This is text");baseElement = textElement;//print the content of this textElementDebug.WriteLine(baseElement.AsString()); // the output will be "This is text"}