コード例 #1
0
ファイル: FORMATRecord.cs プロジェクト: Daoting/dt
        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;
        }
コード例 #2
0
        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;
        }