C# Class CsQuery.Implementation.HTMLOptionsCollection

A collection of HTML options.
Inheritance: IHTMLOptionsCollection
显示文件 Open project: prepare/HTML-Renderer

Private Properties

Property Type Description
Children IEnumerable
Children IEnumerable
GetSelectedItem int
System IEnumerator
this IDomElement
this IDomElement

Public Methods

Method Description
GetEnumerator ( ) : IEnumerator

Gets the enumerator.

HTMLOptionsCollection ( IDomElement parent ) : System

Creates an HTMLOptionsCollection from the children of a Select element.

Item ( int index ) : IDomElement

Returns the specific node at the given zero-based index (gives null if out of range)

NamedItem ( string name ) : IDomElement

Returns the specific node with the given DOMString (i.e., string) id. Returns null if no such named node exists.

Protected Methods

Method Description
Children ( ) : IEnumerable

Enumerates the element children of a node.

Private Methods

Method Description
Children ( IDomElement parent ) : IEnumerable

Implementation for Children. The bool part of the tuple indicates if the element inherits a "disabled" property.

Children ( IDomElement parent, bool disabled ) : IEnumerable
GetSelectedItem ( OptionElement &el ) : int
System ( ) : IEnumerator

Gets the enumerator.

this ( int index ) : IDomElement
this ( string name ) : IDomElement

Method Details

Children() protected method

Enumerates the element children of a node.
protected Children ( ) : IEnumerable
return IEnumerable

GetEnumerator() public method

Gets the enumerator.
public GetEnumerator ( ) : IEnumerator
return IEnumerator

HTMLOptionsCollection() public method

Creates an HTMLOptionsCollection from the children of a Select element.
/// Thrown when one or more arguments have unsupported or illegal values. ///
public HTMLOptionsCollection ( IDomElement parent ) : System
parent IDomElement /// The parent element for this collection. ///
return System

Item() public method

Returns the specific node at the given zero-based index (gives null if out of range)
public Item ( int index ) : IDomElement
index int /// The zero-based index of the option element. ///
return IDomElement

NamedItem() public method

Returns the specific node with the given DOMString (i.e., string) id. Returns null if no such named node exists.
/// Thrown when the requested operation is unimplemented. ///
public NamedItem ( string name ) : IDomElement
name string /// The zero-based index of the option element. ///
return IDomElement