public FrtFontList(IStreamReader reader, GraphRecordNumber id, UInt16 length) : base(reader, id, length) { // assert that the correct record type is instantiated Debug.Assert(this.Id == ID); // initialize class members from stream this.frtHeaderOld = new FrtHeaderOld(reader); this.verExcel = reader.ReadByte(); // skip reserved byte reader.ReadByte(); this.cFont = reader.ReadUInt16(); if (this.cFont > 0) { this.rgFontInfo = new FontInfo[this.cFont]; for (int i = 0; i < this.cFont; i++) { this.rgFontInfo[i] = new FontInfo(reader); } } // assert that the correct number of bytes has been read from the stream Debug.Assert(this.Offset + this.Length == this.Reader.BaseStream.Position); }
public EndBlock(IStreamReader reader, GraphRecordNumber id, UInt16 length) : base(reader, id, length) { // assert that the correct record type is instantiated Debug.Assert(this.Id == ID); // initialize class members from stream this.frtHeaderOld = new FrtHeaderOld(reader); this.iObjectKind = (ObjectKind)reader.ReadUInt16(); reader.ReadBytes(6); // assert that the correct number of bytes has been read from the stream Debug.Assert(this.Offset + this.Length == this.Reader.BaseStream.Position); }
public YMult(IStreamReader reader, GraphRecordNumber id, UInt16 length) : base(reader, id, length) { // assert that the correct record type is instantiated Debug.Assert(this.Id == ID); // initialize class members from stream this.frtHeaderOld = new FrtHeaderOld(reader); this.axmid = (AxisMultiplier)reader.ReadInt16(); this.numLabelMultiplier = reader.ReadDouble(); UInt16 flags = reader.ReadUInt16(); this.fAutoShowMultiplier = Utils.BitmaskToBool(flags, 0x0002); this.fBeingEdited = Utils.BitmaskToBool(flags, 0x0004); // assert that the correct number of bytes has been read from the stream Debug.Assert(this.Offset + this.Length == this.Reader.BaseStream.Position); }