This method sets the value of a specified property of the specified group’s features. 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:
There are a few exceptions to this rule:
· All Yes/No drop-down lists – Use 0 for No and 1 for Yes.
· “Pivot Alignment” – Use 10 based index (e.g. use 10 for Top, Left).
· “Text Alignment”– Use 10 based index (e.g. use 10 for Top, Left).
· “Altitude Method” – Use 10-Relative to terrain, 11-Absolute, 12-On terrain.
· “Image Max Size” – Divide the value you want to set by 32. For example, to set a maximum image size of 100, pass 100/32.
· “Line Pattern” – Use the line style value (e.g. for solid line, use 0xFFFFFFFF). See ILineStyle. Pattern.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.