/// <summary> /// The constructor for the record. /// </summary> /// <param name="biff">The GenericBiff record that should contain the correct type and data for the MULRK record.</param> /// <exception cref="InvalidRecordIdException"> /// An InvalidRecordIdException is thrown if biff contains an invalid type or invalid data. /// </exception> public MulRkRecord(GenericBiff biff) { if(biff.Id == (ushort)RecordType.MulRk) { BinaryReader reader = new BinaryReader(biff.GetDataStream()); reader = ReadRowColInfo(reader); _values = new RkRec[reader.BaseStream.Length / 6]; for(int n = 0; n < _values.Length; ++n) { ushort xf = reader.ReadUInt16(); int rk = reader.ReadInt32(); _values[n] = new RkRec(xf, rk); } } else throw new InvalidRecordIdException(biff.Id, RecordType.MulRk); }