System.Windows.Forms.ToolStripItem: Property Members

The properties of System.Windows.Forms.ToolStripItem are listed below. For a list of all members, see the ToolStripItem Members list.

See Also: Inherited members from System.ComponentModel.Component

Public Properties

[read-only]
AccessibilityObjectAccessibleObject.

Gets the System.Windows.Forms.AccessibleObject assigned to the control.

AccessibleDefaultActionDescriptionstring.

Gets or sets the default action description of the control for use by accessibility client applications.

AccessibleDescriptionstring.

Gets or sets the description that will be reported to accessibility client applications.

AccessibleNamestring.

Gets or sets the name of the control for use by accessibility client applications.

AccessibleRoleAccessibleRole.

Gets or sets the accessible role of the control, which specifies the type of user interface element of the control.

AlignmentToolStripItemAlignment.

Gets or sets a value indicating whether the item aligns towards the beginning or end of the System.Windows.Forms.ToolStrip.

AllowDropbool.

Gets or sets a value indicating whether drag-and-drop and item reordering are handled through events that you implement.

AnchorAnchorStyles.

Gets or sets the edges of the container to which a System.Windows.Forms.ToolStripItem is bound and determines how a System.Windows.Forms.ToolStripItem is resized with its parent.

AutoSizebool.

Gets or sets a value indicating whether the item is automatically sized.

AutoToolTipbool.

Gets or sets a value indicating whether to use the ToolStripItem.Text property or the ToolStripItem.ToolTipText property for the System.Windows.Forms.ToolStripItem ToolTip.

Availablebool.

Gets or sets a value indicating whether the System.Windows.Forms.ToolStripItem should be placed on a System.Windows.Forms.ToolStrip.

BackColorSystem.Drawing.Color.

Gets or sets the background color for the item.

BackgroundImageSystem.Drawing.Image.

Gets or sets the background image displayed in the item.

BackgroundImageLayoutImageLayout.

Gets or sets the background image layout used for the System.Windows.Forms.ToolStripItem.

[read-only]
BoundsSystem.Drawing.Rectangle.

Gets the size and location of the item.

[read-only]
CanSelectbool.

Gets a value indicating whether the item can be selected.

[read-only]
ContentRectangleSystem.Drawing.Rectangle.

Gets the area where content, such as text and icons, can be placed within a System.Windows.Forms.ToolStripItem without overwriting background borders.

DisplayStyleToolStripItemDisplayStyle.

Gets or sets whether text and images are displayed on a System.Windows.Forms.ToolStripItem.

DockDockStyle.

Gets or sets which System.Windows.Forms.ToolStripItem borders are docked to its parent control and determines how a System.Windows.Forms.ToolStripItem is resized with its parent.

DoubleClickEnabledbool.

Gets or sets a value indicating whether the System.Windows.Forms.ToolStripItem can be activated by double-clicking the mouse.

Enabledbool.

Gets or sets a value indicating whether the parent control of the System.Windows.Forms.ToolStripItem is enabled.

FontSystem.Drawing.Font.

Gets or sets the font of the text displayed by the item.

ForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the item.

Heightint.

Gets or sets the height, in pixels, of a System.Windows.Forms.ToolStripItem.

ImageSystem.Drawing.Image.

Gets or sets the image that is displayed on a System.Windows.Forms.ToolStripItem.

ImageAlignSystem.Drawing.ContentAlignment.

Gets or sets the alignment of the image on a System.Windows.Forms.ToolStripItem.

ImageIndexint.

Gets or sets the index value of the image that is displayed on the item.

ImageKeystring.

Gets or sets the key accessor for the image in the ToolStrip.ImageList that is displayed on a System.Windows.Forms.ToolStripItem.

ImageScalingToolStripItemImageScaling.

Gets or sets a value indicating whether an image on a System.Windows.Forms.ToolStripItem is automatically resized to fit in a container.

ImageTransparentColorSystem.Drawing.Color.

Gets or sets the color to treat as transparent in a System.Windows.Forms.ToolStripItem image.

[read-only]
IsDisposedbool.

Gets a value indicating whether the object has been disposed of.

[read-only]
IsOnDropDownbool.

Gets a value indicating whether the container of the current System.Windows.Forms.Control is a System.Windows.Forms.ToolStripDropDown.

[read-only]
IsOnOverflowbool.

Gets a value indicating whether the ToolStripItem.Placement property is set to ToolStripItemPlacement.Overflow.

MarginPadding.

Gets or sets the space between the item and adjacent items.

MergeActionMergeAction.

Gets or sets how child menus are merged with parent menus.

MergeIndexint.

Gets or sets the position of a merged item within the current System.Windows.Forms.ToolStrip.

Namestring.

Gets or sets the name of the item.

OverflowToolStripItemOverflow.

Gets or sets whether the item is attached to the System.Windows.Forms.ToolStrip or System.Windows.Forms.ToolStripOverflowButton or can float between the two.

OwnerToolStrip.

Gets or sets the owner of this item.

[read-only]
OwnerItemToolStripItem.

Gets the parent System.Windows.Forms.ToolStripItem of this System.Windows.Forms.ToolStripItem.

PaddingPadding.

Gets or sets the internal spacing, in pixels, between the item's contents and its edges.

[read-only]
PlacementToolStripItemPlacement.

Gets the current layout of the item.

[read-only]
Pressedbool.

Gets a value indicating whether the state of the item is pressed.

RightToLeftRightToLeft.

Gets or sets a value indicating whether items are to be placed from right to left and text is to be written from right to left.

RightToLeftAutoMirrorImagebool.

Mirrors automatically the System.Windows.Forms.ToolStripItem image when the ToolStripItem.RightToLeft property is set to RightToLeft.Yes.

[read-only]
Selectedbool.

Gets a value indicating whether the item is selected.

SizeSystem.Drawing.Size.

Gets or sets the size of the item.

Tagobject.

Gets or sets the object that contains data about the item.

Textstring.

Gets or sets the text that is to be displayed on the item.

TextAlignSystem.Drawing.ContentAlignment.

Gets or sets the alignment of the text on a System.Windows.Forms.ToolStripLabel.

TextDirectionToolStripTextDirection.

Gets the orientation of text used on a System.Windows.Forms.ToolStripItem.

TextImageRelationTextImageRelation.

Gets or sets the position of System.Windows.Forms.ToolStripItem text and image relative to each other.

ToolTipTextstring.

Gets or sets the text that appears as a System.Windows.Forms.ToolTip for a control.

Visiblebool.

Gets or sets a value indicating whether the item is displayed.

Widthint.

Gets or sets the width in pixels of a System.Windows.Forms.ToolStripItem.

Protected Properties

[read-only]
DefaultAutoToolTipbool.

Gets a value indicating whether to display the System.Windows.Forms.ToolTip that is defined as the default.

[read-only]
DefaultDisplayStyleToolStripItemDisplayStyle.

Gets a value indicating what is displayed on the System.Windows.Forms.ToolStripItem.

[read-only]
DefaultMarginPadding.

Gets the default margin of an item.

[read-only]
DefaultPaddingPadding.

Gets the internal spacing characteristics of the item.

[read-only]
DefaultSizeSystem.Drawing.Size.

Gets the default size of the item.

[read-only]
DismissWhenClickedbool.

Gets a value indicating whether items on a System.Windows.Forms.ToolStripDropDown are hidden after they are clicked.

ParentToolStrip.

Gets or sets the parent container of the System.Windows.Forms.ToolStripItem.

[read-only]
ShowKeyboardCuesbool.

Gets a value indicating whether to show or hide shortcut keys.