Exemple #1
0
        internal void ApplyTableProperties(Table table, DocxNode node)
        {
            TableProperties tableProp = new TableProperties();

            TableStyle tableStyle = new TableStyle()
            {
                Val = DocxTableProperties.tableGridName
            };

            tableProp.Append(tableStyle);

            DocxTableStyle style = new DocxTableStyle();

            style.Process(tableProp, this, node);

            table.AppendChild(tableProp);

            int count = GetTdCount(node);

            rowSpanInfo = new Dictionary <int, int>();

            if (count > 0)
            {
                TableGrid tg = new TableGrid();

                for (int i = 0; i < count; i++)
                {
                    rowSpanInfo.Add(i, 0);
                    tg.AppendChild(new GridColumn());
                }

                table.AppendChild(tg);
            }
        }
        internal void ApplyTableProperties(Table table, DocxNode node)
		{
			TableProperties tableProp = new TableProperties();
			
			TableStyle tableStyle = new TableStyle() { Val = DocxTableProperties.tableGridName };
			
			tableProp.Append(tableStyle);
			
			DocxTableStyle style = new DocxTableStyle();
			style.Process(tableProp, this, node);
			
			table.AppendChild(tableProp);
			
			int count = GetTdCount(node);
			
			rowSpanInfo = new Dictionary<int, int>();
			
			if (count > 0)
			{
				TableGrid tg = new TableGrid();
				
				for (int i = 0; i < count; i++)
				{
					rowSpanInfo.Add(i, 0);
					tg.AppendChild(new GridColumn());
				}
				
				table.AppendChild(tg);
			}
		}