Class WriteProtection
This record indicates that write protection is used and read-only mode is recommended.
Inherited Members
Namespace: Syncfusion.XlsIO.Parser.Biff_Records
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
[CLSCompliant(false)]
[Biff(TBIFFRecord.WriteProtection)]
public class WriteProtection : BiffRecordRaw, ICloneable, IBiffStorage
Constructors
WriteProtection()
Default constructor.
Declaration
public WriteProtection()
WriteProtection(Stream, out int)
Read / initialize constructor.
Declaration
public WriteProtection(Stream stream, out int itemSize)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | Stream from which record data should be read. |
| int | itemSize | Size of read item. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | When stream is not specified. |
| ApplicationException | When stream does not support read or seek operations. |
WriteProtection(int)
Reserved for record's internal data array.
Declaration
public WriteProtection(int iReserve)
Parameters
| Type | Name | Description |
|---|---|---|
| int | iReserve | Amount of bytes for the data array. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | If amount of bytes requested is less than zero. |
Properties
MaximumRecordSize
Read-only. Maximum possible size of the record.
Declaration
public override int MaximumRecordSize { get; }
Property Value
| Type |
|---|
| int |
Overrides
Syncfusion.XlsIO.Parser.Biff_Records.BiffRecordRaw.MaximumRecordSize
Methods
GetStoreSize(ExcelVersion)
Size of the required storage space. Read-only.
Declaration
public override int GetStoreSize(ExcelVersion version)
Parameters
| Type | Name | Description |
|---|---|---|
| ExcelVersion | version |
Returns
| Type |
|---|
| int |
Overrides
ParseStructure(DataProvider, int, int, ExcelVersion)
Parse structure of record. Convert Data buffer to special values according to record specification.
Declaration
public override void ParseStructure(DataProvider provider, int iOffset, int iLength, ExcelVersion version)
Parameters
| Type | Name | Description |
|---|---|---|
| DataProvider | provider | Object that provides access to the data. |
| int | iOffset | Offset to the record's data. |
| int | iLength | Length of the record's data. |
| ExcelVersion | version | Excel version used for infill. |