/// <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(RadCommandBarLinesElementCollection value)
 {
     for (int i = 0; (i < value.Count); i = (i + 1))
     {
         this.Add(value[i]);
     }
 }
 public void AddRange(RadCommandBarLinesElementCollection value)
 {
     for (int index = 0; index < value.Count; ++index)
     {
         this.Add(value[index]);
     }
 }
Esempio n. 3
0
        protected virtual void ItemsChanged(RadCommandBarLinesElementCollection changed, CommandBarRowElement target, ItemsChangeOperation operation)
        {
            if (operation != ItemsChangeOperation.Inserted)
            {
                return;
            }

            CommandBarRowElement panel = target as CommandBarRowElement;

            if (panel == null)
            {
                return;
            }

            panel.Owner       = this;
            panel.Orientation = this.Orientation;
        }
Esempio n. 4
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            this.stripInfoHolder = new CommandBarStripInfoHolder();
            this.Text            = "";
            this.layoutPanel     = new StackLayoutPanel();
            this.lines           = new RadCommandBarLinesElementCollection((RadElement)this.layoutPanel);
            this.lines.ItemTypes = new System.Type[1]
            {
                typeof(CommandBarRowElement)
            };
            this.DrawBorder = false;
            this.DrawFill   = true;
            int num = (int)this.SetDefaultValueOverride(RadElement.MinSizeProperty, (object)new Size(30, 30));

            this.Children.Add((RadElement)this.layoutPanel);
            this.StretchHorizontally = false;
            this.StretchVertically   = false;
            this.SetOrientationCore(this.Orientation);
            this.WireEvents();
        }
 /// <summary>
 /// Initializes a new instance of the RadElementEnumerator class.
 /// </summary>
 /// <param name="mappings"></param>
 public CommandBarRowElementEnumerator(RadCommandBarLinesElementCollection 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 RadCommandBarLinesElementCollection(RadCommandBarLinesElementCollection value)
 {
     this.AddRange(value);
 }