[]
        
(Showing Draft Content)

C1.Win.C1ChartBase.baseChart

baseChart Class

The base chart object properties and methods.

Namespace: C1.Win.C1ChartBase
Assembly: C1.Win.C1Chart.4.8.dll
Syntax
[Docking(DockingBehavior.Ask)]
public abstract class baseChart : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, iChartRect, ISupportInitialize

Fields

Name Description
m_areaStyle
m_chartarea
m_ctrlStyle
m_dblBuffer
m_dirty
m_drawLocation
m_footerStyle
m_header
m_headerStyle
m_isWeb
m_legendStyle
m_useDoubleBuffer
m_useGrayScale

Properties

Name Description
BackColor

The background color used to display text and graphics in the control.

BackgroundImage

The background image used for the control.

BackgroundImageLayout
ChartArea

Gets the control chart area object.

CreateParams
DefaultSize
DrawFactor

Gets the DrawFactor of the chart element is set in DrawWithPrinter and accounts for 100/dpi inflation.

Font

The font used to display text in the control.

Gets the control footer object.

ForeColor

The foreground color used to display text and graphics in the control.

Header

Gets the control header object.

Legend

Gets the control legend object.

Location

Gets or sets the location of the chart area in chart control client coordinates.

PrintDialogUsage

Gets or sets whether a print dialog is used when printing.

Size

Gets or sets the size of the chart area in chart control client coordinates.

Style

Gets the chart element style.

Text
UseAntiAlias

Gets or sets a value indicating whether to use anti-aliasing when displaying the chart. This property is now obsolete. Instead, use UseAntiAliasedText and UseAntiAliasedGraphics to manage text and graphics antialiasing independently.

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

UseDoubleBuffer

Whether to use a double buffer when redrawing the chart.

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 device. Using grayscale implies the use of double buffered output.

Visible

Determines whether the control is visible or hidden.

Methods

Name Description
BeginInit()

Signals the object that initialization is starting.

BeginUpdate()

Starts batch update. After changes chart is not updated immediately. EndUpdate() method must be called to restore updating.

Dispose()

Clean up any resources being used.

Draw(Graphics, Rectangle)

Draws rectangle area.

EndInit()

Signals the object that initialization is complete.

EndUpdate()

Finishes batch update. The method restores normal chart updating.

Invalidate()

Invalidates the entire surface of the control and causes the control to be redrawn.

Invalidate(Rectangle)

Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.

LoadChartFromString(string)

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

OnBackColorChanged(EventArgs)
OnFontChanged(EventArgs)
OnForeColorChanged(EventArgs)
OnLayoutLabels(EventArgs)

Raises the LayoutLabels event.

OnPaint(PaintEventArgs)
OnPaintBackground(PaintEventArgs)
OnReset()

Raises the C1.Win.C1ChartBase.baseChart.NotifyReset event.

OnSizeChanged(EventArgs)
PageSetup()

Raises the PageSetup dialog to manage the page settings.

PrintChart()

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

PrintSetup()

Raises the PrintSetup dialog to manage the printer settings.

Reset()

Reset base chart properties to default values.

SaveChartToString()

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

SetupGrayscaleAttributes()

Sets the color-adjustment gray scale matrix.

WndProc(ref Message)
drawNagText(Graphics, string, Size)

Draws text within a specified area size.

Events

Name Description
ChartChanged

Occurs when the chart has changed.

LayoutLabels

Fires before rendering labels and allows repositioning labels relative to positions of other chart elements or using data mapping methods.