Aspose.Cells.Examples.CSharp.Data.Processing.TracingDependents.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:1
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
            
            Workbook workbook = new Workbook(dataDir + "Book1.xlsx");
            Cells cells = workbook.Worksheets[0].Cells;
            Cell cell = cells["B2"];

           Cell[] ret = cell.GetDependents(true);

            foreach (Cell c in cell.GetDependents(true))
            {
                Console.WriteLine(c.Name);
            }
            // ExEnd:1
            Console.ReadKey();
        }
    }
TracingDependents