C# 클래스 UserControlTP1.Utilities.HTMLVariableSetter

Manage HTML interaction
파일 보기 프로젝트 열기: antoinecronier/pokemon 1 사용 예제들

공개 메소드들

메소드 설명
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