當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。