Exemplo n.º 1
0
 internal SpreadChartElement(SpreadChartBase chart)
 {
     this._isAutomaticFill   = true;
     this._isAutomaticStroke = true;
     this._suspendState      = new WorkingState();
     this._chart             = chart;
 }
Exemplo n.º 2
0
        internal void UpdateTextReference()
        {
            SpreadChartBase chart = this.ChartBase;

            if (chart != null)
            {
                this.TextReference = FormulaUtility.Formula2Expression(chart.Sheet, this.TextFormula);
            }
        }
Exemplo n.º 3
0
 void UpdateTextStyle()
 {
     if (this.TextForamt != null)
     {
         double?richTextFontSize = RichTextUtility.GetRichTextFontSize(this.TextForamt.TextParagraphs);
         if (richTextFontSize.HasValue && richTextFontSize.HasValue)
         {
             this.FontSize = richTextFontSize.Value;
         }
         this.FontStyle  = RichTextUtility.GetRichTextFontStyle(this.TextForamt.TextParagraphs);
         this.FontWeight = RichTextUtility.GetRichTextFontWeight(this.TextForamt.TextParagraphs, FontWeights.Bold);
         SpreadChartBase chart = this.ChartBase;
         if (chart != null)
         {
             this.Foreground = RichTextUtility.GetRichTextFill(this.TextForamt.TextParagraphs, chart.Worksheet.Workbook);
         }
     }
 }
Exemplo n.º 4
0
 internal SpreadChartTextElement(SpreadChartBase chart) : base(chart)
 {
     this._textSeries      = new StringSeriesCollection();
     this._textOrientation = 0;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Dt.Cells.Data.ChartChangedBaseEventArgs" /> class.
 /// </summary>
 /// <param name="chart">The chart.</param>
 /// <param name="chartArea">The chart area.</param>
 /// <param name="property">The property.</param>
 public ChartChangedBaseEventArgs(SpreadChartBase chart, Dt.Cells.Data.ChartArea chartArea, string property)
 {
     this.Chart      = chart;
     this.Property   = property;
     this._chartArea = chartArea;
 }
Exemplo n.º 6
0
 internal DataSeriesCollection(SpreadChartBase chart, ChartArea area) : base(chart, area)
 {
 }
Exemplo n.º 7
0
 internal virtual void SetChartInternal(SpreadChartBase chart)
 {
     this._chart = chart;
 }
Exemplo n.º 8
0
 internal ChartTitle(SpreadChartBase owner) : base(owner)
 {
     this.DefaultAxisTitle  = ResourceStrings.DefaultAxisTitle;
     this.DefaultChartTitle = ResourceStrings.DefaultChartTitle;
 }
Exemplo n.º 9
0
 internal SpreadChartElementCollection(SpreadChartBase chart, ChartArea area)
 {
     this._chart = chart;
     this._area  = area;
 }