textRange = table[fornituraHwSw.Count + 1, 0].AddParagraph().AppendText("TOTALE"); table[fornituraHwSw.Count + 1, 0].Paragraphs[0].ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Center;
IWParagraph para = table[0, 0].AddParagraph();
para.ParagraphFormat.HorizontalAlignment = Syncfusion.DocIO.DLS.HorizontalAlignment.Center; |
Hi,I use this code to insert text into a table cell, but the alignment remains justified.textRange = table[fornituraHwSw.Count + 1, 0].AddParagraph().AppendText("TOTALE"); table[fornituraHwSw.Count + 1, 0].Paragraphs[0].ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Center;
textRange = table[fornituraHwSw.Count + 1, 0].AddParagraph().AppendText("TOTALE");
textRange.OwnerParagraph.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Center; |
table.ApplyHorizontalMerge(fornituraHwSw.Count + 1, 0, 1);