Inheritance: ToolStripDropDownButton
 /// <include file='doc\ToolStripOverflow.uex' path='docs/doc[@for="ToolStripOverflow.ToolStripOverflow"]/*' />
 public ToolStripOverflow(ToolStripItem parentItem) : base(parentItem)
 {
     if (parentItem == null)
     {
         throw new ArgumentNullException("parentItem");
     }
     ownerItem = parentItem as ToolStripOverflowButton;
 }
 public ToolStripOverflow(ToolStripItem parentItem) : base(parentItem)
 {
     if (parentItem == null)
     {
         throw new ArgumentNullException("parentItem");
     }
     this.ownerItem = parentItem as ToolStripOverflowButton;
 }
 public ToolStripOverflowButtonAccessibleObject(ToolStripOverflowButton owner) : base(owner){
 }
Exemple #4
0
        public ToolStripOverflow(ToolStripItem parentItem) : base(parentItem)
        {
            ArgumentNullException.ThrowIfNull(parentItem);

            ownerItem = parentItem as ToolStripOverflowButton;
        }
Exemple #5
0
		public ToolStrip (params ToolStripItem[] items) : base ()
		{
			SetStyle (ControlStyles.AllPaintingInWmPaint, true);
			SetStyle (ControlStyles.OptimizedDoubleBuffer, true);
			SetStyle (ControlStyles.Selectable, false);
			SetStyle (ControlStyles.SupportsTransparentBackColor, true);

			this.SuspendLayout ();
			
			this.items = new ToolStripItemCollection (this, items, true);
			this.allow_merge = true;
			base.AutoSize = true;
			this.SetAutoSizeMode (AutoSizeMode.GrowAndShrink);
			this.back_color = Control.DefaultBackColor;
			this.can_overflow = true;
			base.CausesValidation = false;
			this.default_drop_down_direction = ToolStripDropDownDirection.BelowRight;
			this.displayed_items = new ToolStripItemCollection (this, null, true);
			this.Dock = this.DefaultDock;
			base.Font = new Font ("Tahoma", 8.25f);
			this.fore_color = Control.DefaultForeColor;
			this.grip_margin = this.DefaultGripMargin;
			this.grip_style = ToolStripGripStyle.Visible;
			this.image_scaling_size = new Size (16, 16);
			this.layout_style = ToolStripLayoutStyle.HorizontalStackWithOverflow;
			this.orientation = Orientation.Horizontal;
			if (!(this is ToolStripDropDown))
				this.overflow_button = new ToolStripOverflowButton (this);
			this.renderer = null;
			this.render_mode = ToolStripRenderMode.ManagerRenderMode;
			this.show_item_tool_tips = this.DefaultShowItemToolTips;
			base.TabStop = false;
			this.text_direction = ToolStripTextDirection.Horizontal;
			this.ResumeLayout ();
			
			// Register with the ToolStripManager
			ToolStripManager.AddToolStrip (this);
		}
Exemple #6
0
 public ToolStripOverflowButtonAccessibleObject(ToolStripOverflowButton owner) : base(owner)
 {
 }