Ejemplo n.º 1
0
 /// <summary>
 /// Adds the contents of another <see cref='OpenLiveWriter.Controls.LightweightControlCollection'/> to the end of the collection.
 /// </summary>
 /// <param name='value'>A <see cref='OpenLiveWriter.Controls.LightweightControlCollection'/> containing the objects to add to the collection.</param>
 /// <seealso cref='OpenLiveWriter.Controls.LightweightControlCollection.Add'/>
 public void AddRange(LightweightControlCollection value)
 {
     for (int i = 0; i < value.Count; i++)
     {
         this.Add(value[i]);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of <see cref='OpenLiveWriter.Controls.LightweightControlCollection'/> based on another <see cref='OpenLiveWriter.Controls.LightweightControlCollection'/>.
 /// </summary>
 /// <param name='value'>A <see cref='OpenLiveWriter.Controls.LightweightControlCollection'/> from which the contents are copied.</param>
 public LightweightControlCollection(LightweightControlCollection value)
 {
     AddRange(value);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the LightweightControlEnumerator class.
 /// </summary>
 /// <param name="mappings"></param>
 public LightweightControlEnumerator(LightweightControlCollection mappings)
 {
     this.temp           = ((IEnumerable)(mappings));
     this.baseEnumerator = temp.GetEnumerator();
 }
 /// <summary>
 /// Initializes a new instance of <see cref='OpenLiveWriter.Controls.LightweightControlCollection'/> based on another <see cref='OpenLiveWriter.Controls.LightweightControlCollection'/>.
 /// </summary>
 /// <param name='value'>A <see cref='OpenLiveWriter.Controls.LightweightControlCollection'/> from which the contents are copied.</param>
 public LightweightControlCollection(LightweightControlCollection value)
 {
     AddRange(value);
 }
 /// <summary>
 /// Initializes a new instance of the LightweightControlEnumerator class.
 /// </summary>
 /// <param name="mappings"></param>
 public LightweightControlEnumerator(LightweightControlCollection mappings)
 {
     this.temp = ((IEnumerable)(mappings));
     this.baseEnumerator = temp.GetEnumerator();
 }
 /// <summary>
 /// Adds the contents of another <see cref='OpenLiveWriter.Controls.LightweightControlCollection'/> to the end of the collection.
 /// </summary>
 /// <param name='value'>A <see cref='OpenLiveWriter.Controls.LightweightControlCollection'/> containing the objects to add to the collection.</param>
 /// <seealso cref='OpenLiveWriter.Controls.LightweightControlCollection.Add'/>
 public void AddRange(LightweightControlCollection value)
 {
     for (int i = 0; i < value.Count; i++)
         this.Add(value[i]);
 }
        /// <summary>
        /// Initializes a new instance of the TwistieLightweightControl class.
        /// </summary>
        private void InitializeObject()
        {
            //	Instantiate the lightweight control collection.
            lightweightControls = new LightweightControlCollection(this);

            //	Set the default virtual size.
            VirtualSize = DefaultVirtualSize;
        }
        /// <summary>
        /// Initializes a new instance of the LightweightScrollableControl class.
        /// </summary>
        public LightweightControlContainerControl()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            //	Instantiate the lightweight control collection.
            lightweightControls = new LightweightControlCollection(this);

            //	Turn on double buffered painting.
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.DoubleBuffer, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);

            //	Redraw the control on resize.
            SetStyle(ControlStyles.ResizeRedraw, true);
        }