コード例 #1
0
 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());
 }
コード例 #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;
        }
コード例 #3
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;
        }