Jump to content
Software FX Community

DataType enumeration values?


User (Legacy)

Recommended Posts

I am trying to set my datasourcesettings, via enumerated DataTypes... 

your example below shows this. What are the enumeration values for the DataType enumeration?

Chart1.DataSourceSettings.DataType(0) = DataType.Label

Chart1.DataSourceSettings.DataType(1) = DataType.Value

Chart1.DataSourceSettings.DataType(2) = DataType.Value

Chart1.DataSourceSettings.DataType(3) = DataType.Value

#Region "Enum DataType"

Public Enum DataType

label = ??

value = ??

?

?

?

End Enum

#End Region

--

Thanks,

SCOTT HOFFMAN

Link to comment
Share on other sites

I'm afraid I do not understand your question.

The DataType enumeration is defined inside the Chart FX assembly so you can use it if you reference the assembly, you may need to fully-qualify it if you are not doing a "using", for example:

Chart1.DataSourceSettings.DataType(0) = SoftwareFX.ChartFX.DataType.Label

Or do you actually want to know the actual values for each name ? If you want to find out what the value of any enumeration is you can do:

int intValue = (int) DataType.Label;

--

Francisco Padron

www.chartfx.com

Link to comment
Share on other sites

Francisco,

Thank you for the help with this issue. I was mistaken, I thought that the reference alone would have defined the enumerated DataType. Fully-qualifying it was the answer.

--

Thanks,

SCOTT HOFFMAN

"Software FX" <noreply@softwarefx.com> wrote in message news:suOXFSNjFHA.2040@webserver3.softwarefx.com...

I'm afraid I do not understand your question.

The DataType enumeration is defined inside the Chart FX assembly so you can use it if you reference the assembly, you may need to fully-qualify it if you are not doing a "using", for example:

Chart1.DataSourceSettings.DataType(0) = SoftwareFX.ChartFX.DataType.Label

Or do you actually want to know the actual values for each name ? If you want to find out what the value of any enumeration is you can do:

int intValue = (int) DataType.Label;

--

Francisco Padron

www.chartfx.com

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...