ChartGraphics ChartGraphics ChartGraphics ChartGraphics Class

Definition

Provides numerous conversion functions and exposes a GDI+ Graphics object.

public ref class ChartGraphics : System::Web::UI::DataVisualization::Charting::ChartElement
public class ChartGraphics : System.Web.UI.DataVisualization.Charting.ChartElement
type ChartGraphics = class
    inherit ChartElement
Public Class ChartGraphics
Inherits ChartElement
Inheritance
ChartGraphicsChartGraphicsChartGraphicsChartGraphics

Remarks

This class provides numerous conversion functions and also exposes a GDI+ Graphics object. Note that when rendering as Scalable Vector Graphics (SVG), use of the Graphics object for custom drawing will not be included as part of the SVG document.

Note also that, by default, Graphics functions usually take absolute coordinates. Therefore the conversion methods of this class should be useful if you perform drawing operations.

A ChartGraphics object is exposed in the ChartGraphics property of the ChartPaintEventArgs class, which makes it easy to perform custom drawing in the PrePaint and PostPaint events.

Important

If significant changes are made to the default behavior of the Graphics object, the chart image and its associated elements may be drawn erratically. For example, positioning may be altered. It is highly recommended that you become well acquainted with GDI+ before you make any significant changes to the properties of the Graphics object.

Properties

Graphics Graphics Graphics Graphics

Gets or sets a GDI+ Graphics object that can be used for drawing purposes.

Tag Tag Tag Tag

Gets or sets an object associated with this chart element.

(Inherited from ChartElement)

Methods

Dispose() Dispose() Dispose() Dispose()

Releases the resources used by the ChartElement.

(Inherited from ChartElement)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases unmanaged and, optionally, managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from ChartElement)
GetAbsolutePoint(PointF) GetAbsolutePoint(PointF) GetAbsolutePoint(PointF) GetAbsolutePoint(PointF)

Takes a PointF object and converts its relative coordinates to absolute coordinates.

GetAbsoluteRectangle(RectangleF) GetAbsoluteRectangle(RectangleF) GetAbsoluteRectangle(RectangleF) GetAbsoluteRectangle(RectangleF)

Takes a RectangleF object and converts its relative coordinates to absolute coordinates.

GetAbsoluteSize(SizeF) GetAbsoluteSize(SizeF) GetAbsoluteSize(SizeF) GetAbsoluteSize(SizeF)

Takes a SizeF object that uses relative coordinates and returns a SizeF object that uses absolute coordinates.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns a hash function for a particular type.

(Inherited from ChartElement)
GetPositionFromAxis(String, AxisName, Double) GetPositionFromAxis(String, AxisName, Double) GetPositionFromAxis(String, AxisName, Double) GetPositionFromAxis(String, AxisName, Double)

Takes a given axis value for a specified axis and returns the relative pixel value.

GetRelativePoint(PointF) GetRelativePoint(PointF) GetRelativePoint(PointF) GetRelativePoint(PointF)

Takes a PointF object that uses absolute coordinates and returns a PointF object that uses relative coordinates.

GetRelativeRectangle(RectangleF) GetRelativeRectangle(RectangleF) GetRelativeRectangle(RectangleF) GetRelativeRectangle(RectangleF)

Takes a RectangleF structure that is using absolute coordinates and returns a RectangleF object that uses relative coordinates.

GetRelativeSize(SizeF) GetRelativeSize(SizeF) GetRelativeSize(SizeF) GetRelativeSize(SizeF)

Takes a SizeF object in absolute coordinates and returns a SizeF object that uses relative coordinates.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current Object.

(Inherited from ChartElement)

Applies to