ApiExamples.ExTable.RowFormatProperties C# (CSharp) Метод

RowFormatProperties() приватный Метод

private RowFormatProperties ( ) : void
Результат void
        public void RowFormatProperties()
        {
            //ExStart
            //ExFor:RowFormat
            //ExFor:Row.RowFormat
            //ExId:RowFormatProperties
            //ExSummary:Shows how to modify formatting of a table row.
            Document doc = new Document(MyDir + "Table.Document.doc");
            Table table = (Table)doc.GetChild(NodeType.Table, 0, true);

            // Retrieve the first row in the table.
            Row firstRow = table.FirstRow;

            // Modify some row level properties.
            firstRow.RowFormat.Borders.LineStyle = LineStyle.None;
            firstRow.RowFormat.HeightRule = HeightRule.Auto;
            firstRow.RowFormat.AllowBreakAcrossPages = true;
            //ExEnd

            doc.Save(MyDir + @"\Artifacts\Table.RowFormat.doc");

            doc = new Document(MyDir + @"\Artifacts\Table.RowFormat.doc");
            table = (Table)doc.GetChild(NodeType.Table, 0, true);
            Assert.AreEqual(LineStyle.None, table.FirstRow.RowFormat.Borders.LineStyle);
            Assert.AreEqual(HeightRule.Auto, table.FirstRow.RowFormat.HeightRule);
            Assert.True(table.FirstRow.RowFormat.AllowBreakAcrossPages);
        }