Class PresentationChart
Provides the common data, layout, and serialization surface for presentation charts.
Implements
Inherited Members
Namespace: DRIT.Presentation.Chart
Assembly: DRIT.Presentation.dll
Syntax
public abstract class PresentationChart : IDrawingObject
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
Constructors
PresentationChart(Presentation)
Initializes a chart associated with a presentation.
Declaration
public PresentationChart(Presentation document)
Parameters
| Type | Name | Description |
|---|---|---|
| Presentation | document |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
Fields
autoTitleDeleted
Gets or sets whether the source chart explicitly deleted its automatic title.
Declaration
public bool? autoTitleDeleted
Field Value
| Type | Description |
|---|---|
| bool? |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
Properties
Axes
Gets the axes manager providing unified access to all axes on the chart regardless of the concrete chart type.
Declaration
public AxesManager Axes { get; }
Property Value
| Type | Description |
|---|---|
| AxesManager |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
BinaryPreservedFragments
Gets preserved binary fragments associated with this chart.
Declaration
public IReadOnlyList<PreservedFragment> BinaryPreservedFragments { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<PreservedFragment> |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
ChartArea
Gets the chart area, creating it on first access.
Declaration
public ChartArea ChartArea { get; }
Property Value
| Type | Description |
|---|---|
| ChartArea |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
ChartType
Gets or sets the chart type.
Declaration
public ChartType ChartType { get; set; }
Property Value
| Type | Description |
|---|---|
| ChartType |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
Data
Gets the unified data container providing access to the chart's
categories and series. Maps to c:chart/c:plotArea
data content.
Declaration
public ChartData Data { get; }
Property Value
| Type | Description |
|---|---|
| ChartData |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
DataSource
Gets or sets the source expression used to build chart series.
Declaration
public string DataSource { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
HasRotation3D
Gets whether this chart has 3D rotation settings applied.
Declaration
public bool HasRotation3D { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
HiddenEmptyCellSettings
Gets the settings controlling how empty data cells are rendered.
Declaration
public HiddenEmptyCellSettings HiddenEmptyCellSettings { get; }
Property Value
| Type | Description |
|---|---|
| HiddenEmptyCellSettings |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
Id
Gets or sets the chart identifier within its container.
Declaration
public int Id { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
Legend
Gets or sets the legend of the chart.
Declaration
public Legend Legend { get; set; }
Property Value
| Type | Description |
|---|---|
| Legend |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
Name
Gets or sets the chart name.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
ParentGroup
Gets the containing group shape, when the chart is grouped.
Declaration
public GroupShape ParentGroup { get; }
Property Value
| Type | Description |
|---|---|
| GroupShape |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
PlotArea
Gets the chart plot area, creating it on first access.
Declaration
public PlotArea PlotArea { get; }
Property Value
| Type | Description |
|---|---|
| PlotArea |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
Position
Gets the chart position in the presentation coordinate system.
Declaration
public Position Position { get; }
Property Value
| Type | Description |
|---|---|
| Position |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
Presentation
Gets the presentation that owns this chart.
Declaration
public Presentation Presentation { get; }
Property Value
| Type | Description |
|---|---|
| Presentation |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
Rotation3D
Gets or sets the 3D rotation settings for the chart. Maps to
c:view3D. Use HasRotation3D to check
whether rotation has been explicitly applied.
Declaration
public ChartWallThreeDRotation Rotation3D { get; set; }
Property Value
| Type | Description |
|---|---|
| ChartWallThreeDRotation |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
RoundedCorners
Gets or sets whether the chart frame uses rounded corners.
Declaration
public bool RoundedCorners { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
Size
Gets the chart size in the presentation coordinate system.
Declaration
public Size Size { get; }
Property Value
| Type | Description |
|---|---|
| Size |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
Title
Gets the chart title, when one is assigned.
Declaration
public Title Title { get; }
Property Value
| Type | Description |
|---|---|
| Title |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
Usershapes
Gets the collection of shapes within a chart.
Declaration
public ShapeCollection Usershapes { get; }
Property Value
| Type | Description |
|---|---|
| ShapeCollection |
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
Methods
AddLegend()
Creates and assigns a legend to the chart.
Declaration
public void AddLegend()
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
AddTitle()
Creates and assigns a title to the chart.
Declaration
public void AddTitle()
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.
OnChartTypeSet()
Allows a chart implementation to react when its type changes.
Declaration
protected virtual void OnChartTypeSet()
Remarks
A presentation chart is owned by slide or grouped drawing content. Layout and master inheritance are presentation concerns and are separate from the shared chart semantics.