Rendering markup and IRenderable
s to/inside strings
#1306
-
Let's say I have this new Panel($"Directory: {/*Theoretical TextPath*/}") How would I be able to add a |
Beta Was this translation helpful? Give feedback.
Answered by
patriksvensson
Sep 17, 2023
Replies: 1 comment 2 replies
-
The easiest way to do this is to use a AnsiConsole.Write(
new Grid()
.AddColumn(new GridColumn().PadRight(1))
.AddColumn()
.AddRow(
new Markup("[yellow]Directory[/]:"),
new TextPath("C:/temp/lol.txt")
)); |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
patriksvensson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The easiest way to do this is to use a
Grid
: