本文整理汇总了C#中NPOI.HSSF.Record.RecordInputStream.ReadInt方法的典型用法代码示例。如果您正苦于以下问题:C# RecordInputStream.ReadInt方法的具体用法?C# RecordInputStream.ReadInt怎么用?C# RecordInputStream.ReadInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NPOI.HSSF.Record.RecordInputStream
的用法示例。
在下文中一共展示了RecordInputStream.ReadInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ExtendedPivotTableViewFieldsRecord
public ExtendedPivotTableViewFieldsRecord(RecordInputStream in1)
{
grbit1 = in1.ReadInt();
grbit2 = in1.ReadUByte();
citmShow = in1.ReadUByte();
isxdiSort = in1.ReadUShort();
isxdiShow = in1.ReadUShort();
// This record seems to have different valid encodings
switch (in1.Remaining) {
case 0:
// as per "Microsoft Excel Developer's Kit" book
// older version of SXVDEX - doesn't seem to have a sub-total name
reserved1 = 0;
reserved2 = 0;
subName = null;
return;
case 10:
// as per "MICROSOFT OFFICE EXCEL 97-2007 BINARY FILE FORMAT SPECIFICATION" pdf
break;
default:
throw new RecordFormatException("Unexpected remaining size (" + in1.Remaining + ")");
}
int cchSubName = in1.ReadUShort();
reserved1 = in1.ReadInt();
reserved2 = in1.ReadInt();
if (cchSubName != STRING_NOT_PRESENT_LEN)
{
subName = in1.ReadUnicodeLEString(cchSubName);
}
}
示例2: FeatRecord
public FeatRecord(RecordInputStream in1)
{
futureHeader = new FtrHeader(in1);
isf_sharedFeatureType = in1.ReadShort();
reserved1 = (byte)in1.ReadByte();
reserved2 = in1.ReadInt();
int cref = in1.ReadUShort();
cbFeatData = in1.ReadInt();
reserved3 = in1.ReadShort();
cellRefs = new CellRangeAddress[cref];
for (int i = 0; i < cellRefs.Length; i++)
{
cellRefs[i] = new CellRangeAddress(in1);
}
switch (isf_sharedFeatureType)
{
case FeatHdrRecord.SHAREDFEATURES_ISFPROTECTION:
sharedFeature = new FeatProtection(in1);
break;
case FeatHdrRecord.SHAREDFEATURES_ISFFEC2:
sharedFeature = new FeatFormulaErr2(in1);
break;
case FeatHdrRecord.SHAREDFEATURES_ISFFACTOID:
sharedFeature = new FeatSmartTag(in1);
break;
default:
System.Console.WriteLine("Unknown Shared Feature " + isf_sharedFeatureType + " found!");
break;
}
}
示例3: DimensionsRecord
/**
* Constructs a Dimensions record and Sets its fields appropriately.
* @param in the RecordInputstream to Read the record from
*/
public DimensionsRecord(RecordInputStream in1)
{
field_1_first_row = in1.ReadInt();
field_2_last_row = in1.ReadInt();
field_3_first_col = in1.ReadShort();
field_4_last_col = in1.ReadShort();
field_5_zero = in1.ReadShort();
}
示例4: DVALRecord
/**
* Constructs a DVAL record and Sets its fields appropriately.
*
* @param in the RecordInputstream to Read the record from
*/
public DVALRecord(RecordInputStream in1)
{
this.field_1_options = in1.ReadShort();
this.field_2_horiz_pos = in1.ReadInt();
this.field_3_vert_pos = in1.ReadInt();
this.field_cbo_id = in1.ReadInt();
this.field_5_dv_no = in1.ReadInt();
}
示例5: ChartRecord
/**
* Constructs a Chart record and Sets its fields appropriately.
*
* @param in the RecordInputstream to Read the record from
*/
public ChartRecord(RecordInputStream in1)
{
field_1_x = in1.ReadInt();
field_2_y = in1.ReadInt();
field_3_width = in1.ReadInt();
field_4_height = in1.ReadInt();
}
示例6: ChartFormatRecord
/**
* Constructs a ChartFormatRecord record and Sets its fields appropriately.
* @param in the RecordInputstream to Read the record from
*/
public ChartFormatRecord(RecordInputStream in1)
{
field1_x_position = in1.ReadInt();
field2_y_position = in1.ReadInt();
field3_width = in1.ReadInt();
field4_height = in1.ReadInt();
field5_grbit = in1.ReadShort();
}
示例7: FeatProtection
public FeatProtection(RecordInputStream in1)
{
fSD = in1.ReadInt();
passwordVerifier = in1.ReadInt();
title = StringUtil.ReadUnicodeString(in1);
securityDescriptor = in1.ReadRemainder();
}
示例8: AxisRecord
/**
* Constructs a Axis record and Sets its fields appropriately.
*
* @param in the RecordInputstream to Read the record from
*/
public AxisRecord(RecordInputStream in1)
{
field_1_axisType = in1.ReadShort();
field_2_reserved1 = in1.ReadInt();
field_3_reserved2 = in1.ReadInt();
field_4_reserved3 = in1.ReadInt();
field_5_reserved4 = in1.ReadInt();
}
示例9: AreaFormatRecord
/**
* Constructs a AreaFormat record and s its fields appropriately.
*
* @param in the RecordInputstream to Read the record from
*/
public AreaFormatRecord(RecordInputStream in1)
{
field_1_foregroundColor = in1.ReadInt();
field_2_backgroundColor = in1.ReadInt();
field_3_pattern = in1.ReadShort();
field_4_formatFlags = in1.ReadShort();
field_5_forecolorIndex = in1.ReadShort();
field_6_backcolorIndex = in1.ReadShort();
}
示例10: LegendRecord
/**
* Constructs a Legend record and Sets its fields appropriately.
*
* @param in the RecordInputstream to Read the record from
*/
public LegendRecord(RecordInputStream in1)
{
field_1_xAxisUpperLeft = in1.ReadInt();
field_2_yAxisUpperLeft = in1.ReadInt();
field_3_xSize = in1.ReadInt();
field_4_ySize = in1.ReadInt();
field_5_type = (byte)in1.ReadByte();
field_6_spacing = (byte)in1.ReadByte();
field_7_options = in1.ReadShort();
}
示例11: IndexRecord
/**
* Constructs an Index record and Sets its fields appropriately.
* @param in the RecordInputstream to Read the record from
*/
public IndexRecord(RecordInputStream in1)
{
field_5_dbcells =
new List<int>(DBCELL_CAPACITY); // initial capacity of 30
field_1_zero = in1.ReadInt();
field_2_first_row = in1.ReadInt();
field_3_last_row_add1 = in1.ReadInt();
field_4_ibXF = in1.ReadInt();
while (in1.Remaining > 0)
{
// Console.WriteLine("Getting " + k);
field_5_dbcells.Add(in1.ReadInt());
}
}
示例12: RKRecord
/**
* Constructs a RK record and Sets its fields appropriately.
* @param in the RecordInputstream to Read the record from
*/
public RKRecord(RecordInputStream in1)
{
field_1_row = in1.ReadUShort();
field_2_col = in1.ReadUShort();
field_3_xf_index = in1.ReadShort();
field_4_rk_number = in1.ReadInt();
}
示例13: LabelSSTRecord
/**
* Constructs an LabelSST record and Sets its fields appropriately.
* @param in the RecordInputstream to Read the record from
*/
public LabelSSTRecord(RecordInputStream in1)
{
field_1_row = in1.ReadUShort();
field_2_column = in1.ReadUShort();
field_3_xf_index = in1.ReadShort();
field_4_sst_index = in1.ReadInt();
}
示例14: TickRecord
/**
* Constructs a Tick record and Sets its fields appropriately.
*
* @param in the RecordInputstream to Read the record from
*/
public TickRecord(RecordInputStream in1)
{
field_1_majorTickType = (byte)in1.ReadByte();
field_2_minorTickType = (byte)in1.ReadByte();
field_3_labelPosition = (byte)in1.ReadByte();
field_4_background = (byte)in1.ReadByte();
field_5_labelColorRgb = (byte)in1.ReadInt();
field_6_zero1 = in1.ReadInt();
field_7_zero2 = in1.ReadInt();
field_8_zero3 = in1.ReadInt();
field_9_zero4 = in1.ReadInt();
field_10_options = in1.ReadShort();
field_11_tickColor = in1.ReadShort();
field_12_zero5 = in1.ReadShort();
}
示例15: LineFormatRecord
/**
* Constructs a LineFormat record and Sets its fields appropriately.
*
* @param in the RecordInputstream to Read the record from
*/
public LineFormatRecord(RecordInputStream in1)
{
field_1_lineColor = in1.ReadInt();
field_2_linePattern = in1.ReadShort();
field_3_weight = in1.ReadShort();
field_4_format = in1.ReadShort();
field_5_colourPaletteIndex = in1.ReadShort();
}