
Properties and "sub-Properties"
Moses,
I may not understand your problem.
If I do, then you can look at how Width/Height are implemented. They are a
contained structure. Thus you can create a public structure with your sub
properties, and create a property in your class that gets/returns this
structure. Similar to the framework, you can overload properties and methods
to take either the structure or the individual values.
Kathleen
Quote:
> Hi all,
> I have created a class named MyClass. This class contains two properties
and
> I want one of them to provide two "sub-properties" (similar to the way
that
> the size displays "Width" and "Height"). The best solution that I came
with
> is to create an array and pass that array.
> This is not the "neater" solution so I was thinking if anyone came across
> the same problem before and can help me with it.
> TIA
> Moses