Class ChartPosRecord
This record defines manual position information for the main-axis plot area, legend, and attached text (data labels, axis labels, and chart title). The record data depends on the record's use, as shown in the following sections.
Inheritance
Inherited Members
Namespace: Syncfusion.XlsIO.Parser.Biff_Records.Charts
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
[CLSCompliant(false)]
[Biff(TBIFFRecord.ChartPos)]
public class ChartPosRecord : BiffRecordRaw, ICloneable, IBiffStorage
Constructors
ChartPosRecord()
Default constructor, initializes all fields with default values.
Declaration
public ChartPosRecord()
ChartPosRecord(Int32)
Reserved for record's internal data array.
Declaration
public ChartPosRecord(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. |
ChartPosRecord(Stream, out Int32)
Read / Initialize constructor.
Declaration
public ChartPosRecord(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 = 20
Field Value
Type |
---|
System.Int32 |
Properties
BottomRight
Declaration
public ushort BottomRight { get; set; }
Property Value
Type |
---|
System.UInt16 |
MaximumRecordSize
Maximum possible size of the record.
Declaration
public override int MaximumRecordSize { get; }
Property Value
Type |
---|
System.Int32 |
Overrides
MinimumRecordSize
Minimum possible size of the record.
Declaration
public override int MinimumRecordSize { get; }
Property Value
Type |
---|
System.Int32 |
Overrides
TopLeft
Declaration
public ushort TopLeft { get; set; }
Property Value
Type |
---|
System.UInt16 |
X1
X coordinate of the top left corner.
Declaration
public int X1 { get; set; }
Property Value
Type |
---|
System.Int32 |
X2
X coordinate of the bottom right corner.
Declaration
public int X2 { get; set; }
Property Value
Type |
---|
System.Int32 |
Y1
Y coordinate of the top left corner.
Declaration
public int Y1 { get; set; }
Property Value
Type |
---|
System.Int32 |
Y2
Y coordinate of the bottom right corner.
Declaration
public int Y2 { 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. |