How to identify the particular fields and check whether is bolded or not from the word documet using C#

How to identify the particular fields and check whether is bolded or not from the word documet using C#.
I need to identify the particular fields and change the style. How to achive this?

Hi,

Thanks for your inquiry. You can iterate through the Fields collection as follows:

foreach(Field field in doc.Range.Fields)
{
    if (field.Type == FieldType.FieldMergeField)
    {
        // do something useful
    }
}

Secondly, a complete field in a Microsoft Word document is a complex structure consisting of a field start character, field code, field separator character, field result and field end character. Some fields only have field start, field code and field end. You can determine Font (bold for example) of every ‘Run’ node which is enclosed in between field start and field end characters.

Best regards,