Class ObjSubRecord
Base class for all obj subrecords.
Inheritance
System.Object
ObjSubRecord
Implements
System.ICloneable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.XlsIO.Parser.Biff_Records.ObjRecords
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public abstract class ObjSubRecord : ICloneable
Constructors
ObjSubRecord(TObjSubRecordType)
Initializes new instance.
Declaration
protected ObjSubRecord(TObjSubRecordType type)
Parameters
Type | Name | Description |
---|---|---|
TObjSubRecordType | type | Type of the subrecord. |
ObjSubRecord(TObjSubRecordType, UInt16, Byte[])
Initializes new instance.
Declaration
[CLSCompliant(false)]
protected ObjSubRecord(TObjSubRecordType type, ushort length, byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
TObjSubRecordType | type | Type of the subrecord. |
System.UInt16 | length | Length of the subrecord's data. |
System.Byte[] | buffer | Array that contains subrecord's data. |
Fields
HeaderSize
Size of the header data.
Declaration
protected const int HeaderSize = 4
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
Length
Length of the subrecord's data.
Declaration
[CLSCompliant(false)]
public ushort Length { get; protected set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Type
Type of the subrecord.
Declaration
public TObjSubRecordType Type { get; }
Property Value
Type | Description |
---|---|
TObjSubRecordType |
Methods
Clone()
Clones current objects.
Declaration
public virtual object Clone()
Returns
Type | Description |
---|---|
System.Object | Returns instance of cloned object. |
FillArray(DataProvider, Int32)
Fills array with binary representation of the subrecord.
Declaration
public virtual void FillArray(DataProvider provider, int iOffset)
Parameters
Type | Name | Description |
---|---|---|
DataProvider | provider | Object that provides access to the data. |
System.Int32 | iOffset | Offset in the buffer to copy data to. |
GetStoreSize(ExcelVersion)
Size of the required storage space. Read-only.
Declaration
public abstract int GetStoreSize(ExcelVersion version)
Parameters
Type | Name | Description |
---|---|---|
ExcelVersion | version |
Returns
Type | Description |
---|---|
System.Int32 |
Parse(Byte[])
Parses byte array.
Declaration
protected abstract void Parse(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | Array to parse. |
Serialize(DataProvider, Int32)
Serializes record's data.
Declaration
protected virtual void Serialize(DataProvider provider, int iOffset)
Parameters
Type | Name | Description |
---|---|---|
DataProvider | provider | Provider to serialize into. |
System.Int32 | iOffset | Offset to start serialization from. |
Implements
System.ICloneable