Class BiffRecordPosAttribute
Attribute of records class members that provide information about location of the variable in binary data. It also indicates type to which the data must be converted to.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.Parser.Biff_Records
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
[AttributeUsage(AttributeTargets.Field)]
public sealed class BiffRecordPosAttribute : Attribute, _Attribute, IComparable
Constructors
BiffRecordPosAttribute(Int32, TFieldType)
Creates attribute by field position and field type. Field size is zero and field is unsigned.
Declaration
public BiffRecordPosAttribute(int pos, TFieldType type)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pos | Position of the filed data in the record data array. |
TFieldType | type | Type of the field. |
BiffRecordPosAttribute(Int32, Int32)
Creates attribute for unsigned field by field position and size.
Declaration
public BiffRecordPosAttribute(int pos, int size)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pos | Position of the filed data in the record data array. |
System.Int32 | size | Size of the field data or position of the bit in the byte. |
BiffRecordPosAttribute(Int32, Int32, TFieldType)
Creates attribute for unsigned field by field position, size, and field type.
Declaration
public BiffRecordPosAttribute(int pos, int size, TFieldType type)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pos | Position of the filed data in the record data array. |
System.Int32 | size | Size of the field data or position of the bit in the byte. |
TFieldType | type | Type of the field. |
BiffRecordPosAttribute(Int32, Int32, Boolean)
Creates attribute for integer field by its position, size, and signed flag.
Declaration
public BiffRecordPosAttribute(int pos, int size, bool isSigned)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pos | Position of the filed data in the record data array. |
System.Int32 | size | Size of the field data or position of the bit in the byte. |
System.Boolean | isSigned | Is field signed or not? |
BiffRecordPosAttribute(Int32, Int32, Boolean, TFieldType)
Creates attribute by field position, size, signed flag, and field type.
Declaration
public BiffRecordPosAttribute(int pos, int size, bool isSigned, TFieldType type)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pos | Position of the filed data in the record data array. |
System.Int32 | size | Size of the field data or position of the bit in the byte. |
System.Boolean | isSigned | Is field signed or not? |
TFieldType | type | Type of the field. |
Properties
IsBit
Read-only. Returns True if attribute describes bit field.
Declaration
public bool IsBit { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsFloat
Read-only. Returns True if attribute describes float field.
Declaration
public bool IsFloat { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsOEMString
Read-only. Returns True if this attribute describes OEM string.
Declaration
public bool IsOEMString { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsOEMString16Bit
Read-only. Returns True if this attribute describes OEM string with 16 bit length field.
Declaration
public bool IsOEMString16Bit { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsSigned
Read-only. Returns True if attribute describes signed field.
Declaration
public bool IsSigned { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsString
Read-only. Returns True if attribute describes string field.
Declaration
public bool IsString { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsString16Bit
Indicates whether attribute describes string field with 16 bit length.
Declaration
public bool IsString16Bit { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Position
Read-only. Returns position of the field in the record data.
Declaration
public int Position { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
SizeOrBitPosition
Read-only. Returns size of the filed or bit position (for bit fields).
Declaration
public int SizeOrBitPosition { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
CompareTo(Object)
Compares the object
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Int32 |