From 62b30d6072a6bbdacc4922f3f1f6c178ef1e22e5 Mon Sep 17 00:00:00 2001 From: Will Baldoumas Date: Wed, 25 Jan 2023 17:45:30 -0800 Subject: [PATCH] Alignment => Justification Docs Fixes --- docs/input/widgets/figlet.md | 4 ++-- docs/input/widgets/grid.md | 14 +++++++------- docs/input/widgets/rule.md | 2 +- docs/input/widgets/text-path.md | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/input/widgets/figlet.md b/docs/input/widgets/figlet.md index 5794fae9d..1b49a9e63 100644 --- a/docs/input/widgets/figlet.md +++ b/docs/input/widgets/figlet.md @@ -12,7 +12,7 @@ Spectre.Console can render [FIGlet](http://www.figlet.org/) text by using the `F ```csharp AnsiConsole.Write( new FigletText("Hello") - .LeftAligned() + .LeftJustified() .Color(Color.Red)); ``` @@ -26,6 +26,6 @@ var font = FigletFont.Load("starwars.flf"); AnsiConsole.Write( new FigletText(font, "Hello") - .LeftAligned() + .LeftJustified() .Color(Color.Red)); ``` diff --git a/docs/input/widgets/grid.md b/docs/input/widgets/grid.md index 049e9e53d..0876809a0 100644 --- a/docs/input/widgets/grid.md +++ b/docs/input/widgets/grid.md @@ -45,16 +45,16 @@ grid.AddColumn(); // Add header row grid.AddRow(new Text[]{ - new Text("Header 1", new Style(Color.Red, Color.Black)).LeftAligned(), + new Text("Header 1", new Style(Color.Red, Color.Black)).LeftJustified(), new Text("Header 2", new Style(Color.Green, Color.Black)).Centered(), - new Text("Header 3", new Style(Color.Blue, Color.Black)).RightAligned() + new Text("Header 3", new Style(Color.Blue, Color.Black)).RightJustified() }); // Add content row grid.AddRow(new Text[]{ - new Text("Row 1").LeftAligned(), + new Text("Row 1").LeftJustified(), new Text("Row 2").Centered(), - new Text("Row 3").RightAligned() + new Text("Row 3").RightJustified() }); // Write centered cell grid contents to Console @@ -73,9 +73,9 @@ grid.AddColumn(); // Add header row grid.AddRow(new Text[]{ - new Text("Header 1", new Style(Color.Red, Color.Black)).LeftAligned(), + new Text("Header 1", new Style(Color.Red, Color.Black)).LeftJustified(), new Text("Header 2", new Style(Color.Green, Color.Black)).Centered(), - new Text("Header 3", new Style(Color.Blue, Color.Black)).RightAligned() + new Text("Header 3", new Style(Color.Blue, Color.Black)).RightJustified() }); var embedded = new Grid(); @@ -88,7 +88,7 @@ embedded.AddRow(new Text("Embedded III"), new Text("Embedded IV")); // Add content row grid.AddRow( - new Text("Row 1").LeftAligned(), + new Text("Row 1").LeftJustified(), new Text("Row 2").Centered(), embedded ); diff --git a/docs/input/widgets/rule.md b/docs/input/widgets/rule.md index c27cf078c..8272dcdc4 100644 --- a/docs/input/widgets/rule.md +++ b/docs/input/widgets/rule.md @@ -53,7 +53,7 @@ You can also specify it via an extension method: ```csharp var rule = new Rule("[red]Hello[/]"); -rule.LeftAligned(); +rule.LeftJustified(); AnsiConsole.Write(rule); ``` diff --git a/docs/input/widgets/text-path.md b/docs/input/widgets/text-path.md index d875e0eb0..c92305a10 100644 --- a/docs/input/widgets/text-path.md +++ b/docs/input/widgets/text-path.md @@ -34,7 +34,7 @@ You can also specify styles via extension methods: ```csharp var path = new TextPath("C:/This/Path/Is/Too/Long/To/Fit/In/The/Area.txt") - .RightAligned(); + .RightJustified(); ``` ## Styling