public DicomElement FindNextPrivateElement(
DicomElement element,
DicomElement privateCreatorDataElement
)
public DicomElement findNextPrivateElement(DicomElement element, DicomElement privateCreatorDataElement)
public:
DicomElement^ FindNextPrivateElement(
DicomElement^ element,
DicomElement^ privateCreatorDataElement
)
element
A DicomElement in the data set.
privateCreatorDataElement
Private Creator Data Element
The next private element reserved by privateCreatorDataElement. If null is returned, a private element was not found.
This feature is available in version 16 or higher.
Use this method after calling FindFirstPrivateElement to find any or all the private elements reserved by privateCreatorDataElement. For more information on how Private Creator Data Elements are used to reserve private elements, see the documentation for CreatePrivateCreatorDataElement.
The search for private elements is on the same level as privateCreatorDataElement. For the argument element, pass the value returned by FindFirstPrivateElement or the value returned by FindNextPrivateElement.
using Leadtools;
using Leadtools.Dicom;
string DumpElement(DicomElement p)
{
if (p == null)
return string.Empty;
return string.Format("({0:X4},{1:X4})\n", p.Tag >> 0x10, p.Tag & 0xFFFF);
}
string DumpPrivateElements(DicomDataSet ds, DicomElement privateCreatorDataElement)
{
string sMsg = string.Empty;
DicomElement p = ds.FindFirstPrivateElement(privateCreatorDataElement);
while (p != null)
{
sMsg = sMsg + "\t" + DumpElement(p);
p = ds.FindNextPrivateElement(p, privateCreatorDataElement);
}
return sMsg;
}
void DicomDataSet_FindFirstPrivateCreatorDataElementExample(DicomDataSet ds, DicomElement root, bool tree)
{
string sMsg = string.Empty;
DicomElement pPrivateCreatorDataElement = ds.FindFirstPrivateCreatorDataElement(root, tree, null, 0);
while (pPrivateCreatorDataElement != null)
{
sMsg = sMsg + "*** Private Creator Data Element" + DumpElement(pPrivateCreatorDataElement);
sMsg = sMsg + DumpPrivateElements(ds, pPrivateCreatorDataElement);
pPrivateCreatorDataElement = ds.FindNextPrivateCreatorDataElement(pPrivateCreatorDataElement, tree, null, 0);
}
Console.WriteLine($"Private Elements: {sMsg.ToString()}");
}
CreatePrivateCreatorDataElement Method
GetNextUnusedPrivateTag Method
FindFirstPrivateCreatorDataElement Method
FindNextPrivateCreatorDataElement Method
FindFirstPrivateElement Method
FindNextPrivateElement Method
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