DeleteVR Example for C#

//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestDeleteVR()
{
   try
   {
      short nCode = 0;
      int lIndex = 0;
      LEADDICOM1.EnableMethodErrors = true;
      nCode = 18771;
      //move to the selected VR
      LEADDICOM1.FindVR(nCode);
      //delete it
      LEADDICOM1.DeleteVR();
      return;
   }
   catch
   {
      MessageBox.Show("Error");
   }
}