title: Microsoft Monaco Editor in browser get value of line
body: <p>I have been working through using the browser based version of the Microsoft Monaco Editor, I can't find any documentation or any examples in the playground that tell you how to get the value of a specific line of in the editor. </p>
  
  <p>For example:</p>
  
  <pre><code>class Example {
      private m:number;
  
      public met(): string {
          return "Hello world!";
      }
  }
  </code></pre>
  
  <p>Line 2 would be <code>private m:number;</code>.</p>
  
  <p>How would you get the value of that line or even part of the line and then change it's value using code.  I want to put that action into a keyboard shortcut.</p>