本文整理汇总了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());
}
示例2: SetCustomResponsePage
public static void SetCustomResponsePage(int statusCode, string filePath)
{
StringHelper filePathStr = new StringHelper(filePath);
awe_webcore_set_custom_response_page(statusCode, filePathStr.value());
}
示例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);
}
示例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;
}
示例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>();
}
示例6: HasProperty
public bool HasProperty(string propertyName)
{
StringHelper propertyNameStr = new StringHelper(propertyName);
return awe_jsobject_has_property(instance, propertyNameStr.value());
}
示例7: SetPropery
public void SetPropery(string propertyName,
JSValue value)
{
StringHelper propertyNameStr = new StringHelper(propertyName);
awe_jsobject_set_property(instance, propertyNameStr.value(), value.getInstance());
}
示例8: CreateObject
public void CreateObject(string objectName)
{
StringHelper objectNameStr = new StringHelper(objectName);
awe_webview_create_object(instance, objectNameStr.value());
}
示例9: DestroyObject
public void DestroyObject(string objectName)
{
StringHelper objectNameStr = new StringHelper(objectName);
awe_webview_destroy_object(instance, objectNameStr.value());
}
示例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;
}
示例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);
}
示例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());
}
示例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());
}
示例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());
}
示例15: ChooseFile
public void ChooseFile(string filePath)
{
StringHelper filePathStr = new StringHelper(filePath);
awe_webview_choose_file(instance, filePathStr.value());
}