Udostępnij za pośrednictwem


LegendCell.CellType Właściwość

Definicja

Pobiera lub ustawia typ komórki legendy, który jest używany do definiowania zawartości komórki legendy.

public:
 virtual property System::Windows::Forms::DataVisualization::Charting::LegendCellType CellType { System::Windows::Forms::DataVisualization::Charting::LegendCellType get(); void set(System::Windows::Forms::DataVisualization::Charting::LegendCellType value); };
public virtual System.Windows.Forms.DataVisualization.Charting.LegendCellType CellType { get; set; }
member this.CellType : System.Windows.Forms.DataVisualization.Charting.LegendCellType with get, set
Public Overridable Property CellType As LegendCellType

Wartość właściwości

LegendCellType

Wartość LegendCellType wyliczenia reprezentująca typ używany do definiowania zawartości komórki legendy. Wartość domyślna to Text.

Uwagi

Właściwość CellType określa typ zawartości, która będzie wyświetlana w poszczególnych komórkach legendy. Należy określić jeden z następujących typów komórek:

  • Tekst: ciąg jest określony przy użyciu Text właściwości i będzie wyświetlany w komórce legendy.

  • SeriesSymbol: symbol serii jest definiowany przez ImageStyle właściwość w LegendItem klasie . Zostanie ona wyświetlona dla komórki legendy. Pamiętaj, że symbol serii jest wizualnym wskaźnikiem — linią, prostokątem lub znacznikiem. Gdy ImageStyle wartość jest Marker ustawiona na , wszystkie atrybuty znacznika elementu niestandardowego są stosowane do komórki.

  • Obraz: obraz jest definiowany przy użyciu Image właściwości i będzie wyświetlany w komórce legendy.

Dotyczy