Articles in this section
Category / Section

How to wrap text in .NET MAUI CheckBox?

1 min read

The .NET MAUI CheckBox provides support for wrapping its text using LineBreakMode property and its declaration code has been updated as follows.

XAML:

    <syncfusion:SfCheckBox Text="By clicking here, I state that I have read and understood the terms and conditions." LineBreakMode="WordWrap"/>

C#:

   SfCheckBox  sfCheckBox  = new SfCheckBox();
   sfCheckBox.Text = "By clicking here, I state that I have read and understood the terms and       conditions.";
   sfCheckBox.LineBreakMode = LineBreakMode.WordWrap; 

Output:

LineBreakModeCheckboxKB-ezgif.com-video-to-gif-converter.gif

Download the complete sample on GitHub

Conclusion :

I hope you enjoyed learning how to wrap the text in .NET MAUI CheckBox using the LineBreakMode property.

Refer to our .NET MAUI CheckBox page for other groundbreaking feature representations. You can explore our .NET MAUI CheckBox documentation to understand how to present and manipulate data.

For current customers, check out our .NET MAUI components from the License and Downloads page. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI CheckBox and other .NET MAUI components.

Please let us know in the following comments section if you have any queries or require clarifications. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied