private void WriteColumnInfoRecord(BinaryWriter writer, ColumnInfo info) { ushort[] numArray2 = new ushort[] { 0x7d, 12, 0, 0, 0, 15, 0, 0 }; numArray2[2] = (ushort) info.Index; numArray2[3] = (ushort) info.Index; numArray2[4] = (ushort) ((info.Width * 0x100) / 7); ushort[] numArray = numArray2; WriteUshortArray(writer, numArray); }
public void ColumnWidth(int column, int width) { ColumnInfo item = new ColumnInfo { Index = column, Width = width }; int index = this.columns.IndexOf(item); if (index == -1) { this.columns.Add(item); index = this.columns.IndexOf(item); } else { this.columns[index].Width = width; } }