Hello,
You can use setValues to set selected values. So I change your UpdateDisplayedRangeSlider method like following code. I tried to use this.rsDisplayedValues.Values[0], I get the same result as yours, it not work.
private void UpdateDisplayedRangeSlider()
{
//Remember current values
int currminvalue = this.rsDisplayedValues.Values[0].IntValue();
int currmaxvalue = this.rsDisplayedValues.Values[1].IntValue();
//Temporarily set values to 0
Float[] values1 = { (Float)(0f), (Float)(0f) };
this.rsDisplayedValues.SetValues(values1);
//Update ValueFrom/ValueTo
this.rsDisplayedValues.ValueFrom = -100f;
this.rsDisplayedValues.ValueTo =100f;
//Set new selected values
Float[] values = { (Float)(-50.0f), (Float)50.0f };
this.rsDisplayedValues.SetValues(values);
}
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.