[]
The platform-independent implementation of the charting model. It owns the chart's content (titles, series, areas, legends), bridges that content to the rendering engine, and provides persistence, data-refresh and lifetime management. UI hosts wrap an instance of this class to expose a chart as a control.
public sealed class SharpGraphCore : ISharpGraph, ISupportInitialize, IDisposable
| Name | Description |
|---|---|
| SharpGraphCore() | Initializes new instance of the SharpGraph control |
| Name | Description |
|---|---|
| AreaCustomBorderDrawer | Gets or sets custom border drawer object for chart areas |
| AutoRefresh | If true chart will be automatically refreshed(redrawn) on each property change |
| Backdrop | Main chart's backdrop, spans all chart control area |
| Border | Main chart's border, spans all chart control area |
| ChartAreas | Chart Areas |
| ChartCustomBorderDrawer | Gets or sets custom border drawer object for entire control |
| ColorPalette | Global color palette. May be overrided on series level |
| DataSource | Global graph's data source |
| DeviceMode | Gets or sets graphics device specific options |
| GridLayout | Chart Areas Columns |
| IsDesignMode | Gets or sets a value indicating whether this instance is design mode. |
| IsDirty | Gets or sets a value indicating whether the chart has unsaved changes. The chart becomes dirty when any of its elements change and is cleared once the chart is saved. |
| Legends | Gets control's Legend object |
| Series | Where chart gets it's data to display |
| SqlDbFactory | The sql data provider factory. Used to recreate the connection with a given credentials. |
| Titles | Gets control's Titles collection |
| UIOptions | Enables specific UI features |
| Name | Description |
|---|---|
| BeginInit() | Signals the object that initialization is starting. |
| Dispose() | Releases all resources held by the chart, clearing registered components and cached credentials. Call this when the chart is no longer needed. |
| Dispose(bool) | Releases the unmanaged resources used by the Component and optionally releases the managed resources. |
| DrawContent(Canvas, Rectangle) | DrawContent is provided primary for usage with ARNet2. However, by providing this function, it also allows some other usages to non-display canvases. OnPaint now calls this. |
| EndInit() | Signals the object that initialization is complete. |
| FixReferences() | Fixes the references between chart object. This method is used when chart is partially deserialized. |
| GetCultureInfo() | Returns the culture used to format and parse the chart's text, numbers and dates. If a culture provider has been set with SetCultureProvider(Func<CultureInfo>), its result is used; otherwise the current thread culture is returned. |
| Invalidate() | Requests that the chart be repainted by raising the dirty-state notification to any listening host. |
| QuickLoad(BinaryReader) | Deserialize the data from XMl format. |
| QuickSave(BinaryWriter) | Serialize this object to binary writer in XML format. |
| ReadXml(XmlElement) | Reads the XML. |
| RefreshData() | Clears internal caches, so that chart will load all that data when it will be drawn next time |
| ResetContent() | Restores the chart to its initial empty state, replacing all content (titles, series, areas, legends) with new empty collections and resetting global appearance and behavior options to their defaults. |
| SetCultureProvider(Func<CultureInfo>) | Sets the culture provider. |
| SetDirty(bool) | Marks the chart as modified, raising GrapeCity.ActiveReports.Chart.SharpGraphCore.SetDirtyFired so the host can refresh and track the change. |
| SetTooltipText(string) | Sets the tooltip text for the chart as a whole. This core implementation performs no action; UI hosts override the behavior to display the tooltip. |
| TransferToCore(object) | Pushes the current chart definition into a rendering engine so it can be drawn. |
| WriteXml(XmlElement) | Writes the XML. |