コード例 #1
0
ファイル: SpreadChartElement.cs プロジェクト: Daoting/dt
 internal SpreadChartElement(SpreadChartBase chart)
 {
     this._isAutomaticFill   = true;
     this._isAutomaticStroke = true;
     this._suspendState      = new WorkingState();
     this._chart             = chart;
 }
コード例 #2
0
ファイル: SpreadChartTextElement.cs プロジェクト: Daoting/dt
        internal void UpdateTextReference()
        {
            SpreadChartBase chart = this.ChartBase;

            if (chart != null)
            {
                this.TextReference = FormulaUtility.Formula2Expression(chart.Sheet, this.TextFormula);
            }
        }
コード例 #3
0
ファイル: SpreadChartTextElement.cs プロジェクト: Daoting/dt
 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);
         }
     }
 }
コード例 #4
0
ファイル: SpreadChartTextElement.cs プロジェクト: Daoting/dt
 internal SpreadChartTextElement(SpreadChartBase chart) : base(chart)
 {
     this._textSeries      = new StringSeriesCollection();
     this._textOrientation = 0;
 }
コード例 #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;
 }
コード例 #6
0
ファイル: DataSeriesCollection.cs プロジェクト: Daoting/dt
 internal DataSeriesCollection(SpreadChartBase chart, ChartArea area) : base(chart, area)
 {
 }
コード例 #7
0
ファイル: SpreadChartElement.cs プロジェクト: Daoting/dt
 internal virtual void SetChartInternal(SpreadChartBase chart)
 {
     this._chart = chart;
 }
コード例 #8
0
ファイル: ChartTitle.cs プロジェクト: Daoting/dt
 internal ChartTitle(SpreadChartBase owner) : base(owner)
 {
     this.DefaultAxisTitle  = ResourceStrings.DefaultAxisTitle;
     this.DefaultChartTitle = ResourceStrings.DefaultChartTitle;
 }
コード例 #9
0
 internal SpreadChartElementCollection(SpreadChartBase chart, ChartArea area)
 {
     this._chart = chart;
     this._area  = area;
 }