Aspose.Words.Examples.CSharp.Programming_Documents.Working_With_Document.AddRemoveColumn.Column.GetColumnCells C# (CSharp) Method

GetColumnCells() private method

Provides an up-to-date collection of cells which make up the column represented by this facade.
private GetColumnCells ( ) : ArrayList
return System.Collections.ArrayList
            private ArrayList GetColumnCells()
            {
                ArrayList columnCells = new ArrayList();

                foreach (Row row in mTable.Rows)
                {
                    Cell cell = row.Cells[mColumnIndex];
                    if (cell != null)
                        columnCells.Add(cell);
                }

                return columnCells;
            }