[]
        
(Showing Draft Content)

C1.Report.DiagramChartField

DiagramChartField Class

Represents a report field with a chart which is implemented using the FlexChart control.

Inheritance
DiagramChartField
Namespace: C1.Report
Assembly: C1.Report.4.6.2.dll
Syntax
public class DiagramChartField : FieldBase, IScriptContextProvider, ICloneable
Public Class DiagramChartField
    Inherits FieldBase
    Implements IScriptContextProvider, ICloneable

Constructors

Name Description
DiagramChartField()

Initialize a new instance of the FlexChartField class.

Properties

Name Description
DataSourceName

Gets or sets the name of the data source for the chart. The name must match a name of a data source in the report's DataSources collection. Empty string indicates that the main data source will be used.

Diagram

Gets collection of alt nodes.

Methods

Name Description
AssignFrom(ReportObject, bool)

Assigns (copies) properties from another FlexChartField to the current object.

BuildFlexDiagram(Chart)
CreateSame()

Creates instance of same class as this object.

GetContentAutoHeight(double)

Override this method to calculate the height of object on basis of its content, this method is called when field can grow or shrink vertically.

GetContentAutoSize(out double, out double)

Override this method to calculate sizes of object on basis of its content, this method is called when field can grow or shrink vertically and horizontally.

GetContentAutoWidth(double)

Override this method to calculate the width of object on basis of its content, this method is called when field can grow or shrink horizontally.

GetDataSource()

Returns DataSource specified for this field in the DataSourceName property, returns null if DataSourceName is null or empty, throws an exception if DataSource with specified name not found.

GetPropsTable()
InternalBuildBrick(SubSectionBrick)

This method should be overriden in descendant classes like Field, BarCodeField, ChartField and so on.

InternalRefreshBrick(FieldBrickBase)