LEADTOOLS Medical (Leadtools.Dicom assembly)
LEAD Technologies, Inc

SetStringValue(DicomElement,String,DicomCharacterSetType) Method








An item in the Data Set.
Character string that contains the string value to set.
Character set to use when inserting the input string.
Sets the string value(s) of a Data Element. .NET support WinRT support Silverlight support
Syntax
public bool SetStringValue( 
   DicomElement element,
   string value,
   DicomCharacterSetType characterSet
)
'Declaration
 
Public Overloads Function SetStringValue( _
   ByVal element As DicomElement, _
   ByVal value As String, _
   ByVal characterSet As DicomCharacterSetType _
) As Boolean
'Usage
 
Dim instance As DicomDataSet
Dim element As DicomElement
Dim value As String
Dim characterSet As DicomCharacterSetType
Dim value As Boolean
 
value = instance.SetStringValue(element, value, characterSet)
public bool SetStringValue( 
   DicomElement element,
   string value,
   DicomCharacterSetType characterSet
)
ObjectiveC Syntax
 function Leadtools.Dicom.DicomDataSet.SetStringValue(DicomElement,String,DicomCharacterSetType)( 
   element ,
   value ,
   characterSet 
)
public:
bool SetStringValue( 
   DicomElement^ element,
   String^ value,
   DicomCharacterSetType characterSet
) 

Parameters

element
An item in the Data Set.
value
Character string that contains the string value to set.
characterSet
Character set to use when inserting the input string.

Return Value

true if the string value(s) were set successfully. false if could not set the string value(s) of the Data Element.
Remarks
This method can be called only if the Value Representation of the Data Element is: For more information about Value Representations, refer to Default Value Representation Table.
Example
For an example, refer to SetIntValue(DicomElement,IntPtr,Int32).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DicomDataSet Class
DicomDataSet Members
Overload List
SetValue Method
SetStringValue(DicomElement,String[],DicomCharacterSetType) Method
SetStringValuePtr(DicomElement,IntPtr,Int32,DicomCharacterSetType) Method
SetBinaryValue(DicomElement,Byte[],Int32) Method
SetShortValue(DicomElement,Int16[],Int32) Method
SetIntValue(DicomElement,Int32[],Int32) Method
SetFloatValue(DicomElement,Single[],Int32) Method
SetDoubleValue(DicomElement,Double[],Int32) Method
SetAgeValue Method
SetDateValue(DicomElement,DicomDateValue[]) Method
SetTimeValue(DicomElement,DicomTimeValue[]) Method
SetDateTimeValue(DicomElement,DicomDateTimeValue[]) Method

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features