Aspose.Words.Examples.CSharp.Loading_Saving.SectionSplitter.VisitTableEnd C# (CSharp) Метод

VisitTableEnd() публичный Метод

public VisitTableEnd ( Table table ) : VisitorAction
table Table
Результат VisitorAction
        public override VisitorAction VisitTableEnd(Table table)
        {
            if (IsCompositeAcrossPage(table))
            {
                // Copy any header rows to other pages.
                Stack stack = new Stack(table.Rows.ToArray());

                foreach (Table cloneTable in SplitComposite(table))
                {
                    foreach (Row row in stack)
                    {
                        if (row.RowFormat.HeadingFormat)
                            cloneTable.PrependChild(row.Clone(true));
                    }
                }
            }

            return VisitorAction.Continue;
        }