DataGridViewLinkColumn.CellTemplate プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Dim instance As DataGridViewLinkColumn Dim value As DataGridViewCell value = instance.CellTemplate instance.CellTemplate = value
public: virtual property DataGridViewCell^ CellTemplate { DataGridViewCell^ get () override; void set (DataGridViewCell^ value) override; }
/** @property */ public DataGridViewCell get_CellTemplate () /** @property */ public void set_CellTemplate (DataGridViewCell value)
public override function get CellTemplate () : DataGridViewCell public override function set CellTemplate (value : DataGridViewCell)
列に含まれる他のすべてのセルがモデルとする DataGridViewCell。既定値は DataGridViewLinkCell の新しいインスタンスです。


DataGridViewLinkColumn クラスのコンストラクタは、このプロパティを新しく作成された DataGridViewLinkCell に初期化します。
![]() |
---|
セル テンプレートのプロパティを変更しても、列の既存のセルのユーザー インターフェイス (UI) に直ちに反映されることはありません。この変更は、列が再生成されたとき (列を並べ替えたり DataGridView.InvalidateColumn メソッドを呼び出したりした場合など) に、初めて反映されます。 |

DataGridViewColumn のテンプレートとして DataGridViewCell を使用する方法のコード例を次に示します。列のセルのスタイルの変更は、その列のすべてのセルに影響します。このコード例は、DataGridViewColumn クラスのトピックで取り上げているコード例の一部分です。

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDataGridViewLinkColumn.CellTemplate プロパティを検索する場合は、下記のリンクをクリックしてください。

- DataGridViewLinkColumn.CellTemplate プロパティのページへのリンク