SetProperty Method

Sets the specified property to the specified value for the given object.

Syntax

object.SetProperty bstrPropertyName, vaValue

Properties

The SetProperty method syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

bstrPropertyName

String. The name of the property to set.

aValue

Variant. The value to which to set the property.

Remarks

Calling iOval.SetProperty “ForegroundColor”, 255 is equivalent to executing iOval.ForegroundColor = 255.

 

Example

Applies To