< All Topics

Environment Properties

Experior.Core.Environment.Properties

Experior.Core.Environment.Properties allows to interact with the properties window in Experior.

Suppose the value of property A of an assembly relies on the value of property B. When  a user changes the value of B, you want to have the new value of property A immediately visible. This can be achieved by using the Experior.Core.Environment.Properties.Refresh() method.

Methods

void Refresh(): This will refresh the Property window to show all current property values of the selected entity.

void Clear(): This will clear the Property window of Experior so that is empty and shows no properties.

Example:

private int attr1;
public int Prop1
{
    get
    {
        return attr1;
    }
    set
    {
        attr1 = value;
        // refresh the property window so that
        // also the new value for CalculatedProp is visible
        Experior.Core.Environment.Properties.Refresh();
    }
}

public int CalculatedProp
{
    get
    {
        return attr1*2;
    }
}
Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Previous Attributes
Next Logging and Diagnostic messages