다음을 통해 공유


XmlMappedRange.ShowDependents(Object) Method

Definition

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

public object ShowDependents (object Remove);
abstract member ShowDependents : obj -> obj
Public Function ShowDependents (Optional Remove As Object) As Object

Parameters

Remove
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.

Returns

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 void DisplayAndSelectDependent()
{
    this.CustomerLastNameCell.Value2 = "Smith";

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

    this.CustomerLastNameCell.ShowDependents(false);
    this.CustomerLastNameCell.NavigateArrow(false, 1);
}
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

Remarks

Optional Parameters

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

Applies to