Headless.HtmlList.Deselect C# (CSharp) Method

Deselect() public method

Deselects the specified value.
/// No option element found for the specified value. ///
public Deselect ( string value ) : void
value string /// The value. ///
return void
        public void Deselect(string value)
        {
            var item = this[value];

            if (item == null)
            {
                throw BuildItemNotFoundException(value);
            }

            item.Selected = false;
        }