Hi,
Under C# (cli-uno) "getByIndex(i)" returns an "Any"-struct instead of an
object like in Java. I guess the cli-uno designers had their reasons to
do so. So with
>> XPropertySet props = (XPropertySet)cols.getByIndex(i).Value;
I access the Value-property of the Any-struct (which stores the object)
and cast it to the XPopertySet Interface. Not using ".Value" won't let
me compile.
I just read in the OO-Dev-Manual "Text Documents" under section "7.3.4
Tables", where the Methods in XTabelColumns are described, that
getByIndex() supports the XInterface only. Does this mean, that I can
not cast it to a XPopertySet?
Or can you, Andre, confirm, that this works with a TextTable in a
Text-Document with Java? Then it should do under C# as well.
thanks
Florian
If I may just say, your codes, even disregarding the small language
differences, are not identical. In the Java code:
xColProps = QI.XPropertySet(xCols.getByIndex(i));
you cast the return value of getByIndex into an XPropertySet, whereas in
the C# code:
XPropertySet props = (XPropertySet)cols.getByIndex(i).Value;
you access the Value property of that return value and try casting the
result. So possibly removing the access to Value might help (or using an
explicit queryInterface instead of using a direct cast).
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]