IAnnBatesElement Interface

Summary

Defines an interface with properties and methods for representing Bates stamp elements.

Syntax

JavaScript Syntax
function lt.Annotations.Documents.IAnnBatesElement 
TypeScript Syntax
class lt.Annotations.Documents.IAnnBatesElement() 

Example

This example creates different Bates stamp elements and sets their properties.

JavaScript Example
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" 
}, 

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Documents Assembly