public void Read(SimpleBinaryReader reader) { this.FontIndex = reader.ReadUInt16(); this.FormatIndex = reader.ReadUInt16(); this.ReadXFTyleCellProtectionAndParentXF(reader.ReadUInt16()); this.ReadAlignmentAndTextBreak(reader.ReadByte()); this.TextRotation = reader.ReadByte(); this.ReadIndentShrinkAndTextDirection(reader.ReadByte()); this.ReadFlags(reader.ReadByte()); this.ReadBorder(reader.ReadUInt32()); this.ReadBorderAndFillPattern(reader.ReadUInt32()); this.ReadFillPatternColor(reader.ReadUInt16()); }
public void Read(SimpleBinaryReader reader) { string str; this.FontHeight = ((double)reader.ReadUInt16()) / 20.0; this.InitFontAttribute(reader.ReadUInt16()); this.ColorIndex = reader.ReadUInt16(); this.IsBold = reader.ReadUInt16() == 700; this.SuperScript = reader.ReadUInt16(); this.UnderlineStyle = reader.ReadByte(); this.FontFamily = reader.ReadByte(); this.CharacterSet = reader.ReadByte(); reader.ReadByte(); this.FontNameLength = reader.ReadByte(); reader.ReadUncompressedString(this.FontNameLength, out str); this.FontName = str; }
public void Read(SimpleBinaryReader reader) { string str; this.FormatStringLength = reader.ReadUInt16(); this.OptionFlags = reader.ReadByte(); reader.Seek(-1, (SeekOrigin)SeekOrigin.Current); reader.ReadUncompressedString((short)this.FormatStringLength, out str); this.FormatString = str; }
public void Read(SimpleBinaryReader reader) { this.fHighByte = (byte)(reader.ReadByte() & 1); if (this.fHighByte == 1) { this.rgb = reader.ReadBytes(this.cch * 2); } else { this.rgb = reader.ReadBytes(this.cch); } }