Table of Contents

Method SetBoundValue

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

SetBoundValue(ContentControl, string)

Writes a value to a bound control, updating both the control's content and the custom XML node it is bound to.

public bool SetBoundValue(ContentControl control, string value)

Parameters

control ContentControl

The control, which must carry a data binding.

value string

The new value.

Returns

bool

True when the bound node was found and both sides were updated.

Exceptions

ArgumentNullException

control or value is null.

ContentControlBindingException

The control has no binding, the XPath is outside the supported subset, or the store item cannot be found.