GdPicture.NET Reference Guide
ADRGetTemplateTag Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : ADRGetTemplateTag Method
An existing template ID.
Gets a TAG to an existing template.
Syntax
'Declaration
 
Public Function ADRGetTemplateTag( _
   ByVal TemplateID As Integer _
) As String
public string ADRGetTemplateTag( 
   int TemplateID
)
public function ADRGetTemplateTag( 
    TemplateID: Integer
): String; 
public function ADRGetTemplateTag( 
   TemplateID : int
) : String;
public: string* ADRGetTemplateTag( 
   int TemplateID
) 
public:
String^ ADRGetTemplateTag( 
   int TemplateID
) 

Parameters

TemplateID
An existing template ID.

Return Value

The template TAG value.
Example
Loading a template configuration file, and showing each template's name, ID, and number of images it is based on in a MessageBox.
Dim oGdPictureImaging As New GdPictureImaging
oGdPictureImaging.ADRStartNewTemplateConfig()
If oGdPictureImaging.ADRLoadTemplateConfig(ADRconfig.dat) Then
   Dim templateCount As Integer = oGdPictureImaging.ADRGetTemplateCount()
   If templateCount > 0 Then
      For i As Integer = 1 To templateCount
         Dim templateID As Integer = oGdPictureImaging.ADRGetTemplateID(i)
         Dim templateName As String = oGdPictureImaging.ADRGetTemplateTag(templateID)
         Dim imageCount As Integer = oGdPictureImaging.ADRGetTemplateImageCount(templateID)
         MessageBox.Show("Template Name: " + templateName + " TemplateID: " + templateID.ToString() +
         " Template Image Count: " + imageCount.ToString())
      Next
   Else
      MessageBox.Show("No template available!", "error", MessageBoxButtons.OK, MessageBoxIcon.Error)
   End If
Else
   MessageBox.Show("Error loading template config. Status: " + oGdPictureImaging.GetStat().ToString(), "error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members