title: BufferCell properties read-only?
body: <p>I’m trying to set the <a href="https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.host.buffercell.foregroundcolor?view=pscore-6.2.0#System_Management_Automation_Host_BufferCell_ForegroundColor" rel="nofollow noreferrer">ForegroundColor</a>  and <a href="https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.host.buffercell.backgroundcolor?view=pscore-6.2.0#System_Management_Automation_Host_BufferCell_BackgroundColor" rel="nofollow noreferrer">BackgroundColor</a> properties of BufferCells allocated via <a href="https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.host.pshostrawuserinterface.newbuffercellarray?view=pscore-6.2.0" rel="nofollow noreferrer">NewBufferCellArray</a> in powershell.exe on Windows 10. I find that assignments appear to have no affect, e.g.</p>
  
  <pre><code>&gt; $a = $Host.UI.RawUI.NewBufferCellArray("abc", [System.ConsoleColor]::White, [System.ConsoleColor]::Black)
  &gt; $a[0, 0].ForegroundColor
  White
  &gt; $a[0, 0].ForegroundColor = [System.ConsoleColor]::Blue
  &gt; $a[0, 0].ForegroundColor
  White
  </code></pre>
  
  <p>Per the documentation linked above, it seems both properties are supposed to have setters – are they not implemented in powershell.exe’s PSHostRawUserInterface classes?</p>