Partager via


XmlMappedRange.ShowPrecedents Method

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

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

Syntax

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

Parameters

  • Remove
    Type: System.Object

    true to remove one level of tracer arrows to direct precedents; 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 precedent of an XmlMappedRange. The example then uses the ShowPrecedents method to draw an arrow between an XmlMappedRange and the precedent cell. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerAddress1Cell with a corresponding schema element of type int.

Private Sub DisplayPrecedents()
    Me.Range("A1").Value2 = 1710
    Me.CustomerAddress1Cell.Value2 = "=A1" 
    Me.CustomerAddress1Cell.ShowPrecedents(False)
End Sub
private void DisplayPrecedents()
{
    this.Range["A1"].Value2 = 1710;
    this.CustomerAddress1Cell.Value2 = "=A1";
    this.CustomerAddress1Cell.ShowPrecedents(false);
}

.NET Framework Security

See Also

Reference

XmlMappedRange Interface

Microsoft.Office.Tools.Excel Namespace