AccusoftImagXpress13 ActiveX DLL > ImagXpress Object : TagCount Property |
Visual Basic |
---|
Public Property TagCount As Long |
This property is read-only at run time and is not available at design time.
The TagCount property only applies when the image loaded into the control is a TIFF of EXIF file. It represents the number of data items for the current tag, not the number of tags.
For more information on querying and modifying tags, see Modify Tags.
Note: Available in Professional Edition.
Private Function GetTagCount() Dim tagCount As Integer Dim tagLevel As Integer tagLevel = 0 tagCount = 0 For tagLevel = 0 To 4 ImagXpress1.tagLevel = tagLevel ImagXpress1.TagFirst While ImagXpress1.TagNumber <> 0 tagCount = tagCount + 1 ImagXpress1.TagNext Wend Next tagLevel GetTagCount = tagCount End Function