Defines an interface with properties and methods for representing Bates stamp elements.
public interface IAnnBatesElementPublic Interface IAnnBatesElementpublic interface IAnnBatesElementfunction Leadtools.Annotations.Documents.IAnnBatesElement()This example creates different Bates stamp elements and sets their properties.
Imports Leadtools.Annotations.CoreImports Leadtools.Annotations.Documents<TestMethod()> _Public Sub IAnnBateElement_IAnnBateElement()'The base interface for all Bates stamp elementsDim baseElement As IAnnBatesElement = Nothing'Create AnnBatesDateTime element and set its propertiesDim dateTimeElement As AnnBatesDateTime = New AnnBatesDateTime()dateTimeElement.CurrentDateTime = DateTime.NowdateTimeElement.Kind = AnnDateTimeKind.LocaldateTimeElement.Format = "M/d/yy"baseElement = dateTimeElement'print the content of this dateTimeElementDebug.WriteLine(baseElement.AsString()) ' the output will be "9/14/15"'Create AnnBatesNumber element and set its propertiesDim numberElement As AnnBatesNumber = New AnnBatesNumber()numberElement.NumberOfDigits = 4numberElement.PrefixText = "PrefixTest"numberElement.StartNumber = 5numberElement.SuffixText = "SuffixTest"numberElement.UseAllDigits = TruenumberElement.AutoIncrement = TruebaseElement = numberElement'print the content of this numberElementDebug.WriteLine(baseElement.AsString()) ' the output will be "PrefixTest0005SuffixTest"'Create AnnBatesText elementDim textElement As AnnBatesText = AnnBatesText.Create("This is text")baseElement = textElement'print the content of this textElementDebug.WriteLine(baseElement.AsString()) ' the output will be "This is text"End Sub
using Leadtools.Annotations.Core;using Leadtools.Annotations.Documents;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()); // the output will be "9/14/15"//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"}
|
Products |
Support |
Feedback: IAnnBatesElement Interface - Leadtools.Annotations.Documents |
Introduction |
Help Version 19.0.2017.3.22
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.