The information in this article applies to:
SUMMARY
An object property accessed from an Add-In returns a Properties collection,
not the object specified by the property. This gives you the ability to
access individual properties of the object as Property objects. However,
this means that you cannot set the object property to a new object.
MORE INFORMATIONIt is not possible to set a picture property from an Add-In as follows, where objFT is a FormTemplate object and VBInstance is the Application object passed to the Add-In:
The Value property in this case returns a Properties collection not a
Picture object. You can use this Properties collection to examine and
modify the properties of the object. The following code shows three
different syntaxes for accessing the individual properties of a
FormTemplate Picture property:
The Picture object has Type, Handle, hPal, Height, and Width properties. It
is not possible to set all of these properties because they are not all
read/write properties. Therefore, you cannot construct a picture object by
simply setting all of its properties, as you can a font object.
Additional query words:
Keywords : kbole kbVBp400 kbGrpVB PrgOther |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |