←Select platform

Kind Property

Summary
Gets or sets the representation to use for the current date and time.
Syntax
C#
C++/CLI
Java
Python
public AnnDateTimeKind Kind { get; set; } 
public AnnDateTimeKind getKind() 
public void setKind(AnnDateTimeKind kind) 
public:  
   property AnnDateTimeKind^ Kind 
   { 
      AnnDateTimeKind^ get() 
      void set(AnnDateTimeKind^ value) 
   } 
Kind # get and set (AnnBatesDateTime) 

Property Value

A value indicating the representation to use for the current date time.

Remarks

This will be used when calling AsString method to get current date and time on a specified date and time kind.

Example
C#
using Leadtools.Annotations.BatesStamp; 
 
 
public void IAnnBateElement_IAnnBateElement() 
{ 
	//The base interface for all bates stamp elements 
	IAnnBatesElement baseElement = null; 
 
	//Create AnnBatesDateTime element and set its properties 
	AnnBatesDateTime dateTimeElement = new AnnBatesDateTime(); 
	dateTimeElement.CurrentDateTime = DateTime.Now; 
	dateTimeElement.Kind = AnnDateTimeKind.Local; 
	dateTimeElement.Format = "M/d/yy"; 
 
	baseElement = dateTimeElement; 
	//print the content of this dateTimeElement 
	Debug.WriteLine(baseElement.AsString()); 
 
	//Create AnnBatesNumber element and set its properties 
	AnnBatesNumber 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 numberElement 
	Debug.WriteLine(baseElement.AsString()); //  the output will be "PrefixTest0005SuffixTest" 
 
 
	//Create AnnBatesText element 
	AnnBatesText textElement = AnnBatesText.Create("This is text"); 
 
	baseElement = textElement; 
	//print the content of this textElement 
	Debug.WriteLine(baseElement.AsString()); //  the output will be "This is text" 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.BatesStamp Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.