C# Class Headless.HtmlList

Inheritance: HtmlFormElement
显示文件 Open project: roryprimrose/Headless

Public Methods

Method Description
Deselect ( string value ) : void

Deselects the specified value.

HtmlList ( IHtmlPage page, IXPathNavigable node ) : System

Initializes a new instance of the HtmlList class.

Select ( string value ) : void

Selects the specified value.

this ( string value ) : HtmlListItem

Gets the HtmlListItem with the specified value.

Protected Methods

Method Description
BuildPostData ( ) : IEnumerable

Private Methods

Method Description
BuildItemNotFoundException ( string value ) : HtmlElementNotFoundException

Throws the item not found.

MatchesItem ( HtmlFormElement item, string value ) : bool

Determines whether the item matches the specified value.

Method Details

BuildPostData() protected method

protected BuildPostData ( ) : IEnumerable
return IEnumerable

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

HtmlList() public method

Initializes a new instance of the HtmlList class.
/// The parameter is null. /// /// The parameter is null. ///
public HtmlList ( IHtmlPage page, IXPathNavigable node ) : System
page IHtmlPage /// The owning page. ///
node IXPathNavigable /// The node. ///
return System

Select() public method

Selects the specified value.
/// No option element found for the specified value. ///
public Select ( string value ) : void
value string /// The value. ///
return void

this() public method

Gets the HtmlListItem with the specified value.
public this ( string value ) : HtmlListItem
value string /// The value. ///
return HtmlListItem