Table of Contents

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

binding ContentControlDataBinding

The binding.

Returns

string

The bound node's text, or null when the binding resolves to no node.

Exceptions

ArgumentNullException

binding is null.

ContentControlBindingException

The XPath is outside the supported subset, or the store item cannot be found.