예제 #1
0
        /// <summary>
        /// Sets the value at the specified key as type list. Returns true (1) 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 unsafe virtual bool SetList(string key, CefListValue value)
        {
            fixed(char *s0 = key)
            {
                var cstr0 = new cef_string_t {
                    Str = s0, Length = key != null ? key.Length : 0
                };

                return(SafeCall(NativeInstance->SetList(&cstr0, (value != null) ? value.GetNativeInstance() : null) != 0));
            }
        }
예제 #2
0
 /// <summary>
 /// Returns true (1) if this object and |that| object have an equivalent
 /// underlying value but are not necessarily the same object.
 /// </summary>
 public unsafe virtual bool IsEqual(CefListValue that)
 {
     return(SafeCall(NativeInstance->IsEqual((that != null) ? that.GetNativeInstance() : null) != 0));
 }
예제 #3
0
 /// <summary>
 /// Sets the value at the specified index as type list. Returns true (1) 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 unsafe virtual bool SetList(long index, CefListValue value)
 {
     return(SafeCall(NativeInstance->SetList(new UIntPtr((ulong)index), (value != null) ? value.GetNativeInstance() : null) != 0));
 }
예제 #4
0
파일: CefValue.cs 프로젝트: wuzlai/AGTkDemo
 /// <summary>
 /// Sets the underlying value as type list. Returns true (1) if the value was
 /// set successfully. This object keeps a reference to |value| and ownership of
 /// the underlying data remains unchanged.
 /// </summary>
 public unsafe virtual bool SetList(CefListValue value)
 {
     return(SafeCall(NativeInstance->SetList((value != null) ? value.GetNativeInstance() : null) != 0));
 }