本文整理汇总了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();
}
}
示例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();
}
示例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);
}
示例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 + ")");
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例9: NumberPtg
/** Create a NumberPtg from a byte array Read from disk */
public NumberPtg(RecordInputStream in1)
{
field_1_value = in1.ReadDouble();
}