Пример #1
0
 public void TransformHTML(string html, SciterXDom.SET_ELEMENT_HTML how = SciterXDom.SET_ELEMENT_HTML.SIH_REPLACE_CONTENT)
 {
     var bytes = Encoding.UTF8.GetBytes(html);
     _api.SciterSetElementHtml(_he, bytes, (uint) bytes.Length, how);
 }
Пример #2
0
 public void SetHTML(string html, SciterXDom.SET_ELEMENT_HTML where = SciterXDom.SET_ELEMENT_HTML.SIH_REPLACE_CONTENT)
 {
     if(html==null)
         Clear();
     else
     {
         var data = Encoding.UTF8.GetBytes(html);
         _api.SciterSetElementHtml(_he, data, (uint) data.Length, where);
     }
 }
Пример #3
0
 public void SetState(SciterXDom.ELEMENT_STATE_BITS bitsToSet, SciterXDom.ELEMENT_STATE_BITS bitsToClear = 0, bool update = true)
 {
     var r = _api.SciterSetElementState(_he, (uint) bitsToSet, (uint) bitsToClear, update);
     Debug.Assert(r == SciterXDom.SCDOM_RESULT.SCDOM_OK);
 }
Пример #4
0
 public PInvokeUtils.RECT GetLocation(SciterXDom.ELEMENT_AREAS area = SciterXDom.ELEMENT_AREAS.ROOT_RELATIVE | SciterXDom.ELEMENT_AREAS.CONTENT_BOX)
 {
     PInvokeUtils.RECT rc;
     _api.SciterGetElementLocation(_he, out rc, area);
     return rc;
 }