public void UpdateFieldsInRange()
{
Document doc = new Document();
//ExStart
//ExFor:Range.UpdateFields
//ExSummary:Demonstrates how to update document fields in the body of the first section only.
doc.FirstSection.Body.Range.UpdateFields();
//ExEnd
}