示例#1
0
 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);
 }
示例#2
0
 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;
     }
 }