Properties


Description

Retrieves a collection of PropertyType/value settings for an Engine. Specifically, it is a collection of variant values, each indexed by a PropertyType object. It can be thought of as a collection of PropertyType/variant pairs or as a partial mapping from PropertyType objects to variant values.

Syntax

Getting:

anObject.Properties

anObject.Properties(index)

Setting:

anObject.Properties(index) = aVariant

anObject.Properties(index) = Nothing

Set anObject.Properties = someProperties

Parameter

Description

anObject

a Node object or Model object.

(index)

Optional. An integer, or a string, or a PropertyType object specifying the index value of the variant value to retrieve. Integer indexes are zero-based, meaning the first variant value in the collection has index 0. A string index is valid only if the string is the name of a PropertyType node that indexes a variant value the collection. A PropertyType object is valid only if it indexes a variant value in the collection.

aVariant

a value to which the PropertyType object identified by index should be assigned. It may be a string, double, array of string, or array of doubles.

Nothing

The property will be removed if necessary.

someProperties

Replaces the object's current properties with property settings in someProperties.

Examples

See: Properties: an Overview and Collections and Maps: an Overview

Remarks

As with all MSBN3 collections, the elements of this collection can be enumerated. Also, as with other MSBN3 collections, the index numbers, key strings, and key objects of this collection can be enumerated. See "Collections and Maps: an Overview" for details.

Properties

CountCollect, Description, ExistingKey, Item, Model, MSBN, Owner, Ref

Methods

Add, Remove, Set

Collections

Indexes, Keys, KeyObjects

Events

See events PropertiesAdd, PropertiesRemove, PropertiesSet, NodePropertiesAdd, NodePropertiesRemove, NodePropertiesSet PropertyTypePutDescription, PropertyTypesAdd, and PropertyTypesRemove of Model.

Applies To

Node, Model