當前位置: 首頁>>代碼示例>>C#>>正文


C# StringHelper.value方法代碼示例

本文整理匯總了C#中System.StringHelper.value方法的典型用法代碼示例。如果您正苦於以下問題:C# StringHelper.value方法的具體用法?C# StringHelper.value怎麽用?C# StringHelper.value使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System.StringHelper的用法示例。


在下文中一共展示了StringHelper.value方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: LoadURL

        public void LoadURL(string url,
                            string frameName = "",
                            string username = "",
                            string password = "")
        {
            StringHelper urlStr = new StringHelper(url);
            StringHelper frameNameStr = new StringHelper(frameName);
            StringHelper usernameStr = new StringHelper(username);
            StringHelper passwordStr = new StringHelper(password);

            awe_webview_load_url(instance, urlStr.value(), frameNameStr.value(), usernameStr.value(), passwordStr.value());
        }
開發者ID:Oceanswave,項目名稱:AwesomiumSharp,代碼行數:12,代碼來源:WebView.cs

示例2: SetCustomResponsePage

        public static void SetCustomResponsePage(int statusCode, string filePath)
        {
            StringHelper filePathStr = new StringHelper(filePath);

            awe_webcore_set_custom_response_page(statusCode, filePathStr.value());
        }
開發者ID:Oceanswave,項目名稱:AwesomiumSharp,代碼行數:6,代碼來源:WebCore.cs

示例3: GetCookies

        public static String GetCookies(string url, bool excludeHttpOnly = true)
        {
            StringHelper urlStr = new StringHelper(url);

            IntPtr temp = awe_webcore_get_cookies(urlStr.value(), excludeHttpOnly);

            return StringHelper.ConvertAweString(temp);
        }
開發者ID:Oceanswave,項目名稱:AwesomiumSharp,代碼行數:8,代碼來源:WebCore.cs

示例4: SaveToPNG

        public bool SaveToPNG(string filePath,
                            bool preserveTransparency = false)
        {
            StringHelper filePathStr = new StringHelper(filePath);

            bool temp = awe_renderbuffer_save_to_png(renderbuffer, filePathStr.value(), preserveTransparency);

            return temp;
        }
開發者ID:keremkusmezer,項目名稱:AwesomiumSharp,代碼行數:9,代碼來源:RenderBuffer.cs

示例5: Initialize

        public static void Initialize(WebCore.Config config)
        {
            StringHelper userDataPathStr = new StringHelper(config.userDataPath);
            StringHelper pluginPathStr = new StringHelper(config.pluginPath);
            StringHelper logPathStr = new StringHelper(config.logPath);
            StringHelper userAgentOverrideStr = new StringHelper(config.userAgentOverride);
            StringHelper proxyServerStr = new StringHelper(config.proxyServer);
            StringHelper proxyConfigScriptStr = new StringHelper(config.proxyConfigScript);
            StringHelper customCSSStr = new StringHelper(config.customCSS);

            awe_webcore_initialize(config.enablePlugins,
                                     config.enableJavascript,
                                     userDataPathStr.value(),
                                     pluginPathStr.value(),
                                     logPathStr.value(),
                                     config.logLevel,
                                     userAgentOverrideStr.value(),
                                     proxyServerStr.value(),
                                     proxyConfigScriptStr.value(),
                                     config.saveCacheAndCookies,
                                     config.maxCacheSize,
                                     config.disableSameOriginPolicy,
                                     customCSSStr.value());

            activeWebViews = new List<Object>();
        }
開發者ID:Oceanswave,項目名稱:AwesomiumSharp,代碼行數:26,代碼來源:WebCore.cs

示例6: HasProperty

        public bool HasProperty(string propertyName)
        {
            StringHelper propertyNameStr = new StringHelper(propertyName);

            return awe_jsobject_has_property(instance, propertyNameStr.value());
        }
開發者ID:Oceanswave,項目名稱:AwesomiumSharp,代碼行數:6,代碼來源:JSValue.cs

