ChangeTagProperty

Parent Previous Next

ChangeTagProperty

Function that changes the property of the string tag.


Syntax:

Void ChangeTagProperty(string propertyName, ScriptVar value);

Params:

String propertyName: A string parameter that contains the property tag name.

ScriptVar value: A value parameter that can to change the property.


Example:

Setting the MinRaw and the MaxRaw of tags NewTag1 and NewTag2:



Dictionary<string,object> propsToChange = new Dictionary<string,object>();


propsToChange.Add("NewTag1.MaxRaw", 5000);

propsToChange.Add("NewTag1.MinRaw", -5000);

propsToChange.Add("NewTag2.MaxRaw", 5000);

propsToChange.Add("NewTag2.MinRaw", -5000);


SVTags.ChangeTagProperty(propsToChange);