Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
IptcSeparator Field
See Also  Example
Leadtools Namespace > RasterCommentMetadata Class : IptcSeparator Field



The separator when a file has two or more IPTC comments.

Syntax

Visual Basic (Declaration) 
Public Shared ReadOnly IptcSeparator As Integer
Visual Basic (Usage)Copy Code
Dim value As Integer
 
value = RasterCommentMetadata.IptcSeparator
C# 
public static readonly int IptcSeparator
C++/CLI 
public:
static readonly int IptcSeparator

Example

Visual BasicCopy Code
Public Sub CommentsSizeAndTypeExample()
 Console.WriteLine("IptcSeparator : {0}", RasterCommentMetadata.IptcSeparator)

 Console.WriteLine("Data type sizes:")
 Console.WriteLine("------------------")
 Dim dataTypes As Array = System.Enum.GetValues(GetType(RasterCommentMetadataDataType))
 For Each dataType As RasterCommentMetadataDataType In dataTypes
    Dim size As Integer = RasterCommentMetadata.GetDataTypeSize(dataType)
    Console.WriteLine("{0}: {1} bytes", dataType, size)
 Next dataType

 Console.WriteLine("Comment data types:")
 Console.WriteLine("------------------")
 Dim types As Array = System.Enum.GetValues(GetType(RasterCommentMetadataType))
 For Each type As RasterCommentMetadataType In types
    Dim dataType As RasterCommentMetadataDataType = RasterCommentMetadata.GetDataType(type)
    Console.WriteLine("{0}: {1}", type, dataType)
 Next type
      End Sub
C#Copy Code
public void CommentsSizeAndTypeExample() 

   Console.WriteLine("IptcSeparator : {0}", RasterCommentMetadata.IptcSeparator); 
 
   Console.WriteLine("Data type sizes:"); 
   Console.WriteLine("------------------"); 
   Array dataTypes = Enum.GetValues(typeof(RasterCommentMetadataDataType)); 
   foreach(RasterCommentMetadataDataType dataType in dataTypes) 
   { 
      int size = RasterCommentMetadata.GetDataTypeSize(dataType); 
      Console.WriteLine("{0}: {1} bytes", dataType, size); 
   } 
 
   Console.WriteLine("Comment data types:"); 
   Console.WriteLine("------------------"); 
   Array types = Enum.GetValues(typeof(RasterCommentMetadataType)); 
   foreach(RasterCommentMetadataType type in types) 
   { 
      RasterCommentMetadataDataType dataType = RasterCommentMetadata.GetDataType(type); 
      Console.WriteLine("{0}: {1}", type, dataType); 
   } 
}

Remarks

IptcSeparator has an Ascii code of 1 and cannot appear in any comment, so there is not a possibility of confusion about this character is the separator or part of the comment. Do not confuse this with the character '1', whose Ascii code is 49!

For more information, refer to IPTC Comments.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also