, but its not working.table[j, i + 1].TextFrame.Paragraphs[0].TextRanges[0].TextCapType = TextCapType.Small;
Can you please guide us.
, but its not working.table[j, i + 1].TextFrame.Paragraphs[0].TextRanges[0].TextCapType = TextCapType.Small;
string text = table[i, j].TextFrame.Paragraphs[0].Text;
table[i, j].TextFrame.Paragraphs[0].Text = CapitalizeEachWord(text);
...
public static string CapitalizeEachWord(string sentence)
{
var sa = sentence.Split(' ');
for (var i = 0; i < sa.Length; i++)
sa[i] = sa[i].Substring(0, 1).ToUpper() + sa[i].Substring(1).ToLower();
var sout = string.Join(" ", sa);
return sout;
}