LegendCellColumn 类
定义
表示图例中的单元列,用于扩展默认图例的功能。Represents a cell column in a legend, which is used to extend the functionality of the default legend.
public ref class LegendCellColumn : System::Windows::Forms::DataVisualization::Charting::ChartNamedElement
public class LegendCellColumn : System.Windows.Forms.DataVisualization.Charting.ChartNamedElement
type LegendCellColumn = class
inherit ChartNamedElement
Public Class LegendCellColumn
Inherits ChartNamedElement
- 继承
注解
可以按任意顺序放置任意数量的单元列,这使您能够灵活地扩展默认图例项的功能。Any number of cell columns can be placed in any order, which gives you the flexibility to extend the abilities of the default legend entries.
图例单元列仅适用于从序列或数据点自动生成的项。The legend cell columns are only applicable to items that are automatically generated from series or data points.
构造函数
| LegendCellColumn() |
初始化 LegendCellColumn 类的新实例。Initializes a new instance of the LegendCellColumn class. |
| LegendCellColumn(String, LegendCellColumnType, String) |
使用指定的标题文本、列类型和列单元文本初始化 LegendCellColumn 类的新实例。Initializes a new instance of the LegendCellColumn class with the specified header text, column type and column cell text. |
| LegendCellColumn(String, LegendCellColumnType, String, ContentAlignment) |
使用指定的标题文本、列类型、列单元文本和内容对齐方式初始化 LegendCellColumn 类的新实例。Initializes a new instance of the LegendCellColumn class with the specified header text, column type, column cell text and content alignment. |
属性
| Alignment |
获取或设置图例列内容的对齐方式。Gets or sets the legend column content alignment. |
| BackColor |
获取或设置图例单元列的背景色。Gets or sets the background color of the legend cell column. |
| ColumnType |
获取或设置图例单元列的类型。Gets or sets the legend cell column type. |
| Font |
获取或设置图例列文本的字体。Gets or sets the font for the legend column text. |
| ForeColor |
获取或设置图例单元列的文本颜色。Gets or sets the text color of the legend cell column. |
| HeaderAlignment |
获取或设置图例单元列标题的水平文本对齐方式。Gets or sets the horizontal text alignment of the legend cell column header. |
| HeaderBackColor |
获取或设置图例单元列标题的背景色。Gets or sets the background color for the legend cell column header. |
| HeaderFont |
获取或设置用于图例列标题的字体。Gets or sets the font used in the legend column header. |
| HeaderForeColor |
获取或设置图例列标题文本的颜色(HeaderText 属性)。Gets or sets the color of the legend column header text (HeaderText property). |
| HeaderText |
获取或设置图例单元列标题的文本。Gets or sets the text for the legend cell column header. |
| Legend |
获取此图例单元列所属的图例。Gets the legend in which this legend cell column belongs. |
| Margins |
获取或设置图例单元列的边距。Gets or sets the margins of the legend cell column. |
| MaximumWidth |
获取或设置图例单元列的最大宽度。Gets or sets the maximum width of the legend cell column. |
| MinimumWidth |
获取或设置图例单元列的最小宽度。Gets or sets the minimum width of the legend cell column. |
| Name |
获取或设置图例单元列的名称。Gets or sets the name of the legend cell column. |
| SeriesSymbolSize |
获取或设置图例单元列中显示的序列符号的大小。Gets or sets the size of the series symbol displayed in a legend cell column. |
| Tag |
获取或设置与此图表元素关联的对象。Gets or sets an object associated with this chart element. (继承自 ChartElement) |
| Text |
获取或设置图例单元列的文本。Gets or sets the text of the legend cell column. |
| ToolTip |
获取或设置图例单元列的工具提示文本。Gets or sets the tooltip text for the legend cell column. |
方法
| Dispose() |
释放由 ChartElement 占用的资源。Releases the resources used by the ChartElement. (继承自 ChartElement) |
| Dispose(Boolean) |
释放由 LegendCellColumn 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources used by the LegendCellColumn and optionally releases the managed resources. |
| Equals(Object) |
确定指定的 Object 是否等于当前 ChartElement。Determines whether the specified Object is equal to the current ChartElement. (继承自 ChartElement) |
| GetHashCode() |
返回特定类型的哈希算法。Returns a hash function for a particular type. (继承自 ChartElement) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ShouldSerializeMargins() |
确定是否应序列化属性。Determines whether the property should be serialized. |
| ToString() |
返回表示当前 Object 的字符串。Returns a string that represents the current Object. (继承自 ChartElement) |