Show Text Within RoundRectShape

2 posts, 0 answers
  1. Nader
    Nader avatar
    1 posts
    Member since:
    Dec 2015

    Posted 30 Dec 2015 Link to this post

    How can I show some text within RoundRectShape? See the attached image.
  2. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 30 Dec 2015 Link to this post

    Hello Nader,

    Thank you for writing.
     
    RadGridView supports custom painting in its rows. It is suitable to use the RowPaint event which occurs when a row needs to be painted. If you want to allow the event to fire, you should set the EnableCustomDrawing to true of the RadGridView control. Please refer to the following help article: http://www.telerik.com/help/winforms/gridview-rows-painting-rows.html Thus, you can draw the desired string by using the System.Drawing.Graphics: https://msdn.microsoft.com/en-us/library/system.drawing.graphics.drawstring(v=vs.110).aspx

    I hope this information helps. Should you have further questions I would be glad to help.
     
    Regards,
    Dess
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top