Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

DataPointCustomProperties Class

Defines custom properties that are common to data points, series and empty points.

Namespace:  System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)
[TypeConverterAttribute("System.Windows.Forms.Design.DataVisualization.Charting.DataPointCustomPropertiesConverter, System.Windows.Forms.DataVisualization.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
public class DataPointCustomProperties : ChartNamedElement

The DataPointCustomProperties type exposes the following members.

  NameDescription
Public methodDataPointCustomProperties()Initializes a new instance of the DataPointCustomProperties class.
Public methodDataPointCustomProperties(Series, Boolean)Initializes a new instance of the DataPointCustomProperties class with the specified series and custom properties flag.
Top
  NameDescription
Public propertyAxisLabelGets 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.
Public propertyBackGradientStyleGets or sets the background gradient style.
Public propertyBackHatchStyleGets or sets the background hatching style.
Public propertyBackImageGets or sets the background image of the data point.
Public propertyBackImageAlignmentGets or sets the alignment of the background image, which is used with the Unscaled drawing mode.
Public propertyBackImageTransparentColorGets or sets a color that will be replaced with a transparent color when the background image is drawn.
Public propertyBackImageWrapModeGets or sets the drawing mode of the background image.
Public propertyBackSecondaryColorGets or sets the secondary background color.
Public propertyBorderColorGets or sets the border color of the data point.
Public propertyBorderDashStyleGets or sets the border style of the data point.
Public propertyBorderWidthGets or sets the border width of the data point.
Public propertyColorGets or sets the color of the data point.
Public propertyCustomPropertiesGets or sets the custom properties of the data point. Custom properties can be specified in the following format: AttrName1=Value1, AttrName2=Value2 …
Public propertyCustomPropertiesExtendedGets or sets the extended custom properties of the data point. Extended custom properties can be specified in the following format: AttrName1=Value1, AttrName2=Value2...
Public propertyFontGets or sets the font of the data point.
Public propertyIsValueShownAsLabelGets or sets a flag that indicates whether to show the value of the data point on the label.
Public propertyIsVisibleInLegendGets or sets a flag that indicates whether the item is shown in the legend.
Public propertyItem[Int32]Gets the DataPointCustomProperties object by its position in the index.
Public propertyItem[String]Gets or sets the DataPointCustomProperties object by name.
Public propertyLabelGets or sets the text of the data point label.
Public propertyLabelAngleGets or sets the angle of the data point label.
Public propertyLabelBackColorGets or sets the background color of the data point label.
Public propertyLabelBorderColorGets or sets the border color of the data point label.
Public propertyLabelBorderDashStyleGets or sets the border style of the label.
Public propertyLabelBorderWidthGets or sets the border width of the label.
Public propertyLabelForeColorGets or sets the text color of the label.
Public propertyLabelFormatGets or sets the format of the data point label.
Public propertyLabelToolTipGets or sets the tooltip for the data point label.
Public propertyLegendTextGets or sets the text of the item in the legend.
Public propertyLegendToolTipGets or sets the tooltip of the item in the legend.
Public propertyMarkerBorderColorGets or sets the border color of the marker.
Public propertyMarkerBorderWidthGets or sets the border width of the marker.
Public propertyMarkerColorGets or sets the marker color.
Public propertyMarkerImageGets or sets the marker image.
Public propertyMarkerImageTransparentColorGets or sets the color that will be replaced with a transparent color when the marker image is drawn.
Public propertyMarkerSizeGets or sets the size of the marker.
Public propertyMarkerStyleGets or sets the marker style.
Public propertyNameGets or sets the name of the chart element. (Inherited from ChartNamedElement.)
Public propertyTagGets or sets an object associated with this chart element. (Inherited from ChartElement.)
Public propertyToolTipGets or sets the tooltip.
Top
  NameDescription
Public methodDeleteCustomPropertyDeletes the data point custom property with the specified name.
Public methodDispose()Releases the resources used by the ChartElement. (Inherited from ChartElement.)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the ChartElement and optionally releases the managed resources. (Inherited from ChartElement.)
Public methodEqualsDetermines whether the specified Object is equal to the current ChartElement. (Inherited from ChartElement.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetCustomPropertyReturns the data point custom property with the specified name.
Public methodGetHashCodeReturns a hash function for a particular type. (Inherited from ChartElement.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIsCustomPropertySetDetermines whether a custom property with the specified name was set.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodResetIsValueShownAsLabelResets a custom property to its default value.
Public methodResetIsVisibleInLegendResets a custom property to its default value.
Public methodSetCustomPropertySets a custom property of the data point.
Public methodSetDefaultSets the default properties of the data point. Indicates whether the previous property values must be cleared.
Public methodToStringReturns a string that represents the current Object. (Inherited from ChartElement.)
Top

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.

.NET Framework

Supported in: 4.5.1, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.