Szerkesztés

Megosztás a következőn keresztül:


DataPointCustomProperties Class

Definition

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
Inheritance
DataPointCustomProperties
Derived
Attributes

Remarks

This class defines custom properties such as colors, the use of background images, hatching, and so forth.

The Series class, DataPoint class and the EmptyPointStyle property are all derived from this class.

Constructors

DataPointCustomProperties()

Initializes a new instance of the DataPointCustomProperties class.

DataPointCustomProperties(Series, Boolean)

Initializes a new instance of the DataPointCustomProperties class with the specified series and custom properties flag.

Properties

AxisLabel

Gets or sets the text of the X-axis label for the data point, series or an empty point. 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

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. 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. 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]

Gets the DataPointCustomProperties object by its position in the index.

Item[String]

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.

(Inherited from ChartNamedElement)
Tag

Gets or sets an object associated with this chart element.

(Inherited from ChartElement)
ToolTip

Gets or sets the tooltip.

Methods

DeleteCustomProperty(String)

Deletes the data point custom property with the specified name.

Dispose()

Releases the resources used by the ChartElement.

(Inherited from ChartElement)
Dispose(Boolean)

Releases the unmanaged resources used by the ChartElement and optionally releases the managed resources.

(Inherited from ChartElement)
Equals(Object)

Determines whether the specified Object is equal to the current ChartElement.

(Inherited from ChartElement)
GetCustomProperty(String)

Returns the data point custom property with the specified name.

GetHashCode()

Returns a hash function for a particular type.

(Inherited from ChartElement)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsCustomPropertySet(String)

Determines whether a custom property with the specified name was set.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from 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()

Returns a string that represents the current Object.

(Inherited from ChartElement)

Applies to