C# Class UserControlTP1.Utilities.HTMLVariableSetter

Manage HTML interaction
Show file Open project: antoinecronier/pokemon Class Usage Examples

Public Methods

Method 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 method

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

ScriptInvocatorSetAttribut() public method

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
return void

ScriptInvocatorSetStyle() public method

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
return void

ScriptInvocatorSetText() public method

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)
return void