Legend.LegendStyle プロパティ

定義

凡例のスタイルを取得または設定します。

public:
 property System::Windows::Forms::DataVisualization::Charting::LegendStyle LegendStyle { System::Windows::Forms::DataVisualization::Charting::LegendStyle get(); void set(System::Windows::Forms::DataVisualization::Charting::LegendStyle value); };
[System.ComponentModel.Bindable(true)]
public System.Windows.Forms.DataVisualization.Charting.LegendStyle LegendStyle { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.LegendStyle : System.Windows.Forms.DataVisualization.Charting.LegendStyle with get, set
Public Property LegendStyle As LegendStyle

プロパティ値

凡例のスタイルを決定する LegendStyle 列挙値。 既定値は Table です。

属性

注釈

既定では、凡例はテーブル内の一連の項目として表示されます。 プロパティを設定 TableStyle することで、テーブルの項目を幅を広げるか高さ方向に展開するかを指定できます。 プロパティが TableStyleAuto設定されている場合、コントロールは、グラフの Chart 配置と位置に応じて、幅の広いテーブルまたは高いテーブルを描画するかどうかを決定します。 これにより、複数の凡例項目列を使用して凡例が描画される場合があります。

凡例には、列、行、およびテーブルの 3 つのスタイルがあります。 これらのスタイルの概要については、次の表を参照してください。

Style 説明
凡例項目は、複数の行を含む 1 つの列に表示されます。 凡例がグラフの左または右にドッキングされている場合に最もよく使用されます。
凡例項目は、複数の列を含む 1 つの行に表示されます。 凡例がグラフの上部または下部にドッキングされている場合に最もよく使用されます。
テーブル 凡例項目は、複数の列と行を使用して表示されます。

適用対象