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



Occurs once for each GeoKey enumerated by the EnumGeoKeys(String,Int32) method.

Syntax

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

Event Data

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

PropertyDescription
Buffer Gets a pointer to the unmanaged memory containing the GeoKey data.
Cancel Gets or sets a value which allows the user to abort the enumeration process.
Count Gets the number of items in Buffer.
Id Gets the GeoKey ID identifying the GeoTIFF key.
MetadataType Gets the type of GeoKey.

Example

Remarks

This event will fire for each GeoKey found in the file as a result of calling EnumGeoKeys(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 EnumGeoKeys(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