C# Class QualityBot.Scrapers.ElementProvider

Inheritance: IElementProvider
Afficher le fichier Open project: Ancestry/quality-bot Class Usage Examples

Méthodes publiques

Méthode Description
Elements ( ) : IEnumerable

Loads the ScrapedElements.

Load ( string elementsJson, string html, Rectangle boundingRectangle ) : void

Loads the specified elements json.

Private Methods

Méthode Description
DictionaryFromJson ( string json ) : string>.Dictionary

Dictionaries from json.

GetElementCss ( object>.Dictionary element ) : string>.Dictionary

Gets the CSS element.

GetElementRectangle ( object>.Dictionary element ) : Rectangle

Gets the element Rectangle.

GetElementText ( object>.Dictionary element ) : string

Gets the element text.

GetNodeAttributes ( HtmlNode node ) : string>.Dictionary

Gets the node attributes.

GetNodeHtml ( HtmlNode node ) : string

Gets the node HTML.

GetNodeTag ( HtmlNode node ) : string

Gets the node tag.

IntFromObject ( object number ) : int

Ints from object.

RectangleFromDynamic ( dynamic rectangle ) : Rectangle

Returns a Rectangle object derived from a dynamic key value pair object.

StringFromDynamic ( dynamic obj ) : string

Strings from dynamic.

TryGetNode ( int index, HtmlNode &node ) : bool

Tries to get the node.

Method Details

Elements() public méthode

Loads the ScrapedElements.
public Elements ( ) : IEnumerable
Résultat IEnumerable

Load() public méthode

Loads the specified elements json.
public Load ( string elementsJson, string html, Rectangle boundingRectangle ) : void
elementsJson string The elements json.
html string The HTML.
boundingRectangle System.Drawing.Rectangle The bounding rectangle.
Résultat void