@@ -79,6 +79,11 @@ public void SetElementText ( IntPtr element, string text ) {
7979 m_basicApi . SciterSetElementText ( element , text , ( uint ) text . Length ) ;
8080 }
8181
82+ public void SetElementHtml ( IntPtr element , string text , SetElementHtml insertMode ) {
83+ var bytes = Encoding . UTF8 . GetBytes ( text ) ;
84+ m_basicApi . SciterSetElementHtml ( element , bytes , ( uint ) bytes . Length , insertMode ) ;
85+ }
86+
8287 public string GetElementAttribute ( IntPtr element , string name ) {
8388 var strings = new List < string > ( ) ;
8489 lpcwstReceiver callback = ( IntPtr bytes , uint num_bytes , IntPtr param ) => {
@@ -153,11 +158,6 @@ public void SetElementAttribute ( IntPtr element, string name, string value ) {
153158 m_basicApi . SciterSetAttributeByName ( element , name , value ) ;
154159 }
155160
156- public void SetElementHtml ( IntPtr element , string text , SetElementHtml insertMode ) {
157- var bytes = Encoding . UTF8 . GetBytes ( text ) ;
158- m_basicApi . SciterSetElementHtml ( element , bytes , ( uint ) bytes . Length , insertMode ) ;
159- }
160-
161161 public string GetElementStyleProperty ( IntPtr element , string name ) {
162162 var valueReceiver = new LPCWStrReceiverCallback ( ) ;
163163
0 commit comments