Nested properties ?

  • Thread starter Thread starter Pieter
  • Start date Start date
P

Pieter

Hi,

I just downloaded the TeeChart tool for easy drawing etc.,
and try to activate this from my own app. TeeChart comes
with many classes, interfaces etc, etc. The problem is that
I don't quite understand the structure of the TeeChart
classes hierarchy.

E.g. in the manual I found next VB .NET code for refering to
the chart's left axis: TChart.Axis.Left

Following the class browser, TChart is a class, Axis is a
property inheriting from interface IAxis, containing the
propery Left.

For me it looks like nested properties. Anyone who
understands how this works ? I am esp. puzzled about the
Axis.Left construct ?

Bye,
P.
 
Pieter said:
Hi,

I just downloaded the TeeChart tool for easy drawing etc.,
and try to activate this from my own app. TeeChart comes
with many classes, interfaces etc, etc. The problem is that
I don't quite understand the structure of the TeeChart
classes hierarchy.

E.g. in the manual I found next VB .NET code for refering to
the chart's left axis: TChart.Axis.Left

Following the class browser, TChart is a class, Axis is a
property inheriting from interface IAxis, containing the
propery Left.

For me it looks like nested properties. Anyone who
understands how this works ? I am esp. puzzled about the
Axis.Left construct ?

Bye,
P.

Just use it like any other class. The Axis is just something that is
inherited either from itself or from the system. I am not exactly sure on
this TeeChart Control, but it seems like any other control you have worked
with in VB .NET

Quick and Dirty Example:

Public Function DoChartStuff

Dim MyChart as New TChart
MyChart.Axis.Left = Blah Blah Blah
'
'
'Do More Stuff
'
'
'
MyChart.Dispose()
End Function
 
E.g. in the manual I found next VB .NET code for refering to
the chart's left axis: TChart.Axis.Left
TChart.Axis.Left is an object containing all the properties for the left
Axis (ie Min, Max, Ticks, Labels....)
It is pretty frustrating to try to set up everything in code, but eventually
you find the correlation between the edit window and the objects.
My suggestion is that you set up the chart as you want it in the IDE using
the Edit window (right click on the chart and choose "Edit..."

HTH
Kejpa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top