We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

facing a problem in syncfusion.windows.forms.chart

Hi, i have a .net application in 1.1 version which is using 3.1 version of syncfusion.

Now i converted my 1.1 .net application to 2.0 and also upgraded from syncfusion 3.1 to 4.0.X.X.

In my application, I am using "syncfusion.windows.forms.chart" namespace and i have written a class which implements the "IChartAxisLabelModel" interface.

In the "IChartAxisLabelModel" interface, there is a method "GetLabelAt(int)" which returns a class type "chartaxislabel".

I am implementing the method "GetLabelAt(int)" in such a way that it returns a string instead of the class type "chartaxislabel".

Also I am trying to cast the string value that is returned by the method "GetLabelAt(int)" to a class type "chartaxislabel" but i get an error like this::


Error 1 'LabelModel' does not implement interface member 'Syncfusion.Windows.Forms.Chart.IChartAxisLabelModel.GetLabelAt(int)'. LabelModel.GetLabelAt(int)' is either static, not public, or has the wrong return type. C:\Projects\QI\Reports20\QIKeyerReport\ChartModel.cs 91 15

The reason I am returning a string is because i am retreiving a value from the database and assigning that as a value to a property.


Any help or work around in this would be highly appreciable..


thanks in advance,
venu puchakayala.

1 Reply

GR Golda Rebecal Syncfusion Team July 27, 2007 01:29 PM UTC

Hi Venu,

Sorry for the delay in responding to you.

When you implement a method of an interface, the method implementation should have the exact same signature, parameters and method name, as defined in the interface.

Since you have changed the return type "ChartAxisLabel" to "String", the compilation error has occurred.

Could you please provide us with some more information with regard to your requirement, so that it would help us to meet your requirement exactly?

Thank you for your interest in Syncfusion products.

Best regards,
Golda.

Loader.
Live Chat Icon For mobile
Up arrow icon