Table of Contents

Method RefreshBoundControls

Namespace
DocWright.Dom.ContentControls
Assembly
DocWright.Dom.dll

RefreshBoundControls(bool)

Refreshes every bound control in the document from the custom XML, which is the direction Word treats as authoritative.

public int RefreshBoundControls(bool skipUnsupportedBindings = false)

Parameters

skipUnsupportedBindings bool

When true, a control whose XPath is outside the supported subset is left alone and counted rather than throwing. Use it to refresh what can be refreshed in a document that also carries bindings this subset does not cover.

Returns

int

The number of controls whose content changed.

Exceptions

ContentControlBindingException

A binding is outside the supported subset and skipUnsupportedBindings is false.