- element
- A DicomElement in the data set. The search for Private Creator Data Elements will be at the same level as as this item.
- tree
- true to evaluate the Data Set as a tree; false to evaluate the Data Set as a list.
- idCode
- String identifier that is assigned to the private creator data element. If non-null, search includes only those Private Creator Data Elements that have a string value that is the same as idCode. If null, search includes Private Creator Data Elements with any string value.
- elementGroup
- Group number to search within. If elementGroup is 0, search includes Private Creator Data Elements with any group. If elementGroup is 0x0010 to 0x00FF, the search includes only those Private Creator Data Elements in elementGroup.
Visual Basic (Declaration) | |
---|---|
Public Function FindFirstPrivateCreatorDataElement( _ ByVal element As DicomElement, _ ByVal tree As Boolean, _ ByVal idCode As String, _ ByVal elementGroup As Integer _ ) As DicomElement |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public DicomElement FindFirstPrivateCreatorDataElement( DicomElement element, bool tree, string idCode, int elementGroup ) |
C++/CLI | |
---|---|
public: DicomElement^ FindFirstPrivateCreatorDataElement( DicomElement^ element, bool tree, String^ idCode, int elementGroup ) |
Parameters
- element
- A DicomElement in the data set. The search for Private Creator Data Elements will be at the same level as as this item.
- tree
- true to evaluate the Data Set as a tree; false to evaluate the Data Set as a list.
- idCode
- String identifier that is assigned to the private creator data element. If non-null, search includes only those Private Creator Data Elements that have a string value that is the same as idCode. If null, search includes Private Creator Data Elements with any string value.
- elementGroup
- Group number to search within. If elementGroup is 0, search includes Private Creator Data Elements with any group. If elementGroup is 0x0010 to 0x00FF, the search includes only those Private Creator Data Elements in elementGroup.
Return Value
The first Private Creator Data Element that matches the search constraints. If null is returned, no item exists with the specified search constraints.This example displays all the Private Creator Data Elements and corresponding private elements in a data set.
Visual Basic | Copy Code |
---|---|
Private Function DumpElement(ByVal p As DicomElement) As String |
C# | Copy Code |
---|---|
string DumpElement(DicomElement p) |
This feature is available in version 16 or higher.
Use this method along with FindNextPrivateCreatorDataElement to find any or all the Private Creator Data Elements in a DICOM data set. The search for private creator data elements is on the same level as the parameter element. If element is null, the search is at the top or first level.
If tree is true, the data set is searched as a tree. If tree is false, the data set is searched as a list. For more information on the use of this parameter, see FindFirstElement.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
Reference
DicomDataSet ClassDicomDataSet Members
Private Data Element Tags
CreatePrivateCreatorDataElement Method
GetNextUnusedPrivateTag Method
FindFirstPrivateCreatorDataElement Method
FindNextPrivateCreatorDataElement Method
FindFirstPrivateElement Method
FindNextPrivateElement Method