Microsoft.Office.Interop.Word.Document doc =
wordApp.Documents.OpenNoRepairDialog(FileName: Filepath, ConfirmConversions: false, ReadOnly: true,
AddToRecentFiles: false, NoEncodingDialog: true);
Microsoft.Office.Interop.Word.Range r = doc.Paragraphs[par].Range;
if (r.Bold == -1)
{
string
ptext=r.Text.Trim();
}
/// Result
This is bold
No comments:
Post a Comment