/// <summary> /// Gets an IEnumerable<T> 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); }
/// <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); }
/// <summary> /// Returns a map of all element attributes. /// </summary> public unsafe virtual void GetElementAttributes(CefStringMap attrMap) { NativeInstance->GetElementAttributes(attrMap); GC.KeepAlive(this); }