Error processing SSI file
(Leadtools.Annotations.Documents)

IAnnBatesElement Interface

Show in webframe
Example 
Members 
Defines an interface with properties and methods for representing Bates stamp elements.
Syntax
function Leadtools.Annotations.Documents.IAnnBatesElement() 
Example

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"
},
See Also

Reference

IAnnBatesElement Members
Leadtools.Annotations.Documents Namespace

Error processing SSI file