C# Class UserControlTP1.Utilities.HTMLVariableSetter

Manage HTML interaction
Afficher le fichier Open project: antoinecronier/pokemon Class Usage Examples

Méthodes publiques

Méthode Description
HTMLVariableSetter ( WebView webview ) : System

HTMLVariableSetter constructor

ScriptInvocatorSetAttribut ( string element, string attribut, string value ) : void

Set top level attribut to value

ScriptInvocatorSetStyle ( string element, string attribut, string value ) : void

Set style attribut to value

ScriptInvocatorSetText ( string element, string value ) : void

Add text in the selected element and escape '\n' by 'br' tag and ''' by '\\''

Method Details

HTMLVariableSetter() public méthode

HTMLVariableSetter constructor
public HTMLVariableSetter ( WebView webview ) : System
webview Windows.UI.Xaml.Controls.WebView The webview where you display your HTML
Résultat System

ScriptInvocatorSetAttribut() public méthode

Set top level attribut to value
public ScriptInvocatorSetAttribut ( string element, string attribut, string value ) : void
element string An HTML element's name
attribut string Attribut's name of the specified element
value string New value for the attribut
Résultat void

ScriptInvocatorSetStyle() public méthode

Set style attribut to value
public ScriptInvocatorSetStyle ( string element, string attribut, string value ) : void
element string An HTML element's name
attribut string Name of the attribut to modify in the style attribut
value string New value for the attribut
Résultat void

ScriptInvocatorSetText() public méthode

Add text in the selected element and escape '\n' by 'br' tag and ''' by '\\''
public ScriptInvocatorSetText ( string element, string value ) : void
element string An HTML element's name
value string Value to set on the object (old setted value will be erase)
Résultat void