C# Класс UserControlTP1.Utilities.HTMLVariableSetter

Manage HTML interaction
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 '\\''

Описание методов

HTMLVariableSetter() публичный Метод

HTMLVariableSetter constructor
public HTMLVariableSetter ( WebView webview ) : System
webview Windows.UI.Xaml.Controls.WebView The webview where you display your HTML
Результат System

ScriptInvocatorSetAttribut() публичный Метод

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
Результат void

ScriptInvocatorSetStyle() публичный Метод

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
Результат void

ScriptInvocatorSetText() публичный Метод

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)
Результат void