This is a migrated thread and some comments may be shown as answers.

How to remove the spacing in label text right and left side site

1 Answer 1224 Views
Label
This is a migrated thread and some comments may be shown as answers.
AIT
Top achievements
Rank 1
Veteran
AIT asked on 22 Dec 2020, 02:15 PM

Hello Team,

I need to remove the spacing in the text right and left side, or the text needed to fit in the border. Please see the attached image.

Thanks.

 

 

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 23 Dec 2020, 09:57 AM

Hello,

If you want to remove the spacing in the text at the right and left sides you can set the LabelBorder.Margin property and adjust the left and right margins:

this.radLabel1.Text = "4B-2054D";
this.radLabel1.LabelElement.LabelBorder.Margin = new Padding(2, 0, 4, 0);

I hope this helps. Should you have other questions do not hesitate to contact me.

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Label
Asked by
AIT
Top achievements
Rank 1
Veteran
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or