My following C# code in a desktop app on Windows 10
is using office-interop to fetch text from MS WORD 2013
that are bold. Can we achieve the same in a UWP app; if so how?
Microsoft.Office.Interop.Word.Range rng = docs.Content;
Microsoft.Office.Interop.Word.Find find = rng.Find;
find.Font.Bold = 1;
find.Format = true;
List<string> bolds = new List<string>();
while (find.Execute())
{
bolds.Add(rng.Text);
}