Deletes a module from the Data Set.
public void DeleteModule(
Leadtools.Dicom.DicomModuleType module
)
Public Sub DeleteModule( _
ByVal module As Leadtools.Dicom.DicomModuleType _
)
public void DeleteModule(
Leadtools.Dicom.DicomModuleType module
)
public void deleteModule(DicomModuleType module)
function Leadtools.Dicom.DicomDataSet.DeleteModule(
module
)
public:
void DeleteModule(
Leadtools.Dicom.DicomModuleType module
)
module
The module to be deleted.
You can remove all items from the Data Set using Reset.
This example will initialize a DICOM Dataset and then insert and delete some of its modules.
using Leadtools;
using Leadtools.Dicom;
public void DicomModuleSample()
{
//Make sure to initialize the DICOM engine, this needs to be done only once
//In the whole application
DicomEngine.Startup();
using (DicomDataSet dicomDataset = new DicomDataSet())
{
dicomDataset.Initialize(DicomClassType.DXImageStoragePresentation, DicomDataSetInitializeType.ExplicitVRLittleEndian);
dicomDataset.DeleteModule(DicomModuleType.Patient);
dicomDataset.InsertModule(DicomModuleType.Patient, false);
DicomModule module = dicomDataset.FindModule(DicomModuleType.Patient);
Debug.Assert(module != null);
bool found = false;
for (int i = 0; i < dicomDataset.ModuleCount; i++)
{
module = dicomDataset.FindModuleByIndex(i);
if (module.Type == DicomModuleType.Patient)
{
found = true;
}
}
Debug.Assert(found);
}
DicomEngine.Shutdown();
}
Imports Leadtools
Imports Leadtools.Dicom
Public Sub DicomModuleSample()
'Make sure to initialize the DICOM engine, this needs to be done only once
'In the whole application
DicomEngine.Startup()
Dim dicomDataset As DicomDataSet = New DicomDataSet()
Using (dicomDataset)
dicomDataset.Initialize(DicomClassType.DXImageStoragePresentation, DicomDataSetInitializeType.ExplicitVRLittleEndian)
dicomDataset.DeleteModule(DicomModuleType.Patient)
dicomDataset.InsertModule(DicomModuleType.Patient, False)
Dim [module] As DicomModule = dicomDataset.FindModule(DicomModuleType.Patient)
Debug.Assert(Not [module] Is Nothing)
Dim found As Boolean = False
Dim i As Integer = 0
Do While i < dicomDataset.ModuleCount
[module] = dicomDataset.FindModuleByIndex(i)
If [module].Type = DicomModuleType.Patient Then
found = True
End If
i += 1
Loop
Debug.Assert(found)
End Using
DicomEngine.Shutdown()
End Sub
using Leadtools;
using Leadtools.Dicom;
using Leadtools.Examples;
public void DicomModuleSample()
{
//Make sure to initialize the DICOM engine, this needs to be done only once
//In the whole application
DicomEngine.Startup();
using (DicomDataSet dicomDataset = new DicomDataSet())
{
dicomDataset.Initialize(DicomClassType.DXImageStoragePresentation, DicomDataSetInitializeType.ExplicitVRLittleEndian);
dicomDataset.DeleteModule(DicomModuleType.Patient);
dicomDataset.InsertModule(DicomModuleType.Patient, false);
DicomModule module = dicomDataset.FindModule(DicomModuleType.Patient);
Debug.Assert(module != null);
bool found = false;
for (int i = 0; i < dicomDataset.ModuleCount; i++)
{
module = dicomDataset.FindModuleByIndex(i);
if (module.Type == DicomModuleType.Patient)
{
found = true;
}
}
Debug.Assert(found);
}
DicomEngine.Shutdown();
}
Imports Leadtools
Imports Leadtools.Dicom
Public Sub DicomModuleSample()
'Make sure to initialize the DICOM engine, this needs to be done only once
'In the whole application
DicomEngine.Startup()
Using dicomDataset As DicomDataSet = New DicomDataSet()
dicomDataset.Initialize(DicomClassType.DXImageStoragePresentation, DicomDataSetInitializeType.ExplicitVRLittleEndian)
dicomDataset.DeleteModule(DicomModuleType.Patient)
dicomDataset.InsertModule(DicomModuleType.Patient, False)
Dim [module] As DicomModule = dicomDataset.FindModule(DicomModuleType.Patient)
Debug.Assert(Not [module] Is Nothing)
Dim found As Boolean = False
Dim i As Integer = 0
Do While i < dicomDataset.ModuleCount
[module] = dicomDataset.FindModuleByIndex(i)
If [module].Type = DicomModuleType.Patient Then
found = True
End If
i += 1
Loop
Debug.Assert(found)
End Using
DicomEngine.Shutdown()
End Sub
Products |
Support |
Feedback: DeleteModule Method - Leadtools.Dicom |
Introduction |
Help Version 19.0.2017.6.16
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.