C# Class Bloom.ElementProxy

Takes a Gecko element or an XmlElement, and then provides a few simple operations on the element so that the client doesn't have to know which it has. This is useful because it would be hard to introduce gecko elements in many simple unit tests.
Show file Open project: BloomBooks/BloomDesktop Class Usage Examples

Public Methods

Method Description
ElementProxy ( GeckoHtmlElement element ) : System
ElementProxy ( XmlElement element ) : System
Equals ( object obj ) : bool
GetAttribute ( string attributeName ) : string

Gets the named attribute

GetElementById ( string id ) : ElementProxy

Get the element with the specified ID. Note that it may be anywhere in the containing document, not necessarily a child of the recipient element.

GetHashCode ( ) : int
SetAttribute ( string attributeName, string value ) : void

Sets the named attribute

operator ( ) : bool

Protected Methods

Method Description
Equals ( UrlPathString other ) : bool

Method Details

ElementProxy() public method

public ElementProxy ( GeckoHtmlElement element ) : System
element GeckoHtmlElement
return System

ElementProxy() public method

public ElementProxy ( XmlElement element ) : System
element System.Xml.XmlElement
return System

Equals() protected method

protected Equals ( UrlPathString other ) : bool
other UrlPathString
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetAttribute() public method

Gets the named attribute
public GetAttribute ( string attributeName ) : string
attributeName string
return string

GetElementById() public method

Get the element with the specified ID. Note that it may be anywhere in the containing document, not necessarily a child of the recipient element.
public GetElementById ( string id ) : ElementProxy
id string
return ElementProxy

GetHashCode() public method

public GetHashCode ( ) : int
return int

SetAttribute() public method

Sets the named attribute
public SetAttribute ( string attributeName, string value ) : void
attributeName string
value string
return void

operator() public static method

public static operator ( ) : bool
return bool