A collection of cells or regions which are all on the same .

Inheritance

Implements
  • ICollection<WorksheetCell>
  • IEnumerable<WorksheetCell>
  • ICollection<WorksheetRegion>
  • IEnumerable<WorksheetRegion>
  • IEnumerable

constructor

public WorksheetReferenceCollection(Worksheet worksheet)

Returns WorksheetReferenceCollection

constructor

public WorksheetReferenceCollection(Worksheet worksheet, string references)

Returns WorksheetReferenceCollection

constructor

public WorksheetReferenceCollection(WorksheetCell cell)

Returns WorksheetReferenceCollection

constructor

public WorksheetReferenceCollection(WorksheetRegion region)

Returns WorksheetReferenceCollection

Gets the number of cells contains in all references in this collection.

public int CellsCount { get; }

Gets the worksheet for which this collection contains references.

public Worksheet Worksheet { get; }

Adds a cell to the collection of references.

public void Add(WorksheetCell cell)

Parameters

  • cell: WorksheetCell

Returns any

Adds a region to the collection of references.

public void Add(WorksheetRegion region)

Parameters

  • region: WorksheetRegion

Returns any

Adds a list of references to the collection of references.

public void Add(string references)

Parameters

  • references: string

Returns any

Adds a list of references to the collection of references.

public void Add(string references, CellReferenceMode cellReferenceMode)

Parameters

  • references: string
  • cellReferenceMode: CellReferenceMode

Returns any

Clears all references from the collection.

public void Clear()

Returns any

Determines whether the collection contains the specified cell.

public bool Contains(WorksheetCell cell)

Parameters

  • cell: WorksheetCell

Returns any

Determines whether the collection contains the specified region.

public bool Contains(WorksheetRegion region)

Parameters

  • region: WorksheetRegion

Returns any

Gets an enumerator which returns all and instances in the collection of references.

public IEnumerator GetEnumerator()

Returns any

Removes a cell from the collection of references.

public bool Remove(WorksheetCell cell)

Parameters

  • cell: WorksheetCell

Returns any

Removes a region from the collection of references.

public bool Remove(WorksheetRegion region)

Parameters

  • region: WorksheetRegion

Returns any

Removes a list of references from the collection of references.

public bool Remove(string references)

Parameters

  • references: string

Returns any

Removes a list of references from the collection of references.

public bool Remove(string references, CellReferenceMode cellReferenceMode)

Parameters

  • references: string
  • cellReferenceMode: CellReferenceMode

Returns any

Returns the string value represent the cell and region addresses in the collection.

public override string ToString()

Returns any

Returns the string value represent the cell and region addresses in the collection.

public string ToString(CellReferenceMode cellReferenceMode)

Parameters

  • cellReferenceMode: CellReferenceMode

Returns any