示例7: SetPropery

        public void SetPropery(string propertyName,
                               JSValue value)
        {
            StringHelper propertyNameStr = new StringHelper(propertyName);

            awe_jsobject_set_property(instance, propertyNameStr.value(), value.getInstance());
        }
開發者ID:Oceanswave,項目名稱:AwesomiumSharp,代碼行數:7,代碼來源:JSValue.cs

示例8: CreateObject

        public void CreateObject(string objectName)
        {
            StringHelper objectNameStr = new StringHelper(objectName);

            awe_webview_create_object(instance, objectNameStr.value());
        }
開發者ID:Oceanswave,項目名稱:AwesomiumSharp,代碼行數:6,代碼來源:WebView.cs

示例9: DestroyObject

        public void DestroyObject(string objectName)
        {
            StringHelper objectNameStr = new StringHelper(objectName);

            awe_webview_destroy_object(instance, objectNameStr.value());
        }
開發者ID:Oceanswave,項目名稱:AwesomiumSharp,代碼行數:6,代碼來源:WebView.cs

示例10: ExecuteJavascriptWithResult

        public JSValue ExecuteJavascriptWithResult(string javascript,
                                                  string frameName = "",
                                                  int timeoutMs = 0)
        {
            StringHelper javascriptStr = new StringHelper(javascript);
            StringHelper frameNameStr = new StringHelper(frameName);

            IntPtr temp = awe_webview_execute_javascript_with_result(instance, javascriptStr.value(), frameNameStr.value(), timeoutMs);

            JSValue result = new JSValue(temp);
            result.ownsInstance = true;

            return result;
        }
開發者ID:Oceanswave,項目名稱:AwesomiumSharp,代碼行數:14,代碼來源:WebView.cs

示例11: CallJavascriptFunction

        public void CallJavascriptFunction(string objectName,
                                           string function,
                                           params JSValue[] arguments)
        {
            IntPtr jsarray = JSArrayHelper.createArray(arguments);

            StringHelper objectNameStr = new StringHelper(objectName);
            StringHelper functionStr = new StringHelper(function);
            StringHelper frameNameStr = new StringHelper("");

            awe_webview_call_javascript_function(instance, objectNameStr.value(), functionStr.value(), jsarray, frameNameStr.value());

            JSArrayHelper.destroyArray(jsarray);
        }
開發者ID:Oceanswave,項目名稱:AwesomiumSharp,代碼行數:14,代碼來源:WebView.cs

示例12: ExecuteJavascript

        public void ExecuteJavascript(string javascript,
                                      string frameName = "")
        {
            StringHelper javascriptStr = new StringHelper(javascript);
            StringHelper frameNameStr = new StringHelper(frameName);

            awe_webview_execute_javascript(instance, javascriptStr.value(), frameNameStr.value());
        }
開發者ID:Oceanswave,項目名稱:AwesomiumSharp,代碼行數:8,代碼來源:WebView.cs

示例13: LoadFile

        public void LoadFile(string file,
                             string frameName = "")
        {
            StringHelper fileStr = new StringHelper(file);
            StringHelper frameNameStr = new StringHelper(frameName);

            awe_webview_load_file(instance, fileStr.value(), frameNameStr.value());
        }
開發者ID:Oceanswave,項目名稱:AwesomiumSharp,代碼行數:8,代碼來源:WebView.cs

示例14: LoadHTML

        public void LoadHTML(string html,
                             string frameName = "")
        {
            StringHelper htmlStr = new StringHelper(html);
            StringHelper frameNameStr = new StringHelper(frameName);

            awe_webview_load_html(instance, htmlStr.value(), frameNameStr.value());
        }
開發者ID:Oceanswave,項目名稱:AwesomiumSharp,代碼行數:8,代碼來源:WebView.cs

示例15: ChooseFile

        public void ChooseFile(string filePath)
        {
            StringHelper filePathStr = new StringHelper(filePath);

            awe_webview_choose_file(instance, filePathStr.value());
        }
開發者ID:Oceanswave,項目名稱:AwesomiumSharp,代碼行數:6,代碼來源:WebView.cs


注:本文中的System.StringHelper.value方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。