DataPointCustomProperties 类

定义

定义数据点、序列和空点所共有的自定义属性。Defines custom properties that are common to data points, series and empty points.

public ref class DataPointCustomProperties : System::Windows::Forms::DataVisualization::Charting::ChartNamedElement
[System.ComponentModel.TypeConverter("System.Windows.Forms.Design.DataVisualization.Charting.DataPointCustomPropertiesConverter, System.Windows.Forms.DataVisualization.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
public class DataPointCustomProperties : System.Windows.Forms.DataVisualization.Charting.ChartNamedElement
[<System.ComponentModel.TypeConverter("System.Windows.Forms.Design.DataVisualization.Charting.DataPointCustomPropertiesConverter, System.Windows.Forms.DataVisualization.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")>]
type DataPointCustomProperties = class
    inherit ChartNamedElement
Public Class DataPointCustomProperties
Inherits ChartNamedElement
继承
DataPointCustomProperties
派生
属性

注解

此类定义自定义属性,如颜色、背景图像和阴影等的使用。This class defines custom properties such as colors, the use of background images, hatching, and so forth.

Series类、 DataPoint 类和 EmptyPointStyle 属性都是从此类派生的。The Series class, DataPoint class and the EmptyPointStyle property are all derived from this class.

构造函数

DataPointCustomProperties()

初始化 DataPointCustomProperties 类的新实例。Initializes a new instance of the DataPointCustomProperties class.

DataPointCustomProperties(Series, Boolean)

使用指定的序列和自定义属性标志初始化 DataPointCustomProperties 类的新实例。Initializes a new instance of the DataPointCustomProperties class with the specified series and custom properties flag.

属性

AxisLabel

获取或设置数据点、序列或空点的 X 轴标签的文本。Gets or sets the text of the X-axis label for the data point, series or an empty point. 仅当尚未指定相关 Axis 对象的自定义标签时,才使用此属性。This property is only used if a custom label has not been specified for the relevant Axis object.

BackGradientStyle

获取或设置背景渐变样式。Gets or sets the background gradient style.

BackHatchStyle

获取或设置背景阴影样式。Gets or sets the background hatching style.

BackImage

获取或设置数据点的背景图像。Gets or sets the background image of the data point.

BackImageAlignment

获取或设置用于 Unscaled 绘制模式的背景图像对齐方式。Gets or sets the alignment of the background image, which is used with the Unscaled drawing mode.

BackImageTransparentColor

获取或设置在绘制背景图像时,将替换为透明色的颜色。Gets or sets a color that will be replaced with a transparent color when the background image is drawn.

BackImageWrapMode

获取或设置背景图像的绘制模式。Gets or sets the drawing mode of the background image.

BackSecondaryColor

获取或设置辅助背景色。Gets or sets the secondary background color.

BorderColor

获取或设置数据点的边框颜色。Gets or sets the border color of the data point.

BorderDashStyle

获取或设置数据点的边框样式。Gets or sets the border style of the data point.

BorderWidth

获取或设置数据点的边框宽度。Gets or sets the border width of the data point.

Color

获取或设置数据点的颜色。Gets or sets the color of the data point.

CustomProperties

获取或设置数据点的自定义属性。Gets or sets the custom properties of the data point. 可以按照以下格式指定自定义属性:AttrName1=Value1、AttrName2=Value2 …Custom properties can be specified in the following format: AttrName1=Value1, AttrName2=Value2 ...

CustomPropertiesExtended

获取或设置数据点的扩展的自定义属性。Gets or sets the extended custom properties of the data point. 可按以下格式指定扩展的自定义属性:特性名1=值1, 特性名2=值2...Extended custom properties can be specified in the following format: AttrName1=Value1, AttrName2=Value2...

Font

获取或设置数据点的字体。Gets or sets the font of the data point.

IsValueShownAsLabel

获取或设置一个标志,该标志指示是否在标签上显示数据点的值。Gets or sets a flag that indicates whether to show the value of the data point on the label.

IsVisibleInLegend

获取或设置一个标志,该标志指示是否在图例中显示项。Gets or sets a flag that indicates whether the item is shown in the legend.

Item[Int32]

DataPointCustomProperties 对象在索引中的位置获取该对象。Gets the DataPointCustomProperties object by its position in the index.

Item[String]

按名称获取或设置 DataPointCustomProperties 对象。Gets or sets the DataPointCustomProperties object by name.

Label

获取或设置数据点标签的文本。Gets or sets the text of the data point label.

LabelAngle

获取或设置数据点标签的角度。Gets or sets the angle of the data point label.

LabelBackColor

获取或设置数据点标签的背景色。Gets or sets the background color of the data point label.

LabelBorderColor

获取或设置数据点标签的边框颜色。Gets or sets the border color of the data point label.

LabelBorderDashStyle

获取或设置标签的边框样式。Gets or sets the border style of the label.

LabelBorderWidth

获取或设置标签的边框宽度。Gets or sets the border width of the label.

LabelForeColor

获取或设置标签的文本颜色。Gets or sets the text color of the label.

LabelFormat

获取或设置数据点标签的格式。Gets or sets the format of the data point label.

LabelToolTip

获取或设置数据点标签的工具提示。Gets or sets the tooltip for the data point label.

LegendText

获取或设置图例中项的文本。Gets or sets the text of the item in the legend.

LegendToolTip

获取或设置图例中项的工具提示。Gets or sets the tooltip of the item in the legend.

MarkerBorderColor

获取或设置标记的边框颜色。Gets or sets the border color of the marker.

MarkerBorderWidth

获取或设置标记的边框宽度。Gets or sets the border width of the marker.

MarkerColor

获取或设置标记颜色。Gets or sets the marker color.

MarkerImage

获取或设置标记图像。Gets or sets the marker image.

MarkerImageTransparentColor

获取或设置在绘制标记图像时,将替换为透明色的颜色。Gets or sets the color that will be replaced with a transparent color when the marker image is drawn.

MarkerSize

获取或设置标记的大小。Gets or sets the size of the marker.

MarkerStyle

获取或设置标记样式。Gets or sets the marker style.

Name

获取或设置图表元素的名称。Gets or sets the name of the chart element.

(继承自 ChartNamedElement)
Tag

获取或设置与此图表元素关联的对象。Gets or sets an object associated with this chart element.

(继承自 ChartElement)
ToolTip

获取或设置工具提示。Gets or sets the tooltip.

方法

DeleteCustomProperty(String)

删除具有指定名称的数据点自定义属性。Deletes the data point custom property with the specified name.

Dispose()

释放由 ChartElement 占用的资源。Releases the resources used by the ChartElement.

(继承自 ChartElement)
Dispose(Boolean)

释放由 ChartElement 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources used by the ChartElement and optionally releases the managed resources.

(继承自 ChartElement)
Equals(Object)

确定指定的 Object 是否等于当前 ChartElementDetermines whether the specified Object is equal to the current ChartElement.

(继承自 ChartElement)
GetCustomProperty(String)

返回具有指定名称的数据点自定义属性。Returns the data point custom property with the specified name.

GetHashCode()

返回特定类型的哈希算法。Returns a hash function for a particular type.

(继承自 ChartElement)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
IsCustomPropertySet(String)

确定是否已设置具有指定名称的自定义属性。Determines whether a custom property with the specified name was set.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ResetIsValueShownAsLabel()

将自定义属性重置为其默认值。Resets a custom property to its default value.

ResetIsVisibleInLegend()

将自定义属性重置为其默认值。Resets a custom property to its default value.

SetCustomProperty(String, String)

设置数据点的自定义属性。Sets a custom property of the data point.

SetDefault(Boolean)

设置数据点的默认属性。Sets the default properties of the data point. 指示是否必须清除以前的属性值。Indicates whether the previous property values must be cleared.

ToString()

返回表示当前 Object 的字符串。Returns a string that represents the current Object.

(继承自 ChartElement)

适用于