A collection of instances in a workbook.

Inheritance

Implements
  • ICollection<NamedReference>
  • IEnumerable<NamedReference>
  • IEnumerable

Gets the number of named references in the collection.

public int Count { get; }

Gets the named reference at the specified index.

public NamedReference this[int index] { get; }

Gets the workbook associated with this collection.

public Workbook Workbook { get; }

Adds a named reference with a scope of the collection's associated to the collection.

public NamedReference Add(string name, string formula)

Parameters

  • name: string
  • formula: string

Returns any

Add(string, string, CellReferenceMode)

Section titled "Add(string, string, CellReferenceMode)"

Adds a named reference with a scope of the collection's associated to the collection.

public NamedReference Add(string name, string formula, CellReferenceMode cellReferenceMode)

Parameters

  • name: string
  • formula: string
  • cellReferenceMode: CellReferenceMode

Returns any

Add(string, string, CellReferenceMode, Worksheet)

Section titled "Add(string, string, CellReferenceMode, Worksheet)"

Adds a named reference with a scope of a worksheet to the collection.

public NamedReference Add(string name, string formula, CellReferenceMode cellReferenceMode, Worksheet worksheet)

Parameters

  • name: string
  • formula: string
  • cellReferenceMode: CellReferenceMode
  • worksheet: Worksheet

Returns any

Adds a named reference with a scope of a worksheet to the collection.

public NamedReference Add(string name, string formula, Worksheet worksheet)

Parameters

  • name: string
  • formula: string
  • worksheet: Worksheet

Returns any

Clears all named references from the collection.

public void Clear()

Returns any

Determines whether a named reference is in the collection.

public bool Contains(NamedReference namedReference)

Parameters

  • namedReference: NamedReference

Returns any

Finds a named reference in the collection with a scope of the collection's associated .

public NamedReference Find(string name)

Parameters

  • name: string

Returns any

Finds a named reference in the collection with a scope of the specified worksheet.

public NamedReference Find(string name, Worksheet worksheetScope)

Parameters

  • name: string
  • worksheetScope: Worksheet

Returns any

Finds all named references in the collection with the specified name.

public NamedReference[] FindAll(string name)

Parameters

  • name: string

Returns any

Removes the specified named reference from the collection.

public bool Remove(NamedReference namedReference)

Parameters

  • namedReference: NamedReference

Returns any

Removes the named reference at the specified index in the collection.

public void RemoveAt(int index)

Parameters

  • index: int

Returns any