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.
Afficher le fichier Open project: BloomBooks/BloomDesktop Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Equals ( UrlPathString other ) : bool

Method Details

ElementProxy() public méthode

public ElementProxy ( GeckoHtmlElement element ) : System
element GeckoHtmlElement
Résultat System

ElementProxy() public méthode

public ElementProxy ( XmlElement element ) : System
element System.Xml.XmlElement
Résultat System

Equals() protected méthode

protected Equals ( UrlPathString other ) : bool
other UrlPathString
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetAttribute() public méthode

Gets the named attribute
public GetAttribute ( string attributeName ) : string
attributeName string
Résultat string

GetElementById() public méthode

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
Résultat ElementProxy

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

SetAttribute() public méthode

Sets the named attribute
public SetAttribute ( string attributeName, string value ) : void
attributeName string
value string
Résultat void

operator() public static méthode

public static operator ( ) : bool
Résultat bool