当前位置: 首页>>代码示例>>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;未经允许,请勿转载。