C# Class Nohal.Redmine.XhtmlPage

Class representing the XHTML page
ファイルを表示 Open project: bdrhoa/redmine-client Class Usage Examples

Private Properties

Property Type Description
GetCheckBoxOptions string>.Dictionary
GetElementById System.Xml.XmlNode
GetElementsByName System.Xml.XmlNodeList
GetSelectOptions string>.Dictionary
ParseSelect string>.Dictionary
XhtmlPage System
XhtmlPage System
XhtmlPage System

Private Methods

Method Description
GetCheckBoxOptions ( string checkboxId ) : string>.Dictionary

Gets the collection of possible values from the checkboxes contained in XmlNodeList. The expected xhtml is for example: <label class="floating" ><input id="issue[watcher_user_ids][]" name="issue[watcher_user_ids][]" type="checkbox" value="3" /> test user</label>

GetElementById ( string elementId ) : XmlNode

Gets the System.Xml.XmlNode with the specified ID

GetElementsByName ( string elementName ) : XmlNodeList

Gets the System.Xml.XmlNodeList of nodes with the specified name

GetSelectOptions ( string selectId ) : string>.Dictionary

Gets the collection of possible values from the select with specified Id

ParseSelect ( XmlNode selectNode ) : string>.Dictionary

Parses possible values of XHTML select into a collection of key->value pairs

XhtmlPage ( ) : System

Initializes a new instance of the XhtmlPage class.

XhtmlPage ( Stream pageContent ) : System

Initializes a new instance of the XhtmlPage class. Creates object from the supplied stream.

XhtmlPage ( string pageContent ) : System

Initializes a new instance of the XhtmlPage class. Creates object from the supplied text.