NamedRange.ShowPrecedents Method
Visual Studio 2010
Draws tracer arrows to the direct precedents of the NamedRange control.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
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.
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 precedent of a NamedRange. The example then uses the ShowPrecedents method to draw an arrow between the NamedRange and the precedent cell.
This example is for a document-level customization.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.