Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Fri Aug 14, 2015 6:05 am

I'm using Spire XLS Version 7.8 , How set Legend.TextArea.Font.Size ?

Code: Select all
// Not Work
MyChart.Legend.TextArea.Font.Size = 11;


Thanks.

cary2580
 
Posts: 2
Joined: Mon Oct 27, 2014 7:48 am

Fri Aug 14, 2015 6:46 am

Hello,

Thanks for your inquiry.
Please use the below code:
Code: Select all
MyChart.Legend.TextArea.Size = 11;


Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Fri Aug 14, 2015 7:03 am

Thanks for the reply sweety1.

same not work

Code: Select all
 
    // why this code not work
    MyChart.Legend.TextArea.Size = 11;


Code: Select all
        // this code ok
        for (int i = 0; i < MyChart.Legend.LegendEntries.Count; i++)
        {
            MyChart.Legend.LegendEntries[i].TextArea.Size = 11;
        }

cary2580
 
Posts: 2
Joined: Mon Oct 27, 2014 7:48 am

Fri Aug 14, 2015 9:02 am

Hello,

Thanks for your reply.
Glad to hear that you solved your issue.
The code that I shared with you can work well when Excel version is Version97to2003.
Please feel free to contact us if you have any questions or needs.

Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Return to Spire.XLS