Propriety, class, and XL confusion
Propriety, class, and XL confusion
- Subject: Propriety, class, and XL confusion
- From: Nelson Byrne <email@hidden>
- Date: Sun, 29 Dec 2002 20:00:33 -0800
I'm running OS 10.2.3
In the Microsoft Excel.asdictionary,
Custom Suite
we find
Class Application:
This has Elements and Properties. Elements are described by their forms
of address, such as:
as a range of elements
by numeric index, by name
or whatever.
Among the Elements are
Element Chart by numeric index, by name
In the Charting Suite of the same dictionary we find
Class Chart
I begin to think that Elements of a Class might be Classes themselves.
Class Chart has
Element Series by numeric index, by name.
In that same Charting Suite we find
Class Series:
which has its own Elements but also a Property
Border Border [r/o].
Apparently Elements can be Properties as well as Classes.
Oddly enough, Border is itself a Class.
Apparently
Classes can themselves be either Classes or Properties.
Properties can themselves be either Classes or Properties.
Be that as it may, Class Border (also in Charting Suite) has a Property
ColorIndex xlNone/xlAutomatic
I can find neither xlNone nor xlAutomatic defined anywhere in Microsoft
Excel.asdictionary so I guess these are primitives.
What's an element -- a class or a property?
What's a property --a class or a property?
And by the way, which events are handled by members of the above?
============================================
Even not knowing that I still can't understand the behavior of this
script:
tell application "Microsoft Excel"
tell Chart 1
get ColorIndex of Border of Series 1
tell Series 1
get ColorIndex of Border
end tell
end tell
end tell
The first get results in xlNone, as expected and correct.
The second one results in an error: "Can't get ColorIndex of Border."
Why can I get a whatsit of a border of a series
and yet not tell a series to get me a whatsit of a border?
I appreciate help in solving these mysteries.
Regards,
Nelson Byrne
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.