/// <summary> /// <para> /// Adds the contents of another RadItemCollection to the end of the collection. /// </para> /// </summary> /// <param name='value'> /// A RadItemCollection containing the objects to add to the collection. /// </param> /// <returns> /// <para>None.</para> /// </returns> public void AddRange(CommandBarStripElementCollection value) { for (int i = 0; (i < value.Count); i = (i + 1)) { this.Add(value[i]); } }
private void strips_ItemsChanged(CommandBarStripElementCollection changed, CommandBarStripElement target, ItemsChangeOperation operation) { if (operation == ItemsChangeOperation.Inserted || operation == ItemsChangeOperation.Set) { target.Orientation = this.orientation; if (this.owner != null) { this.owner.StripInfoHolder.AddStripInfo(target); } } if (operation == ItemsChangeOperation.Removed || operation == ItemsChangeOperation.Setting) { if (this.owner != null) { this.owner.StripInfoHolder.RemoveStripInfo(target); } } if (operation == ItemsChangeOperation.Clearing && this.owner != null) { foreach (CommandBarStripElement strip in this.strips) { this.owner.StripInfoHolder.RemoveStripInfo(strip); } } }
public void AddRange(CommandBarStripElementCollection value) { for (int index = 0; index < value.Count; ++index) { this.Add(value[index]); } }
protected override void CreateChildElements() { base.CreateChildElements(); this.strips = new CommandBarStripElementCollection(this); this.strips.ItemTypes = new Type[] { typeof(CommandBarStripElement) }; this.strips.ItemsChanged += new CommandBarStripElementCollectionItemChangedDelegate(strips_ItemsChanged); this.SetOrientationCore(this.Orientation); }
/// <summary> /// Initializes a new instance of the RadElementEnumerator class. /// </summary> /// <param name="mappings"></param> public CommandBarStripElementEnumerator(CommandBarStripElementCollection mappings) { this.temp = ((IEnumerable)(mappings)); this.baseEnumerator = temp.GetEnumerator(); }
/// <summary> /// <para> /// Initializes a new instance of RadItemCollection based on another RadItemCollection. /// </para> /// </summary> /// <param name='value'> /// A RadItemCollection from which the contents are copied. /// </param> public CommandBarStripElementCollection(CommandBarStripElementCollection value) { this.AddRange(value); }