/// <summary>
        /// Sets the value at the specified key as type list. Returns true if the
        /// value was set successfully. If |value| is currently owned by another object
        /// then the value will be copied and the |value| reference will not change.
        /// Otherwise, ownership will be transferred to this object and the |value|
        /// reference will be invalidated.
        /// </summary>
        public bool SetList(string key, CefListValue value)
        {
            if (value == null)
                throw new ArgumentNullException("value");

            fixed(char *key_str = key)
            {
                var n_key = new cef_string_t(key_str, key != null ? key.Length : 0);

                return(cef_dictionary_value_t.set_list(_self, &n_key, value.ToNative()) != 0);
            }
        }
Exemple #2
0
 /// <summary>
 /// Sets the value at the specified index as type list. Returns true if the
 /// value was set successfully. After calling this method the |value| object
 /// will no longer be valid. If |value| is currently owned by another object
 /// then the value will be copied and the |value| reference will not change.
 /// Otherwise, ownership will be transferred to this object and the |value|
 /// reference will be invalidated.
 /// </summary>
 public bool SetList(int index, CefListValue value)
 {
     return cef_list_value_t.set_list(_self, index, value.ToNative()) != 0;
 }
 /// <summary>
 /// Sets the underlying value as type list. Returns true if the value was set
 /// successfully. This object keeps a reference to |value| and ownership of the
 /// underlying data remains unchanged.
 /// </summary>
 public bool SetList(CefListValue value)
 {
     return(cef_value_t.set_list(_self, value.ToNative()) != 0);
 }
Exemple #4
0
 /// <summary>
 /// Returns true if this object and |that| object have an equivalent underlying
 /// value but are not necessarily the same object.
 /// </summary>
 public bool IsEqual(CefListValue that)
 {
     return(cef_list_value_t.is_equal(_self, that.ToNative()) != 0);
 }
Exemple #5
0
 /// <summary>
 /// Returns true if this object and |that| object have the same underlying
 /// data. If true modifications to this object will also affect |that| object
 /// and vice-versa.
 /// </summary>
 public bool IsSame(CefListValue that)
 {
     return(cef_list_value_t.is_same(_self, that.ToNative()) != 0);
 }
Exemple #6
0
 /// <summary>
 /// Sets the value at the specified index as type list. Returns true if the
 /// value was set successfully. If |value| is currently owned by another object
 /// then the value will be copied and the |value| reference will not change.
 /// Otherwise, ownership will be transferred to this object and the |value|
 /// reference will be invalidated.
 /// </summary>
 public bool SetList(int index, CefListValue value)
 {
     return(cef_list_value_t.set_list(_self, checked ((UIntPtr)index), value.ToNative()) != 0);
 }
 /// <summary>
 /// Sets the value at the specified index as type list. Returns true if the
 /// value was set successfully. If |value| is currently owned by another object
 /// then the value will be copied and the |value| reference will not change.
 /// Otherwise, ownership will be transferred to this object and the |value|
 /// reference will be invalidated.
 /// </summary>
 public bool SetList(int index, CefListValue value)
 {
     return(cef_list_value_t.set_list(_self, index, value.ToNative()) != 0);
 }
Exemple #8
0
        /// <summary>
        /// Sets the value at the specified key as type list. Returns true if the
        /// value was set successfully. After calling this method the |value| object
        /// will no longer be valid. If |value| is currently owned by another object
        /// then the value will be copied and the |value| reference will not change.
        /// Otherwise, ownership will be transferred to this object and the |value|
        /// reference will be invalidated.
        /// </summary>
        public bool SetList(string key, CefListValue value)
        {
            if (value == null) throw new ArgumentNullException("value");

            fixed (char* key_str = key)
            {
                var n_key = new cef_string_t(key_str, key != null ? key.Length : 0);
                return cef_dictionary_value_t.set_list(_self, &n_key, value.ToNative()) != 0;
            }
        }