DataGridViewColumnHeaderCell.GetClipboardContent メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGridViewColumnHeaderCell.GetClipboardContent メソッドの意味・解説 

DataGridViewColumnHeaderCell.GetClipboardContent メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

Clipboardコピーするセル書式指定済みの値を取得します

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

Protected Overrides Function
 GetClipboardContent ( _
    rowIndex As Integer, _
    firstCell As Boolean, _
    lastCell As Boolean, _
    inFirstRow As Boolean, _
    inLastRow As Boolean, _
    format As String _
) As Object
Dim rowIndex As Integer
Dim firstCell As Boolean
Dim lastCell As Boolean
Dim inFirstRow As Boolean
Dim inLastRow As Boolean
Dim format As String
Dim returnValue As Object

returnValue = Me.GetClipboardContent(rowIndex, firstCell, lastCell,
 inFirstRow, inLastRow, format)
protected override Object GetClipboardContent (
    int rowIndex,
    bool firstCell,
    bool lastCell,
    bool inFirstRow,
    bool inLastRow,
    string format
)
protected:
virtual Object^ GetClipboardContent (
    int rowIndex, 
    bool firstCell, 
    bool lastCell, 
    bool inFirstRow, 
    bool inLastRow, 
    String^ format
) override
protected Object GetClipboardContent (
    int rowIndex, 
    boolean firstCell, 
    boolean lastCell, 
    boolean inFirstRow, 
    boolean inLastRow, 
    String format
)
protected override function GetClipboardContent
 (
    rowIndex : int, 
    firstCell : boolean, 
    lastCell : boolean, 
    inFirstRow : boolean, 
    inLastRow : boolean, 
    format : String
) : Object

パラメータ

rowIndex

セルを含む行の、0 から始まるインデックス番号

firstCell

選択したセルによって定義される領域最初の列にセルがある場合trueそれ以外場合false

lastCell

選択したセルによって定義される領域最後の列にセルがある場合trueそれ以外場合false

inFirstRow

選択したセルによって定義される領域最初の行にセルがある場合trueそれ以外場合false

inLastRow

選択したセルによって定義される領域最後の行にセルがある場合trueそれ以外場合false

format

セル現在の書式指定文字列

戻り値
Clipboardコピーするセルの値を表す Object

例外例外
例外種類条件

ArgumentOutOfRangeException

rowIndex が -1 ではありません。

解説解説

DataGridView の ClipboardCopyMode プロパティの値によっては、このメソッドコントロールの GetClipboardContent メソッドによって呼び出されセルを表すクリップボード形式の値が取得されます。

このメソッド位置関連するパラメータは、DataGridView コントロール内で選択されセルによって定義される領域を表すデータ テーブルにおいて、このセルどの位置にあるのかを示しますセル位置によっては、このメソッドによってセルの値の他に書式指定情報返される場合あります。たとえば、行の最初の列にあるセルHTML 形式には、行の始まりを示すタグ含まれています。

サポートされているクリップボード形式は、DataFormats.Text、DataFormats.UnicodeText、DataFormats.Html、および DataFormats.CommaSeparatedValue です。

詳細については、Clipboard クラストピック参照してください

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewColumnHeaderCell クラス
DataGridViewColumnHeaderCell メンバ
System.Windows.Forms 名前空間
DataGridView クラス
DataFormats クラス
DataGridView.ClipboardCopyMode プロパティ
DataGridViewClipboardCopyMode 列挙



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

辞書ショートカット

すべての辞書の索引

DataGridViewColumnHeaderCell.GetClipboardContent メソッドのお隣キーワード
検索ランキング

   

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



DataGridViewColumnHeaderCell.GetClipboardContent メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS