Example #1
0
        /// <summary>
        /// Gets an IEnumerable&lt;T&gt; view of switch names and values.
        /// </summary>
        /// <returns>An enumerable view of switches.</returns>
        public IEnumerable <KeyValuePair <string, string> > GetSwitches()
        {
            List <KeyValuePair <string, string> > items;

            using (var map = new CefStringMap())
            {
                this.GetSwitches(map);
                int count = map.Count;
                items = new List <KeyValuePair <string, string> >(count);
                for (int i = 0; i < count; i++)
                {
                    items.Add(map.Get(i));
                }
            }
            return(items);
        }
Example #2
0
 /// <summary>
 /// Returns the map of switch names and values. If a switch has no value an
 /// NULL string is returned.
 /// </summary>
 public unsafe virtual void GetSwitches(CefStringMap switches)
 {
     NativeInstance->GetSwitches(switches);
     GC.KeepAlive(this);
 }
Example #3
0
 /// <summary>
 /// Returns a map of all element attributes.
 /// </summary>
 public unsafe virtual void GetElementAttributes(CefStringMap attrMap)
 {
     NativeInstance->GetElementAttributes(attrMap);
     GC.KeepAlive(this);
 }