We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

NamedRange.ShowDependents Method

Draws tracer arrows to the direct dependents of the NamedRange control.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

Object ShowDependents(
	Object Remove


Type: System.Object
true to remove one level of tracer arrows to direct dependents; false to expand one level of tracer arrows. The default value is false.

Return Value

Type: System.Object

The NamedRange control must be a single cell.

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

The following code example makes cell A1 a dependent of a NamedRange. The example then uses the ShowDependents method to draw an arrow between the NamedRange and the dependent cell, and calls the NavigateArrow method to select the dependent cell.

This example is for a document-level customization.

private void DisplayAndSelectDependents()
    Microsoft.Office.Tools.Excel.NamedRange namedRange1 =
        this.Controls.AddNamedRange(this.Range["C1", missing],
    namedRange1.Value2 = "Smith";

    this.Range["A1", missing].Value2 = "=" +
        namedRange1.Address[false, true,
        Excel.XlReferenceStyle.xlA1, false, missing];

    namedRange1.NavigateArrow(false, 1, missing);