Table of Contents

Method GetValue

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

GetValue()

Returns the control's value as text.

public string GetValue()

Returns

string

The value.

Remarks

For most kinds this is the text of the control's content. A check box reports true or false from its stored state rather than from the symbol it paints, because the symbol is a font-specific glyph and the state is not. A list control reports the value of the entry whose display text is showing, so a caller gets the stored value rather than the label.

A control showing its placeholder returns the empty string, not the placeholder text: the placeholder is what Word shows when the control has no value.