コード例 #1
0
ファイル: PlotTableBase.cs プロジェクト: fxxxysh/toolkit
        private Size GetMaxTextSize(PaintArgs p, string[] strings, ITextLayoutFull textLayout, Font font)
        {
            Size size = Size.Empty;

            for (int i = 0; i < strings.Length; i++)
            {
                size = Math2.Max(size, textLayout.GetRequiredSize(strings[i], font, p.Graphics));
            }
            return(size);
        }
コード例 #2
0
 protected override void CreateObjects()
 {
     base.CreateObjects();
     this.m_TextLayout = new TextLayoutFull();
     base.AddSubClass(this.TextLayout);
     this.I_TextLayout = this.TextLayout;
     this.m_Fill       = new PlotFill();
     base.AddSubClass(this.Fill);
     this.I_Fill = this.Fill;
 }
コード例 #3
0
ファイル: PlotTableBase.cs プロジェクト: fxxxysh/toolkit
 protected override void CreateObjects()
 {
     base.CreateObjects();
     this.m_CellsFormatting = new PlotTableCellsFormatting();
     base.AddSubClass(this.CellsFormatting);
     this.m_GridOutline = new PlotPen();
     base.AddSubClass(this.GridOutline);
     this.I_GridOutline   = this.GridOutline;
     this.I_TextLayoutDat = this.CellsFormatting.Data.TextLayout;
     this.I_TextLayoutCol = this.CellsFormatting.ColTitles.TextLayout;
     this.I_TextLayoutRow = this.CellsFormatting.RowTitles.TextLayout;
 }