[]
        
(Showing Draft Content)

C1.Win.C1Chart.C1Chart

C1Chart Class

Represents the class for the C1Chart control.

Namespace: C1.Win.C1Chart
Assembly: C1.Win.C1Chart.4.8.dll
Syntax
[ToolboxBitmap(typeof(C1Chart), "C1Chart.png")]
public class C1Chart : baseChart, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, iChartRect, ISupportInitialize

Constructors

Name Description
C1Chart()

Creates a new instance of C1Chart class.

Fields

Name Description
m_webChart

The chart web data source object.

m_webDesign

A value that indicates whether the C1Chart is currently in design mode.

Properties

Name Description
AssemblyFileVersionString

Gets the control�s assembly file version as a string.

AssemblyVersionString

Gets the control�s assembly version as a string.

ChartArea

Gets the control�s Chart Area Area object.

ChartGroups

Gets the control ChartGroups object.

ChartLabels

Gets the control ChartLabels object.

ColorGeneration

Gets or sets a value specifying theme based automatic color generation. The default value is ColorGeneration.Custom which specifies the standard color generation method used by C1Chart. The remaining options mimic the color themes of Microsoft Office.

A special setting for this property is ColorGeneration.CopyToCustom. When the ColorGeneration property is set to the CopyToCustom value, the current colors are copied to the Custom color generation, and the property is automatically set to ColorGeneration.Custom for further customization. Please note that this operation is automatically performed whenever the chart data is loaded by string, file or by the designer. Please also note that as color customizations are made to the LineStyle and SymbolStyle of each ChartDataSeries, these customizations affect both the current state and the Custom state values.

DataSource

Gets or sets the data source object that is bound to the chart.

Gets the control footer object.

Header

Gets the control header object.

Interaction

Gets the control interaction object.

Legend

Gets the control Legend object.

PrintDialogUsage

Gets or sets a value indicating whether the print dialog pops up when the PrintChart method is called.

Repaint

Determines whether the chart is repainted when its properties change.

Style

Gets or sets the chart style.

ToolTip

Gets the chart tooltip object.

UseAntiAliasedGraphics

Gets or sets a value indicating whether to use anti-aliasing while rendering chart graphics (only).

UseAntiAliasedText

Gets or sets a value indicating whether to use anti-aliasing while rendering chart text (only).

UseGrayscale

Gets or sets a value indicating whether to render the chart with grayscale instead of color. The use of Grayscale is intended as a preview for output to a black and white device. It does not affect style brush or pen colors internally, only the rendering of the chart to the output devices and images. Using grayscale implies the use of double buffered output.

VisualEffects

Gets the VisualEffects object.

Methods

Name Description
AddSampleData()

Adds the ChartData for sample.

ChartRegionFromCoord(int, int)

Return the enumerated value indicating the topmost displayed region at the specified coordinates.

CreateAccessibilityInstance()
Dispose()

Readies the chart object for garbage collection.

Draw(Graphics, Rectangle)

Draws the chart on the specified drawing surface.

GenerateHistogramData(double[], double, double, int, double, ref double[], ref double[], ref double[])

Generates histogram data from raw data and a series of interval boundaries specified by a starting value, an interval width and the number of intervals.

GenerateHistogramData(double[], double[], double, ref double[], ref double[], ref double[])

Generates histogram data from an array of raw data and the specified interval boundaries. Count normalization is performed by specifying an appropriate NormalizationWidth.

Although the chart has a Histogram chart type, it is sometimes preferable to generate charts similar to histograms, but with slightly different characteristics. This method is provided as a convenience for these occasions.

GetImage()

Obtains an image of the current chart display.

GetImage(ImageFormat)

Obtains an image of the current chart display using the specified format.

GetImage(ImageFormat, Size)

Obtains an image of the current chart display using the specified format and size.

GetImage(Size)

Obtains an image of the current chart display using the specified size.

GetMetafile()

Obtains an metafile of the current chart display using the specified size.

GetMetafile(Size)

Obtains an metafile of the current chart display using the specified size.

GetMetafile(Size, EmfType)

Obtains an metafile of the current chart display using the specified size and type.

IsInputKey(Keys)
LoadChartAndImagesFromFile(string)

Reads the chart property and data settings (chart description) and images from the specified file.

LoadChartAndImagesFromString(string)

Reads the chart property and data settings (chart description) and images from the specified string.

LoadChartFromFile(string)

Reads the chart property and data settings (chart description) from the specified file.

LoadChartFromString(string)

Reads the chart property and data settings (chart description) from the specified string.

LoadChartTemplateFromFile(string)

Reads the chart property and settings (chart description) and images from the specified file.

LoadChartTemplateFromString(string)

Reads the chart property and settings (chart description) and images from the specified string.

LoadLocalizations(byte[])

Reads all localizations from the specified byte array and uses them locally at runtime.

LoadLocalizations(Stream)

Reads all localizations from the specified stream and uses them locally at runtime.

