private void SetDefaultBorderWidth(string width) { for (int i = 0; i < m_tableBorders.Length; i++) { m_tableBorders[i].LineWidth = (int)(Word97Writer.ToPoints(width) * 8.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); }
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; } }
private void SetBorderWidth(string width, Positions position) { m_tableBorders[(int)position].LineWidth = (int)(Word97Writer.ToPoints(width) * 8.0); }
private void SetCellBorderWidth(int cellIndex, string width, Positions position) { double num = Word97Writer.ToPoints(width); m_cellBorders[(int)position].LineWidth = (int)(num * 8.0); }