LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
TagFound Event
See Also 
Leadtools.Codecs Namespace > RasterCodecs Class : TagFound Event



Occurs during the TIFF tag enumerated by the EnumTags(String,Int32) method.

Syntax

Visual Basic (Declaration) 
Public Event TagFound As EventHandler(Of CodecsEnumTagsEventArgs)
Visual Basic (Usage)Copy Code
Dim instance As RasterCodecs
Dim handler As EventHandler(Of CodecsEnumTagsEventArgs)
 
AddHandler instance.TagFound, handler
C# 
public event EventHandler<CodecsEnumTagsEventArgs> TagFound
C++/CLI 
public:
event EventHandler<CodecsEnumTagsEventArgs^>^ TagFound

Event Data

The event handler receives an argument of type CodecsEnumTagsEventArgs containing data related to this event. The following CodecsEnumTagsEventArgs properties provide information specific to this event.

PropertyDescription
Cancel Gets or sets a value which allows the user to abort the enumeration process.
Count Gets the number of elements.
Id Gets the tag id.
MetadataType Gets the tagged data type.

Example

For an example, refer to EnumTags(String,Int32).

Remarks

This event will fire for each tag found in the file as a result of calling EnumTags(String,Int32).

Do not attempt to use DeleteTag(String,Int32,Int32) to delete tags from inside this event. If you want to delete tags that you enumerate, use this event to add the tags to a list. Upon returning from EnumTags(String,Int32), you can delete all the tags from the list.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also