C# 클래스 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.
파일 보기 프로젝트 열기: BloomBooks/BloomDesktop 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
Equals ( UrlPathString other ) : bool

메소드 상세

ElementProxy() 공개 메소드

public ElementProxy ( GeckoHtmlElement element ) : System
element GeckoHtmlElement
리턴 System

ElementProxy() 공개 메소드

public ElementProxy ( XmlElement element ) : System
element System.Xml.XmlElement
리턴 System

Equals() 보호된 메소드

protected Equals ( UrlPathString other ) : bool
other UrlPathString
리턴 bool

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetAttribute() 공개 메소드

Gets the named attribute
public GetAttribute ( string attributeName ) : string
attributeName string
리턴 string

GetElementById() 공개 메소드

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
리턴 ElementProxy

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

SetAttribute() 공개 메소드

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

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool