Skip to content

Commit 5d9f918

Browse files
committed
Fix code snippet
1 parent 2ef0d3d commit 5d9f918

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

knowledge-base/form-titlebar-align-text-winforms.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ this.FormElement.TitleBar.CaptionElement.Alignment = ContentAlignment.MiddleCent
3232
To center the text in the RadTitleBar as a stand-alone control, set the `Alignment` property of the `CaptionElement` to `ContentAlignment.MiddleCenter`. This adjustment aligns the title bar text to the middle center.
3333

3434
````C#
35+
3536
this.radTitleBar1.TitleBarElement.CaptionElement.Alignment = ContentAlignment.MiddleCenter;
3637

37-
```
38+
````
3839

3940
By applying this code, the text in the RadTitleBar will be centered, providing a visually appealing and balanced appearance for the title bar of your WinForms application.
4041

0 commit comments

Comments
 (0)