LoadLocalizations(string)

Reads all localizations from the specified file and uses them locally at runtime.

OnBindingContextChanged(EventArgs)
OnCreateControl()
OnDataSourceChanged(EventArgs)

Occurs when the DataSource property has changed. Raises the DataSourceChanged event.

OnDrawDataSeries(object, DrawDataSeriesEventArgs)

Raises the DrawDataSeries event.

OnDrawLegendEntry(object, DrawLegendEntryEventArgs)

Raises the DrawLegendEntry event.

OnTransform(object, TransformEventArgs)

Raises the Transform event.

PageSetup()

Raises the PageSetup dialog to manage the page settings.

PrintChart()

Prints the control using default scaling within the margins of the printer page.

PrintChart(PrintScaleEnum)

Prints the control using the specified scaling within the margins of the printer page.

PrintChart(PrintScaleEnum, Rectangle)

Prints the control using the specified scaling to the specified rectangle.

PrintChart(PrintScaleEnum, Rectangle, PageSettings)

Prints the control using the specified scaling and page settings to the specified rectangle.

PrintChart(PrintScaleEnum, Rectangle, PageSettings, bool)

Prints the control using the specified scaling and page settings to the specified rectangle.

PrintSetup()

Raises the PrintSetup dialog to manage the printer settings.

Reset()

Clears the chart of all data and settings.

SaveChartAndImagesToFile(string)

Saves the all of the contents of the control to the specified file, including data.

SaveChartAndImagesToString(bool)

Save all the chart information, including data and images to the returned string with optional formatting.

SaveChartTemplateToFile(string)

Saves the all of the contents of the control to the specified file, excluding data.

SaveChartTemplateToString()

Saves the all of the contents of the control to a string, excluding data.

SaveChartTemplateToString(bool)

Saves the all of the contents of the control to a string, excluding data.

SaveChartToFile(string)

Saves the all of the contents of the control to the specified file, including data.

SaveChartToString()

Saves the all of the contents of the control to the specified file, including data.

SaveChartToString(bool)

Save all the chart information, including data to the returned string with optional formatting.

SaveImage(ref byte[], ImageFormat)

Saves an image of the chart in a Byte array in the specified format.

SaveImage(ref byte[], ImageFormat, Size)

Saves an image of the chart in a Byte array in the specified format of the specified size.

SaveImage(ImageFormat)

Saves an image of the chart to the clipboard using display size.

SaveImage(ImageFormat, Size)

Saves an image of the chart to the clipboard using the specified size and the specified format.

SaveImage(Stream, ImageFormat)

Saves an image of the chart to the specified stream in the specified format.

SaveImage(Stream, ImageFormat, Size)

Saves an image of the chart to the specified stream in the specified format of the specified size.

SaveImage(string, ImageFormat)

Saves an image of the chart to the specified file in the specified format.

SaveImage(string, ImageFormat, Size)

Saves an image of the chart to the specified file in the specified format of the specified size.

SaveLocalizations(out byte[])

Writes all current localizations to the specified byte array.

SaveLocalizations(Stream)

Writes all current localizations to the specified stream.

SaveLocalizations(string)

Writes all current localizations to the specified file.

SetDefaultData()

Initializes the chart data to default values for design modes.

ShowDataBindingDialog()

Shows the data binding dialog.

ShowProperties()

Raises the chart properties dialog at runtime.

ShowProperties(DesignerDialogEnum)

Raises the properties dialog at runtime using specified dialog version.

ShowProperties(PropertyPageFlags)

Raises the customized chart properties dialog at runtime.

ShowProperties(PropertyPageFlags, ref Rectangle)

Raises the customized chart properties dialog at runtime.

ShowProperties(ref Rectangle)

Raises the chart properties dialog at runtime.

ShowVisualEffectsEditor()

Raises the VisualEffects Editor dialog at runtime.

ShowVisualEffectsEditor(ref Rectangle)

Raises the VisualEffects Editor dialog at runtime.

ShowWizard()

Raises the chart wizard dialog at runtime.

ShowWizard(DesignerDialogEnum)

Raises the chart wizard at runtime using specified dialog version.

WndProc(ref Message)
createTitle(baseChartStyle, CompassEnum)

Creates base chart title.

Events

Name Description
AxisScroll

Occurs whenever the scroll position of the axis scrollbar changes.

DataSourceChanged

Occurs when the DataSource property has changed.

DrawDataSeries

Fires when the data series is about to be drawn. This event allows changes to the brush that will be used for data series plotting, including the addition of hatching, gradients and textures.

DrawLegendEntry

Fires when legend entry is drawn.

HighlightChanged

Occurs when highlighted data element has been changed.

PaintPlotArea

Occurs when plot area is drawing.

ShowTooltip

Occurs when tooltip is shown.

Transform

Fires when interactive action is about to occur. This event permits additional control over the parameters of user interactions. It possible to change axes limits or cancel transformation.