Exemple #1
0
 public static O2BrowserIE editMode(this O2BrowserIE o2BrowserIE)
 {
     return((O2BrowserIE)o2BrowserIE.invokeOnThread(
                () =>
     {
         o2BrowserIE.HtmlEditMode = true;
         return o2BrowserIE;
     }));
 }
Exemple #2
0
 public static O2BrowserIE silent(this O2BrowserIE o2BrowserIE, bool value)
 {
     return((O2BrowserIE)o2BrowserIE.invokeOnThread(
                () =>
     {
         o2BrowserIE.ActiveXInstance.prop("Silent", value);
         return o2BrowserIE;
     }));
 }
Exemple #3
0
 public static O2BrowserIE set_Text(this O2BrowserIE o2BrowserIE, string text)
 {
     return((O2BrowserIE)o2BrowserIE.invokeOnThread(
                () =>
     {
         o2BrowserIE.DocumentText = text;
         return o2BrowserIE;
     }));
 }
Exemple #4
0
 public static O2BrowserIE cookie(this O2BrowserIE o2BrowserIE, string value)
 {
     return((O2BrowserIE)o2BrowserIE.invokeOnThread(
                () =>
     {
         var document = o2BrowserIE.document();
         if (document != null)
         {
             document.Cookie = value;
         }
         return o2BrowserIE;
     }));
 }
Exemple #5
0
        public static O2BrowserIE onEditedHtmlChange(this O2BrowserIE o2BrowserIE, Action <string> onHtmlChange)
        {
            return((O2BrowserIE)o2BrowserIE.invokeOnThread(() =>
            {
                if (o2BrowserIE.Document != null)
                {
                    var markupContainer2 = (mshtml.IMarkupContainer2)o2BrowserIE.Document.DomDocument;

                    uint pdwCookie;
                    markupContainer2.RegisterForDirtyRange(
                        new IEChangeSink(() => onHtmlChange(o2BrowserIE.html())), out pdwCookie);
                }
                return o2BrowserIE;
            }));
        }
Exemple #6
0
 public static string cookie(this O2BrowserIE o2BrowserIE)
 {
     return((string)o2BrowserIE.invokeOnThread(() => o2BrowserIE.document().Cookie));
 }
Exemple #7
0
 public static string text(this O2BrowserIE o2BrowserIE)
 {
     return((string)o2BrowserIE.invokeOnThread(() => o2BrowserIE.DocumentText));
 }
Exemple #8
0
 public static HtmlDocument document(this O2BrowserIE o2BrowserIE)
 {
     return((HtmlDocument)o2BrowserIE.invokeOnThread(() => o2BrowserIE.Document));
 }