SetProperty

This method sets the value of a specified property for all groups. Unlike the SetClassification method, SetProperty cannot set classification values. See: SetClassification for further details.

 

JavaScript

 

SetProperty(

       Name,

       Value)

 

C#

 

void SetProperty(

       string Name,

       object Value)

 

C++

 

HRESULT SetProperty(

       BSTR Name,

       VARIANT Value)

 

Parameters

Name

The name of the property to set. The parameter can be any property field name as it appears in the Layer property sheet in TerraExplorer (e.g., “Line Color”).

Note:    This parameter must be in English even when the user interface is in a different language.

Value

The value to assign to the property. Pass the variable type that is expected for the specified property, e.g. for “Line Color” pass a long type value.

If the property is a drop-down menu, pass the zero-based integer index of the order in the list. For example, for “Activation Action” pass 0 for “Fly To” and 1 for “Circle Pattern”. See below for an additional example:

lock96

See IFeatureGroup80.SetProperty for a list of exceptions to this rule.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.