DataGridViewLinkColumn.LinkColor プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGridViewLinkColumn.LinkColor プロパティの意味・解説 

DataGridViewLinkColumn.LinkColor プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

列のセル内の選択状態のリンクを表示するために使用する色を取得または設定します

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

Dim instance As DataGridViewLinkColumn
Dim value As Color

value = instance.LinkColor

instance.LinkColor = value
public Color LinkColor { get; set;
 }
/** @property */
public Color get_LinkColor ()

/** @property */
public void set_LinkColor (Color value)

プロパティ
リンクを最初に表示するときに使用する色を表す Color既定値は、リンクの色に対すユーザーInternet Explorer設定です。

例外例外
例外種類条件

InvalidOperationException

CellTemplate プロパティの値が null 参照 (Visual Basic では Nothing) です。

解説解説
使用例使用例

このプロパティを青に初期化するコード例次に示します

Private Sub AddLinkColumn()

    Dim links As New DataGridViewLinkColumn()
    With links
        .HeaderText = ColumnName.ReportsTo.ToString()
        .DataPropertyName = ColumnName.ReportsTo.ToString()
        .ActiveLinkColor = Color.White
        .LinkBehavior = LinkBehavior.SystemDefault
        .LinkColor = Color.Blue
        .TrackVisitedState = True
        .VisitedLinkColor = Color.YellowGreen
    End With
    DataGridView1.Columns.Add(links)
End Sub
private void AddLinkColumn()
{
    DataGridViewLinkColumn links = new DataGridViewLinkColumn();

    links.HeaderText = ColumnName.ReportsTo.ToString();
    links.DataPropertyName = ColumnName.ReportsTo.ToString();
    links.ActiveLinkColor = Color.White;
    links.LinkBehavior = LinkBehavior.SystemDefault;
    links.LinkColor = Color.Blue;
    links.TrackVisitedState = true;
    links.VisitedLinkColor = Color.YellowGreen;

    DataGridView1.Columns.Add(links);
}
private:
    void AddLinkColumn()
    {
        DataGridViewLinkColumn^ links = gcnew DataGridViewLinkColumn();

        links->HeaderText = ColumnName::ReportsTo.ToString();
        links->DataPropertyName = ColumnName::ReportsTo.ToString();
        links->ActiveLinkColor = Color::White;
        links->LinkBehavior = LinkBehavior::SystemDefault;
        links->LinkColor = Color::Blue;
        links->TrackVisitedState = true;
        links->VisitedLinkColor = Color::YellowGreen;

        DataGridView1->Columns->Add(links);
    }
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewLinkColumn クラス
DataGridViewLinkColumn メンバ
System.Windows.Forms 名前空間
DataGridView クラス
Color
DataGridViewLinkColumn.CellTemplate プロパティ
DataGridViewLinkCell クラス
DataGridViewLinkCell.LinkColor プロパティ
DataGridViewLinkColumn.ActiveLinkColor プロパティ
DataGridViewLinkColumn.LinkBehavior プロパティ
VisitedLinkColor



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

辞書ショートカット

すべての辞書の索引

「DataGridViewLinkColumn.LinkColor プロパティ」の関連用語

DataGridViewLinkColumn.LinkColor プロパティのお隣キーワード
検索ランキング

   

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



DataGridViewLinkColumn.LinkColor プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS