共用方式為


XmlMappedRange.ShowPrecedents(Object) Method

Definition

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

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

Parameters

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

Returns

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 void DisplayPrecedents()
{
    this.Range["A1"].Value2 = 1710;
    this.CustomerAddress1Cell.Value2 = "=A1";
    this.CustomerAddress1Cell.ShowPrecedents(false);
}
Private Sub DisplayPrecedents()
    Me.Range("A1").Value2 = 1710
    Me.CustomerAddress1Cell.Value2 = "=A1"
    Me.CustomerAddress1Cell.ShowPrecedents(False)
End Sub

Remarks

Optional Parameters

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

Applies to