public void DeleteModule(DicomModuleType module)
Public Sub DeleteModule( _ByVal module As DicomModuleType _)
public void deleteModule(DicomModuleType module) public:void DeleteModule(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 applicationDicomEngine.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 LeadtoolsImports Leadtools.DicomPublic Sub DicomModuleSample()'Make sure to initialize the DICOM engine, this needs to be done only once'In the whole applicationDicomEngine.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 = FalseDim i As Integer = 0Do While i < dicomDataset.ModuleCount[module] = dicomDataset.FindModuleByIndex(i)If [module].Type = DicomModuleType.Patient Thenfound = TrueEnd Ifi += 1LoopDebug.Assert(found)End UsingDicomEngine.Shutdown()End Sub
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
