Leadtools.Dicom名前空間 > DicomDataSetクラス > SetStringValuePtrメソッド :SetStringValuePtr(DicomElement、IntPtr、UInt32、DicomCharacterSetType)メソッド |
public bool SetStringValuePtr( DicomElement element, IntPtr value, uint count, DicomCharacterSetType characterSet )
'Declaration
Public Overloads Function SetStringValuePtr( _ ByVal element As DicomElement, _ ByVal value As IntPtr, _ ByVal count As UInteger, _ ByVal characterSet As DicomCharacterSetType _ ) As Boolean
'Usage
Dim instance As DicomDataSet Dim element As DicomElement Dim value As IntPtr Dim count As UInteger Dim characterSet As DicomCharacterSetType Dim value As Boolean value = instance.SetStringValuePtr(element, value, count, characterSet)
public bool SetStringValuePtr( DicomElement element, IntPtr value, uint count, DicomCharacterSetType characterSet )
function Leadtools.Dicom.DicomDataSet.SetStringValuePtr(DicomElement,IntPtr,UInt32,DicomCharacterSetType)( element , value , count , characterSet )
public: bool SetStringValuePtr( DicomElement^ element, IntPtr value, uint count, DicomCharacterSetType characterSet )
データ要素の値フィールドで1つ以上の値を設定して、すべての文字列値を値に置いて、設定したいならば、エントリの対応する数まで数えます。たとえば、データ要素の値フィールドで3文字列値を設定することを望むならば、全3つの文字列を値(3まで「0」区切り文字と設定されたカウントによって切り離される)に置きます。たとえば、下記の具体例は文字列を示します。そして、0の区切り文字で区切られる3つの文字列を格納します。
多値の間の必須の区切り文字の詳細については、「DICOMファイルフォーマットとDICOM規格の概要」を参照してください。
1つ以上の値がデータ要素の値フィールドで保存されるならば、同時にすべての値を設定しなければなりません。
データ要素の値表現が以下の通りである場合だけ、このメソッドは呼び出されることができます:
DicomDataSetクラス
DicomDataSetメンバ
オーバーロードリスト
SetValueメソッド
SetStringValue(DicomElement、String、DicomCharacterSetType)メソッド
SetStringValue(DicomElement、String[]、DicomCharacterSetType)メソッド
SetStringValue(DicomElement、String)メソッド
SetStringValue(DicomElement、String[])メソッド
SetStringValuePtr(DicomElement、IntPtr、Int32)メソッド
SetStringValuePtr(DicomElement、IntPtr、UInt32、DicomCharacterSetType)メソッド
SetBinaryValue(DicomElement、Byte[]、Int32)メソッド
SetShortValue(DicomElement、Int16[]、Int32)メソッド
SetIntValue(DicomElement、Int32[]、Int32)メソッド
SetFloatValue(DicomElement、シングル[]、Int32)メソッド
SetDoubleValue(DicomElement、Double[]、Int32)メソッド
SetAgeValueメソッド
SetDateValue(DicomElement、DicomDateValue[])メソッド
SetTimeValue(DicomElement、DicomTimeValue[])メソッド
SetDateTimeValue(DicomElement、DicomDateTimeValue[])メソッド