Esempio n. 1
0
 private void SetDefaultBorderWidth(string width)
 {
     for (int i = 0; i < this.m_tableBorders.Length; i++)
     {
         this.m_tableBorders[i].LineWidth = (int)(Word97Writer.ToPoints(width) * 8.0);
     }
 }
Esempio n. 2
0
        public void AddCellDiagonal(int cellIndex, RPLFormat.BorderStyles style, string width, string color, bool slantUp)
        {
            BorderCode borderCode = new BorderCode();
            byte       b          = (byte)(slantUp ? 32 : 16);

            borderCode.Ico24 = Word97Writer.ToIco24(color);
            double num = Word97Writer.ToPoints(width);

            borderCode.LineWidth = (byte)(num * 8.0);
            borderCode.Style     = this.ConvertBorderStyle(style);
            byte[] array = new byte[11]
            {
                (byte)cellIndex,
                (byte)(cellIndex + 1),
                b,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            };
            borderCode.Serialize2K3(array, 3);
            this.m_tapx.AddSprm(54831, 0, array);
        }
Esempio n. 3
0
        private void SetCellBorderWidth(int cellIndex, string width)
        {
            double num       = Word97Writer.ToPoints(width);
            byte   lineWidth = (byte)(num * 8.0);

            for (int i = 0; i < this.m_cellBorders.Length; i++)
            {
                this.m_cellBorders[i].LineWidth = lineWidth;
            }
        }
Esempio n. 4
0
 private void SetBorderWidth(string width, Positions position)
 {
     this.m_tableBorders[(int)position].LineWidth = (int)(Word97Writer.ToPoints(width) * 8.0);
 }
Esempio n. 5
0
        private void SetCellBorderWidth(int cellIndex, string width, Positions position)
        {
            double num = Word97Writer.ToPoints(width);

            this.m_cellBorders[(int)position].LineWidth = (int)(num * 8.0);
        }