IconSelection Property

General info

Label

Change icon

Description

Configure the icon that is displayed for this object.

Data type

Int32

Default value

0

Type

Regular

Code

1123

Symbolic name

MODEL_PROP_ICONSELECTION

Lua access code

syslib.model.properties.IconSelection

Available since

1.0

Attributes

Name Tooltip
PROP_CONFIGURABLE The property is configurable and can be changed with DataStudio and the various inmation APIs.
PROP_HAS_DEFAULT The property has a default value as standard.

Examples

Read from or write to the IconSelection property.

  • Lua

  • C#

-- Read from the IconSelection
syslib.getvalue("<OBJECT FULL PATH>.IconSelection")

-- Write to the IconSelection
syslib.setvalue("<OBJECT FULL PATH>.IconSelection", 0)
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the IconSelection
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.IconSelection"));
// Write to the IconSelection
Result result = sli.WriteValue(sc, new WriteItem(0, "<OBJECT FULL PATH>.IconSelection"));