• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class WorksheetChartsCollection

Represents a collection of charts on a Worksheet.

Inheritance
object
SheetChartsCollection
WorksheetChartsCollection
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Spreadsheet.Chart
Assembly: DRIT.Spreadsheet.dll
Syntax
public class WorksheetChartsCollection : SheetChartsCollection

Constructors

WorksheetChartsCollection(Worksheet)

Initializes a new WorksheetChartsCollection for the supplied workbook data.

Declaration
public WorksheetChartsCollection(Worksheet worksheet)
Parameters
Type Name Description
Worksheet worksheet

Properties

ChartsByName

Exposes the sheet chart associated with WorksheetChartsCollection.

Declaration
public Dictionary<string, SheetChart> ChartsByName { get; }
Property Value
Type Description
Dictionary<string, SheetChart>

The sheet chart returned by the operation.

this[int]

Provides indexed access to values in the WorksheetChartsCollection.

Declaration
public SheetChart this[int index] { get; }
Parameters
Type Name Description
int index
Property Value
Type Description
SheetChart

The this returned by the operation.

Methods

Add<TC>(int, string, string, PointDoubleUnit)

Adds the supplied item to the WorksheetChartsCollection.

Declaration
public TC Add<TC>(int id, string name, string cellLabel, PointDoubleUnit cellOffset) where TC : SheetChart
Parameters
Type Name Description
int id
string name
string cellLabel
PointDoubleUnit cellOffset
Returns
Type Description
TC

The add returned by the operation.

Type Parameters
Name Description
TC

Add<TC>(string)

Adds the supplied item to the WorksheetChartsCollection.

Declaration
public TC Add<TC>(string cellLabel) where TC : SheetChart
Parameters
Type Name Description
string cellLabel

The cell label used by the operation.

Returns
Type Description
TC

The add returned by the operation.

Type Parameters
Name Description
TC

Get<TC>(string)

Retrieves the requested value from the WorksheetChartsCollection.

Declaration
public TC Get<TC>(string name) where TC : SheetChart
Parameters
Type Name Description
string name

The name used by the operation.

Returns
Type Description
TC

The get returned by the operation.

Type Parameters
Name Description
TC
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX