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 SetTableCellShading(int index, string color) { if (!color.Equals("Transparent")) { int ico = Word97Writer.ToIco24(color); m_cellShading.SetCellShading(index, ico); } }
private void SetTableShading(string color) { if (!color.Equals("Transparent")) { int val = Word97Writer.ToIco24(color); m_tableShd = new byte[10]; LittleEndian.PutInt(m_tableShd, 4, val); } }
private void SetDefaultBorderColor(string color) { int color2 = Word97Writer.ToIco24(color); for (int i = 0; i < m_tableBorders.Length; i++) { m_tableBorders[i].SetColor(color2); } }
private void SetCellBorderColor(int cellIndex, string color) { int ico = Word97Writer.ToIco24(color); for (int i = 0; i < m_cellBorders.Length; i++) { m_cellBorders[i].Ico24 = ico; } }
private void SetBorderColor(string color, Positions position) { int color2 = Word97Writer.ToIco24(color); m_tableBorders[(int)position].SetColor(color2); }
private void SetCellBorderColor(int cellIndex, string color, Positions position) { int ico = Word97Writer.ToIco24(color); m_cellBorders[(int)position].Ico24 = ico; }