Class ChartChartRecord
The CHART record marks the start of the chart data substream in the workbook BIFF stream. This record defines the location of the chart on the display and its overall size. The X and Y fields define the position of the upper-left corner of the bounding rectangle that encompasses the chart. The position of the chart is referenced to the page. The Width and Height fields define the overall size (the bounding rectangle) of the chart, including title, pointing arrows, axis labels, etc. The position and size are specified in points (1/72 inch), using a fixed point format (two bytes integer, two bytes fraction).
Inheritance
Namespace: Syncfusion.XlsIO.Parser.Biff_Records.Charts
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
[Biff]
public class ChartChartRecord : BiffRecordRaw, ICloneable, IBiffStorage
Constructors
ChartChartRecord()
Default constructor, initializes all fields with default values.
Declaration
public ChartChartRecord()
ChartChartRecord(Int32)
Reserved for record's internal data array.
Declaration
public ChartChartRecord(int iReserve)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | iReserve | Amount of bytes for data array. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | If amount of bytes requested is less than zero. |
ChartChartRecord(Stream, out Int32)
Read / initialize constructor.
Declaration
public ChartChartRecord(Stream stream, out int itemSize)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Stream from which record data should be read. |
System.Int32 | itemSize | Size of read item. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If stream is not specified. |
System.ApplicationException | If stream does not support read or seek operations. |
Fields
DEF_RECORD_SIZE
Correct size of the record.
Declaration
public const int DEF_RECORD_SIZE = 16
Field Value
Type |
---|
System.Int32 |
Properties
Height
Y-size. (1/72 inch), used a fixed point format (two bytes integer, two bytes fraction).
Declaration
public int Height { get; set; }
Property Value
Type |
---|
System.Int32 |
MaximumRecordSize
Read-only. Returns maximum possible size of record's internal data array.
Declaration
public override int MaximumRecordSize { get; }
Property Value
Type |
---|
System.Int32 |
Overrides
MinimumRecordSize
Read-only. Returns minimum possible size of record's internal data array.
Declaration
public override int MinimumRecordSize { get; }
Property Value
Type |
---|
System.Int32 |
Overrides
Width
X-size. (1/72 inch), used a fixed point format (two bytes integer, two bytes fraction).
Declaration
public int Width { get; set; }
Property Value
Type |
---|
System.Int32 |
X
X-position of upper-left corner.
Declaration
public int X { get; set; }
Property Value
Type |
---|
System.Int32 |
Y
Y-position of upper-left corner.
Declaration
public int Y { get; set; }
Property Value
Type |
---|
System.Int32 |
Methods
GetStoreSize(ExcelVersion)
Declaration
public override int GetStoreSize(ExcelVersion version)
Parameters
Type | Name | Description |
---|---|---|
ExcelVersion | version |
Returns
Type |
---|
System.Int32 |
Overrides
ParseStructure(DataProvider, Int32, Int32, 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. |
System.Int32 | iOffset | Offset to the record's data. |
System.Int32 | iLength | Length of the record's data. |
ExcelVersion | version | Excel version used for infill. |