SetVRName example for C#
//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestSetVRName ( )
{
try
{
int lIndex = 0;
lIndex = 13;
LEADDICOM1.EnableMethodErrors
= true;
//move to the selected VR
LEADDICOM1.FindIndexVR(lIndex);
//change the name
LEADDICOM1.SetVRName("New
VR Name");
MessageBox.Show("New Name = "
+ LEADDICOM1.get_CurrentVR().Name);
return;
}
catch
{
MessageBox.Show("Error");
}
}