Remove Render from docs in favor of Write (#613)

The `Render` method has been obsoleted.
This commit is contained in:
Patrik Svensson
2021-11-09 21:22:18 +01:00
committed by GitHub
parent e86f9d3c5a
commit 21ac952307
9 changed files with 23 additions and 23 deletions

View File

@ -15,7 +15,7 @@ Console markup uses a syntax inspired by bbcode. If you write the style (see [St
in square brackets, e.g. `[bold red]`, that style will apply until it is closed with a `[/]`.
```csharp
AnsiConsole.Render(new Markup("[bold yellow]Hello[/] [red]World![/]"));
AnsiConsole.Write(new Markup("[bold yellow]Hello[/] [red]World![/]"));
```
The `Markup` class implements `IRenderable` which means that you
@ -26,7 +26,7 @@ rendering of `IRenderable` also have overloads for rendering rich text.
var table = new Table();
table.AddColumn(new TableColumn(new Markup("[yellow]Foo[/]")));
table.AddColumn(new TableColumn("[blue]Bar[/]"));
AnsiConsole.Render(table);
AnsiConsole.Write(table);
```
## Convenience methods