private void WriteColumnInfoRecord(BinaryWriter writer, ColumnInfo info) { ushort[] clData = { BIFF.ColumnInfoRecord, 12, (ushort)info.Index, (ushort)info.Index, (ushort)(info.Width * 256 / 7), 15, 0, 0 }; WriteUshortArray(writer, clData); }
public void ColumnWidth(int column, int width) { int idx; ColumnInfo info = new ColumnInfo(); info.Index = column; info.Width = width; idx = columns.IndexOf(info); if (idx == -1) { columns.Add(info); idx = columns.IndexOf(info); } else columns[idx].Width = width; }