当前位置: 首页>>代码示例>>C#>>正文


C# RecordInputStream.ReadDouble方法代码示例

本文整理汇总了C#中NPOI.HSSF.Record.RecordInputStream.ReadDouble方法的典型用法代码示例。如果您正苦于以下问题:C# RecordInputStream.ReadDouble方法的具体用法?C# RecordInputStream.ReadDouble怎么用?C# RecordInputStream.ReadDouble使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在NPOI.HSSF.Record.RecordInputStream的用法示例。


在下文中一共展示了RecordInputStream.ReadDouble方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DeltaRecord

        /**
         * Constructs a Delta record and Sets its fields appropriately.
         * @param in the RecordInputstream to Read the record from
         */

        public DeltaRecord(RecordInputStream in1)
        {
            field_1_max_change = in1.ReadDouble();
            if(in1.Remaining > 0) // support malformed record
            {
                in1.ReadDouble();
            }
        }
开发者ID:rohatsu,项目名称:npoi,代码行数:13,代码来源:DeltaRecord.cs

示例2: ValueRangeRecord

        /**
         * Constructs a ValueRange record and Sets its fields appropriately.
         *
         * @param in the RecordInputstream to Read the record from
         */

        public ValueRangeRecord(RecordInputStream in1)
        {
            field_1_minimumAxisValue = in1.ReadDouble();
            field_2_maximumAxisValue = in1.ReadDouble();
            field_3_majorIncrement = in1.ReadDouble();
            field_4_minorIncrement = in1.ReadDouble();
            field_5_categoryAxisCross = in1.ReadDouble();
            field_6_options = in1.ReadShort();

        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:16,代码来源:ValueRangeRecord.cs

示例3: OldFormulaRecord

        public OldFormulaRecord(RecordInputStream ris) :
            base(ris, ris.Sid == biff2_sid)
        {
            ;

            if (IsBiff2)
            {
                field_4_value = ris.ReadDouble();
            }
            else
            {
                long valueLongBits = ris.ReadLong();
                specialCachedValue = SpecialCachedValue.Create(valueLongBits);
                if (specialCachedValue == null)
                {
                    field_4_value = BitConverter.Int64BitsToDouble(valueLongBits);
                }
            }

            if (IsBiff2)
            {
                field_5_options = (short)ris.ReadUByte();
            }
            else
            {
                field_5_options = ris.ReadShort();
            }

            int expression_len = ris.ReadShort();
            int nBytesAvailable = ris.Available();
            field_6_Parsed_expr = Formula.Read(expression_len, ris, nBytesAvailable);
        }
开发者ID:Reinakumiko,项目名称:npoi,代码行数:32,代码来源:OldFormulaRecord.cs

示例4: ReadAConstantValue

 private static object ReadAConstantValue(RecordInputStream in1)
 {
     byte grbit = (byte)in1.ReadByte();
     switch (grbit)
     {
         case TYPE_EMPTY:
             in1.ReadLong(); // 8 byte 'not used' field
             return EMPTY_REPRESENTATION;
         case TYPE_NUMBER:
             return in1.ReadDouble();
         case TYPE_STRING:
             return in1.ReadUnicodeString();
         case TYPE_bool:
             return ReadBoolean(in1);
         case TYPE_ERROR_CODE:
             int errCode = in1.ReadUShort();
             // next 6 bytes are Unused
             in1.ReadUShort();
             in1.ReadInt();
             return ErrorConstant.ValueOf(errCode);
     }
     throw new Exception("Unknown grbit value (" + grbit + ")");
 }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:23,代码来源:ConstantValueParser.cs

示例5: DeltaRecord

        /**
         * Constructs a Delta record and Sets its fields appropriately.
         * @param in the RecordInputstream to Read the record from
         */

        public DeltaRecord(RecordInputStream in1)
        {
            field_1_max_Change = in1.ReadDouble();
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:9,代码来源:DeltaRecord.cs

示例6: NumberRecord

        /**
         * Constructs a Number record and Sets its fields appropriately.
         *
         * @param in the RecordInputstream to Read the record from
         */

        public NumberRecord(RecordInputStream in1):base(in1)
        {
            field_4_value = in1.ReadDouble();
        }
开发者ID:xoposhiy,项目名称:npoi,代码行数:10,代码来源:NumberRecord.cs

示例7: RightMarginRecord

 /**
  * Constructs a RightMargin record and Sets its fields appropriately.     *     * @param id    id must be 0x27 or an exception     *              will be throw upon validation     * @param size  size the size of the data area of the record     * @param data  data of the record (should not contain sid/len)
  */
 public RightMarginRecord(RecordInputStream in1)
 {
     field_1_margin = in1.ReadDouble();
 }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:7,代码来源:RightMarginRecord.cs

示例8: PrintSetupRecord

        /**
         * Constructs a PrintSetup (SetUP) record and Sets its fields appropriately.
         * @param in the RecordInputstream to Read the record from
         */

        public PrintSetupRecord(RecordInputStream in1)
        {
            field_1_paper_size = in1.ReadShort();
            field_2_scale = in1.ReadShort();
            field_3_page_start = in1.ReadShort();
            field_4_fit_width = in1.ReadShort();
            field_5_fit_height = in1.ReadShort();
            field_6_options = in1.ReadShort();
            field_7_hresolution = in1.ReadShort();
            field_8_vresolution = in1.ReadShort();
            field_9_headermargin = in1.ReadDouble();
            field_10_footermargin = in1.ReadDouble();
            field_11_copies = in1.ReadShort();
        }
开发者ID:89sos98,项目名称:npoi,代码行数:19,代码来源:PrintSetupRecord.cs

示例9: NumberPtg

 /** Create a NumberPtg from a byte array Read from disk */
 public NumberPtg(RecordInputStream in1)
 {
     field_1_value = in1.ReadDouble();
 }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:5,代码来源:NumberPtg.cs


注:本文中的NPOI.HSSF.Record.RecordInputStream.ReadDouble方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。