//To iterate the paragraphs of the cell foreach (WParagraph paragraph in cell.Paragraphs) { //To iterate the child entities of the paragraph foreach (Entity entity in paragraph.ChildEntities) { //To Access the text range if (entity is WTextRange) { //To measure the string width float textWidth = MeasureString(entity as WTextRange); if (textWidth > maxColumnWidth) maxColumnWidth = textWidth; } } } |