Defines an interface with properties and methods for representing Bates stamp elements.
function lt.Annotations.Documents.IAnnBatesElement
class lt.Annotations.Documents.IAnnBatesElement()
This example creates different Bates stamp elements and sets their properties.
example: function SiteLibrary_DefaultPage$example() {
//The base interface for all bates stamp elements
var baseElement = null;
//Create AnnBatesDateTime element and set its properties
var dateTimeElement = new lt.Annotations.Documents.AnnBatesDateTime();
dateTimeElement.currentDateTime = new Date();
dateTimeElement.kind = lt.Annotations.Documents.AnnDateTimeKind.local;
dateTimeElement.format = "M/d/yy";
baseElement = dateTimeElement;
//The content of this dateTimeElement
alert(baseElement.asString()); // the output will be "9/14/15"
//Create AnnBatesNumber element and set its properties
var numberElement = new lt.Annotations.Documents.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 numberElement
alert(baseElement.asString()); // the output will be "PrefixTest0005SuffixTest"
//Create AnnBatesText element
var textElement = lt.Annotations.Documents.AnnBatesText.create("This is text");
baseElement = textElement;
//print the content of this textElement
alert(baseElement.asString()); // the output will be "This is text"
},