DataFormats.Dif フィールドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataFormats.Dif フィールドの意味・解説 

DataFormats.Dif フィールド

Windows DIF (Data Interchange Format) を指定しますWindows フォームでは、この形式直接使用されることはありません。static フィールド読み取り専用です。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

解説解説

DIFASCII コード記述されデータベーススプレッドシートのようなドキュメント複数プログラム使用した交換したりできるように構成されているフォーマットです。

このフィールドは、データ型指定するために、IDataObject インターフェイスと DataObject クラス使用されます。

IDataObject または DataObject実装追加する場合は、IDataObject.SetData メソッドと DataObject.SetData メソッド形式として、このフィールド使用します

この型のオブジェクト存在するかどうか確認するには、IDataObject.GetDataPresent メソッドと DataObject.GetDataPresent メソッド形式として、このフィールド使用します

この型のオブジェクト取得するには、IDataObject.GetData メソッドと DataObject.GetData メソッド形式として、このフィールド使用します

使用例使用例
Dim myFileStream As FileStream = File.Open("Temp.dif",
 FileMode.Open)
' Store the data into Dif format.
Dim myDataObject As New
 DataObject()
myDataObject.SetData(DataFormats.Dif, myFileStream)

' Check whether the data is stored or not in the specified format.
Dim formatPresent As Boolean
 = myDataObject.GetDataPresent(DataFormats.Dif)
If formatPresent Then
   Console.WriteLine(("The data has been stored in the Dif
 format is:'" + formatPresent.ToString() +
 "'"))
Else
   Console.WriteLine("The data has not been stored in the specified
 format")
End If
 FileStream myFileStream = File.Open("Temp.dif",FileMode.Open);
 // Store the data into Dif format.
 DataObject myDataObject = new DataObject();
 myDataObject.SetData(DataFormats.Dif,myFileStream);

// Check whether the data is stored or not in the specified format.
bool formatPresent = myDataObject.GetDataPresent(DataFormats.Dif);
 if(formatPresent) 
 {
    Console.WriteLine("The data has been stored in the Dif
 format is:'"+formatPresent+"'");
 } 
 else 
 {
    Console.WriteLine("The data has not been stored in the
 specified format");
 }
FileStream^ myFileStream = File::Open( "Temp.dif", FileMode::Open );

// Store the data into Dif format.
DataObject^ myDataObject = gcnew DataObject;
myDataObject->SetData( DataFormats::Dif, myFileStream );

// Check whether the data is stored or not in the specified format.
bool formatPresent = myDataObject->GetDataPresent( DataFormats::Dif
 );
if ( formatPresent )
{
   Console::WriteLine( "The data has been stored in the Dif
 format is:'{0}'", formatPresent );
}
else
{
   Console::WriteLine( "The data has not been stored in the
 specified format" );
}
FileStream myFileStream = File.Open("Temp.dif", FileMode.Open);

// Store the data into Dif format.
DataObject myDataObject = new DataObject();
myDataObject.SetData(DataFormats.Dif, myFileStream);

// Check whether the data is stored or not in the specified format.
boolean formatPresent = myDataObject.GetDataPresent(DataFormats.Dif);
if (formatPresent) {
    Console.WriteLine(
        "The data has been stored in the Dif format is:'"
 
        + System.Convert.ToString(formatPresent) + "'");
}
else {
    Console.WriteLine("The data has not been stored in the
 "
        + "specified format");
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataFormats クラス
DataFormats メンバ
System.Windows.Forms 名前空間
GetData
SetData
GetDataPresent
GetFormats
DataObject
IDataObject
GetFormat
DataFormats.Format.Name
DataFormats.Format.Id


このページでは「.NET Framework クラス ライブラリ リファレンス」からDataFormats.Dif フィールドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDataFormats.Dif フィールドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDataFormats.Dif フィールド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

DataFormats.Dif フィールドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DataFormats.Dif フィールドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS