Changing XAxes columns font

5 posts, 0 answers
  1. Saman
    Saman avatar
    7 posts
    Member since:
    Jul 2012

    Posted 12 Jul 2012 Link to this post

    Hi every one

    I want to change XAxes Columns Font,i mean the numbers.
    I use this code,but it's not worked

    radchart1.Font = new System.Drawing.Font("B Nazanin", 12, FontStyle.Bold);
    How can i do that?

    Best Regards ...
  2. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 17 Jul 2012 Link to this post

    Hello Saman,

    Here's how you can achieve this:

    <telerik:RadChart ID="RadChart1" runat="server">
                <PlotArea>
                    <XAxis>
                        <Appearance>
                            <TextAppearance TextProperties-Font="Lucida Calligraphy, 9pt">
                            </TextAppearance>
                        </Appearance>
                    </XAxis>
                </PlotArea>
            </telerik:RadChart>

    Regards,
    Evgenia
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Saman
    Saman avatar
    7 posts
    Member since:
    Jul 2012

    Posted 17 Jul 2012 Link to this post

    Hello Evgenia

    Thanks for your reply
    First of all,i use C# winforms telerik component,not ASP.NET ...
    and i have this code below :
    radchart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("B Nazanin", 12);

    but this code , only change the Xaxis Column font,i want to change each column in chart i have ...
    Regards ...
    Saman
  5. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 19 Jul 2012 Link to this post

    Hi,

     From your last post I guess you want to change the Series Items Labels Font. Here's how this can be done:

    RadChart1.Series[0].Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("B Nazanin", 12);


    Kind regards,

    Evgenia
    the Telerik team

     

    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  6. Saman
    Saman avatar
    7 posts
    Member since:
    Jul 2012

    Posted 20 Jul 2012 Link to this post

    Hi ,
    Yes,i mean this,it worked thank you.
    Regards.
    Saman.
Back to Top
UI for WinForms is Visual Studio 2017 Ready