示例#1
0
 private void SetDefaultBorderWidth(string width)
 {
     for (int i = 0; i < m_tableBorders.Length; i++)
     {
         m_tableBorders[i].LineWidth = (int)(Word97Writer.ToPoints(width) * 8.0);
     }
 }
示例#2
0
        internal 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     = 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);
            m_tapx.AddSprm(54831, 0, array);
        }
示例#3
0
        private void SetCellBorderWidth(int cellIndex, string width)
        {
            byte lineWidth = (byte)(Word97Writer.ToPoints(width) * 8.0);

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

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