System.Windows.Forms.ToolStripItem.ToolStripItem C# (CSharp) Method

ToolStripItem() protected method

protected ToolStripItem ( string text, Image image, EventHandler onClick, string name ) : System.Drawing
text string
image Image
onClick EventHandler
name string
return System.Drawing
		protected ToolStripItem (string text, Image image, EventHandler onClick, string name)
		{
			//this.alignment = ToolStripItemAlignment.Left;
			this.anchor = AnchorStyles.Left | AnchorStyles.Top;
			this.auto_size = true;
			this.auto_tool_tip = this.DefaultAutoToolTip;
			this.available = true;
			this.back_color = Color.Empty;
			this.background_image_layout = ImageLayout.Tile;
			this.can_select = true;
			//this.display_style = this.DefaultDisplayStyle;
			this.dock = DockStyle.None;
			this.enabled = true;
			this.fore_color = Color.Empty;
			this.image = image;
			this.image_align = ContentAlignment.MiddleCenter;
			this.image_index = -1;
			this.image_key = string.Empty;
			//this.image_scaling = ToolStripItemImageScaling.SizeToFit;
			this.image_transparent_color = Color.Empty;
			this.margin = this.DefaultMargin;
			//this.merge_action = MergeAction.Append;
			this.merge_index = -1;
			this.name = name;
			//this.overflow = ToolStripItemOverflow.AsNeeded;
			this.padding = this.DefaultPadding;
			//this.placement = ToolStripItemPlacement.None;
			this.right_to_left = RightToLeft.Inherit;
			this.bounds.Size = this.DefaultSize;
			this.text = text;
			this.text_align = ContentAlignment.MiddleCenter;
			//this.text_direction = DefaultTextDirection;
			//this.text_image_relation = TextImageRelation.ImageBeforeText;
			this.visible = true;
			
			this.Click += onClick;
			OnLayout (new LayoutEventArgs (null, string.Empty));
		}
		internal NSToolbarItem m_helper;

Same methods

ToolStripItem::ToolStripItem ( ) : System
ToolStripItem::ToolStripItem ( string text, Image image, EventHandler onClick ) : System