コード例 #1
0
        /// <summary>
        /// Returns the value at the specified key as type dictionary.
        /// </summary>
        public CefDictionaryValue GetDictionary(string key)
        {
            fixed(char *key_str = key)
            {
                var n_key    = new cef_string_t(key_str, key != null ? key.Length : 0);
                var n_result = cef_dictionary_value_t.get_dictionary(_self, &n_key);

                return(CefDictionaryValue.FromNative(n_result));
            }
        }
コード例 #2
0
 /// <summary>
 /// Returns a writable copy of this object. If |exclude_empty_children| is true
 /// any empty dictionaries or lists will be excluded from the copy.
 /// </summary>
 public CefDictionaryValue Copy(bool excludeEmptyChildren)
 {
     return(CefDictionaryValue.FromNative(
                cef_dictionary_value_t.copy(_self, excludeEmptyChildren ? 1 : 0)
                ));
 }
コード例 #3
0
 /// <summary>
 /// Creates a new object that is not owned by any other object.
 /// </summary>
 public static CefDictionaryValue Create()
 {
     return(CefDictionaryValue.FromNative(
                cef_dictionary_value_t.create()
                ));
 }