title: .NET Automation ControlType.Document: how to manipulate text?
body: <p>How can I set text into a <code>ControlType.Document</code> element using the <code>System.Windows.Automation</code>? </p>
  
  <p>The ValuePattern is not available for Document ControlType and TextPattern doesn't allow setting of new values.</p>
  
  <p>This does not work:</p>
  
  <pre><code>automationElement.GetCurrentPattern(ValuePattern.Pattern) as ValuePattern)
      .setValue(value);
  </code></pre>