Share via


XmlMappedRange.ShowDependents Method

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

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

Syntax

'Declaration
Function ShowDependents ( _
    Remove As Object _
) As Object
Object ShowDependents(
    Object Remove
)

Parameters

  • 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

Remarks

Optional Parameters

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

Examples

The following code example makes cell A1 a dependent of an XmlMappedRange. The example then uses the ShowDependents method to draw an arrow between an XmlMappedRange and the dependent cell, and calls the NavigateArrow method to select the dependent cell. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

Private Sub DisplayAndSelectDependent()
    Me.CustomerLastNameCell.Value2 = "Smith"

    Me.Range("A1").Value2 = "=" & _
        Me.CustomerLastNameCell.Address(False, True, _
        Excel.XlReferenceStyle.xlA1, False)

    Me.CustomerLastNameCell.ShowDependents(False)
    Me.CustomerLastNameCell.NavigateArrow(False, 1)
End Sub
private void DisplayAndSelectDependent()
{
    this.CustomerLastNameCell.Value2 = "Smith";

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

    this.CustomerLastNameCell.ShowDependents(false);
    this.CustomerLastNameCell.NavigateArrow(false, 1, missing);
}

.NET Framework Security

See Also

Reference

XmlMappedRange Interface

Microsoft.Office.Tools.Excel Namespace