Description

An Icon (thumbnail) representation of this McDBNode.

Property type

A Variant value.  

Syntax

object.Icon([Index], [Format]) [= value]

The Icon Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBNode.
IndexOptional. A mcDBIconType enumeration, as described in settings.

The index/style of the icon to assign/retrieve.

FormatOptional. A mcDBDataStyle enumeration, as described in settings.

The format the object encapsulating the Icon is to be returned in. This parameter is ignored when assigning to this property. If an inapplicable value from this parameter is passed, mcdbActualObject is assumed.

valueA Variant value.

Settings

The settings for Index are:

ConstantValueDescription
 mcdbSmallIcon0
 mcdbLargeIcon1
 mcdbExpandedIcon2
 mcdbSelectedIcon3

The settings for Format are:

ConstantValueDescription
 mcdbNoData0
 mcdbDefaultStyle1
 mcdbStringData1

value as a string

 mcdbStorage2

returned object implements IStream

 mcdbStream3

returned object implements IStorage

 mcdbBytes4

raw byte stream of object

 mcdbProgId5

the ProgID of the stored object

 mcdbLongData6

value as a Long (for mcdbEnum attributes only)

 mcdbGlobalID7

A database-global identifier of the object

 mcdbActualObject16

An IDispatch to the object, can be Ored with mcdbStorage and mcdbStream

Remarks

McDBNode objects are associated with zero or more Icon thumbnails, which may be retrieved or set, by Index, using this property. If an McDBNode instance does not have a requested Icon, its McDBType.Icon at the same Index is returned. This inheritance/sharing of icons, allow centralization of the binary data representing the Icon and simplifies administration of multiple similar McDBNode instances. Existing icons may be cleared by assigning an Empty variant to Icon(Index).