C# 클래스 OnlineVideos.Sites.JSurf.Extensions.HtmlAgilityPackExtensions

Extension methods for htmlagilitypack
파일 보기 프로젝트 열기: offbyoneBB/mp-onlinevideos2

공개 메소드들

메소드 설명
FindAllChildElements ( this node ) : List

Find the first child which is a html element (not text or script blocks)

FindFirstChildElement ( this node ) : HtmlNode

Find the first child which is a html element (not text)

GetAttribute ( this node, string attributeName ) : string

Get a node attribute

GetElementById ( this document, string id ) : HtmlNode

Select all elements with the specified id

GetElementsByTagName ( this document, string tagName ) : HtmlAgilityPack.HtmlNodeCollection

Select all elements with the specified tag

GetInnerText ( this node ) : string

Get the innertext of the node, or an empty string if null

GetInnerTextTrim ( this node ) : string

Get the innertext of the node, or an empty string if null. Result will be cleared from newlines and trimmed by spaces.

GetNodeByClass ( this node, string className, bool allowPartialMatch = false ) : HtmlNode

Find the first descendent node which has the specified class

GetNodesByClass ( this node, string className, bool allowPartialMatch = false ) : List

Find all nodes matching a class

NavigatePath ( this node, int childPositions ) : HtmlNode

Navigate down a path using the position of child elements

메소드 상세

FindAllChildElements() 공개 정적인 메소드

Find the first child which is a html element (not text or script blocks)
public static FindAllChildElements ( this node ) : List
node this
리턴 List

FindFirstChildElement() 공개 정적인 메소드

Find the first child which is a html element (not text)
public static FindFirstChildElement ( this node ) : HtmlNode
node this
리턴 HtmlAgilityPack.HtmlNode

GetAttribute() 공개 정적인 메소드

Get a node attribute
public static GetAttribute ( this node, string attributeName ) : string
node this
attributeName string
리턴 string

GetElementById() 공개 정적인 메소드

Select all elements with the specified id
public static GetElementById ( this document, string id ) : HtmlNode
document this
id string
리턴 HtmlAgilityPack.HtmlNode

GetElementsByTagName() 공개 정적인 메소드

Select all elements with the specified tag
public static GetElementsByTagName ( this document, string tagName ) : HtmlAgilityPack.HtmlNodeCollection
document this
tagName string
리턴 HtmlAgilityPack.HtmlNodeCollection

GetInnerText() 공개 정적인 메소드

Get the innertext of the node, or an empty string if null
public static GetInnerText ( this node ) : string
node this
리턴 string

GetInnerTextTrim() 공개 정적인 메소드

Get the innertext of the node, or an empty string if null. Result will be cleared from newlines and trimmed by spaces.
public static GetInnerTextTrim ( this node ) : string
node this
리턴 string

GetNodeByClass() 공개 정적인 메소드

Find the first descendent node which has the specified class
public static GetNodeByClass ( this node, string className, bool allowPartialMatch = false ) : HtmlNode
node this
className string
allowPartialMatch bool if true, also partial class names will be matched (no trailing/leading space)
리턴 HtmlAgilityPack.HtmlNode

GetNodesByClass() 공개 정적인 메소드

Find all nodes matching a class
public static GetNodesByClass ( this node, string className, bool allowPartialMatch = false ) : List
node this
className string
allowPartialMatch bool if true, also partial class names will be matched (no trailing/leading space)
리턴 List

NavigatePath() 공개 정적인 메소드

Navigate down a path using the position of child elements
public static NavigatePath ( this node, int childPositions ) : HtmlNode
node this
childPositions int
리턴 HtmlAgilityPack.HtmlNode