SetTagName example for C#

//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestSetTagName()
{
   try
   {
      LEADDICOM1.EnableMethodErrors = true;

      //move to the selected Tag
      LEADDICOM1.FindIndexTag(13);

      //change the name
      LEADDICOM1.SetTagName("New Tag Name");
      return;
   }
   catch
   {
      MessageBox.Show("Error");
   }
}