Method ReadValue
- Namespace
- DocWright.Dom.ContentControls
- Assembly
- DocWright.Dom.dll
ReadValue(ContentControlDataBinding)
Reads the value a binding points at.
public string? ReadValue(ContentControlDataBinding binding)
Parameters
bindingContentControlDataBindingThe binding.
Returns
- string
The bound node's text, or null when the binding resolves to no node.
Exceptions
- ArgumentNullException
bindingis null.- ContentControlBindingException
The XPath is outside the supported subset, or the store item cannot be found.