|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
ToolStripDropDownButton, classe
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.ToolStripItem
System.Windows.Forms.ToolStripDropDownItem
System.Windows.Forms.ToolStripDropDownButton
System.Windows.Forms.ToolStripOverflowButton
Espace de noms : System.Windows.Forms
Assembly : System.Windows.Forms (dans System.Windows.Forms.dll)
Le type ToolStripDropDownButton expose les membres suivants.
| Nom | Description | |
|---|---|---|
![]() | ToolStripDropDownButton() | |
![]() | ToolStripDropDownButton(Image) | |
![]() | ToolStripDropDownButton(String) | |
![]() | ToolStripDropDownButton(String, Image) | |
![]() | ToolStripDropDownButton(String, Image, EventHandler) | |
![]() | ToolStripDropDownButton(String, Image, ToolStripItem[]) | |
![]() | ToolStripDropDownButton(String, Image, EventHandler, String) |
| Nom | Description | |
|---|---|---|
![]() | AccessibilityObject | |
![]() | AccessibleDefaultActionDescription | |
![]() | AccessibleDescription | |
![]() | AccessibleName | |
![]() | AccessibleRole | |
![]() | Alignment | |
![]() | AllowDrop | |
![]() | Anchor | |
![]() | AutoSize | |
![]() | AutoToolTip | |
![]() | Available | |
![]() | BackColor | |
![]() | BackgroundImage | |
![]() | BackgroundImageLayout | |
![]() | Bounds | |
![]() | CanRaiseEvents | |
![]() | CanSelect | |
![]() | Container | |
![]() | ContentRectangle | |
![]() | DefaultAutoToolTip | |
![]() | DefaultDisplayStyle | |
![]() | DefaultMargin | |
![]() | DefaultPadding | |
![]() | DefaultSize | |
![]() | DesignMode | |
![]() | DismissWhenClicked | |
![]() | DisplayStyle | |
![]() | Dock | |
![]() | DoubleClickEnabled | |
![]() | DropDown | |
![]() | DropDownDirection | |
![]() | DropDownItems | |
![]() | DropDownLocation | |
![]() | Enabled | |
![]() | Events | |
![]() | Font | |
![]() | ForeColor | |
![]() | HasDropDown | |
![]() | HasDropDownItems | |
![]() | Height | |
![]() | Image | |
![]() | ImageAlign | |
![]() | ImageIndex | |
![]() | ImageKey | |
![]() | ImageScaling | |
![]() | ImageTransparentColor | |
![]() | IsDisposed | |
![]() | IsOnDropDown | |
![]() | IsOnOverflow | |
![]() | Margin | |
![]() | MergeAction | |
![]() | MergeIndex | |
![]() | Name | |
![]() | Overflow | |
![]() | Owner | |
![]() | OwnerItem | |
![]() | Padding | |
![]() | Parent | |
![]() | Placement | |
![]() | Pressed | |
![]() | RightToLeft | |
![]() | RightToLeftAutoMirrorImage | |
![]() | Selected | |
![]() | ShowDropDownArrow | |
![]() | ShowKeyboardCues | |
![]() | Site | |
![]() | Size | |
![]() | Tag | |
![]() | Text | |
![]() | TextAlign | |
![]() | TextDirection | |
![]() | TextImageRelation | |
![]() | ToolTipText | |
![]() | Visible | |
![]() | Width |
| Nom | Description | |
|---|---|---|
![]() | CreateAccessibilityInstance | |
![]() | CreateDefaultDropDown | |
![]() | CreateObjRef | |
![]() | Dispose() | |
![]() | Dispose(Boolean) | |
![]() | DoDragDrop | |
![]() | Equals(Object) | |
![]() | Finalize | |
![]() | GetCurrentParent | |
![]() | GetHashCode | |
![]() | GetLifetimeService | |
![]() | GetPreferredSize | |
![]() | GetService | |
![]() | GetType | |
![]() | HideDropDown | |
![]() | InitializeLifetimeService | |
![]() | Invalidate() | |
![]() | Invalidate(Rectangle) | |
![]() | IsInputChar | |
![]() | IsInputKey | |
![]() | MemberwiseClone() | |
![]() | MemberwiseClone(Boolean) | |
![]() | OnAvailableChanged | |
![]() | OnBackColorChanged | |
![]() | OnBoundsChanged | |
![]() | OnClick | |
![]() | OnDisplayStyleChanged | |
![]() | OnDoubleClick | |
![]() | OnDragDrop | |
![]() | OnDragEnter | |
![]() | OnDragLeave | |
![]() | OnDragOver | |
![]() | OnDropDownClosed | |
![]() | OnDropDownHide | |
![]() | OnDropDownItemClicked | |
![]() | OnDropDownOpened | |
![]() | OnDropDownShow | |
![]() | OnEnabledChanged | |
![]() | OnFontChanged | |
![]() | OnForeColorChanged | |
![]() | OnGiveFeedback | |
![]() | OnLayout | |
![]() | OnLocationChanged | |
![]() | OnMouseDown | |
![]() | OnMouseEnter | |
![]() | OnMouseHover | |
![]() | OnMouseLeave | |
![]() | OnMouseMove | |
![]() | OnMouseUp | |
![]() | OnOwnerChanged | |
![]() | OnOwnerFontChanged | |
![]() | OnPaint | |
![]() | OnParentBackColorChanged | |
![]() | OnParentChanged | |
![]() | OnParentEnabledChanged | |
![]() | OnParentForeColorChanged | |
![]() | OnParentRightToLeftChanged | |
![]() | OnQueryContinueDrag | |
![]() | OnRightToLeftChanged | |
![]() | OnTextChanged | |
![]() | OnVisibleChanged | |
![]() | PerformClick | |
![]() | ProcessCmdKey | |
![]() | ProcessDialogKey | |
![]() | ProcessMnemonic | |
![]() | ResetBackColor | Infrastructure. |
![]() | ResetDisplayStyle | Infrastructure. |
![]() | ResetFont | Infrastructure. |
![]() | ResetForeColor | Infrastructure. |
![]() | ResetImage | Infrastructure. |
![]() | ResetMargin | Infrastructure. |
![]() | ResetPadding | Infrastructure. |
![]() | ResetRightToLeft | Infrastructure. |
![]() | ResetTextDirection | Infrastructure. |
![]() | Select | |
![]() | SetBounds | |
![]() | SetVisibleCore | |
![]() | ShowDropDown | |
![]() | ToString |
| Nom | Description | |
|---|---|---|
![]() | AvailableChanged | |
![]() | BackColorChanged | |
![]() | Click | |
![]() | DisplayStyleChanged | |
![]() | Disposed | |
![]() | DoubleClick | |
![]() | DragDrop | |
![]() | DragEnter | |
![]() | DragLeave | |
![]() | DragOver | |
![]() | DropDownClosed | |
![]() | DropDownItemClicked | |
![]() | DropDownOpened | |
![]() | DropDownOpening | |
![]() | EnabledChanged | |
![]() | ForeColorChanged | |
![]() | GiveFeedback | |
![]() | LocationChanged | |
![]() | MouseDown | |
![]() | MouseEnter | |
![]() | MouseHover | |
![]() | MouseLeave | |
![]() | MouseMove | |
![]() | MouseUp | |
![]() | OwnerChanged | |
![]() | Paint | |
![]() | QueryAccessibilityHelp | |
![]() | QueryContinueDrag | |
![]() | RightToLeftChanged | |
![]() | TextChanged | |
![]() | VisibleChanged |
| Nom | Description | |
|---|---|---|
![]() ![]() | IDropTarget.OnDragDrop | |
![]() ![]() | IDropTarget.OnDragEnter | |
![]() ![]() | IDropTarget.OnDragLeave | |
![]() ![]() | IDropTarget.OnDragOver |
// Declare the drop-down button and the items it will contain. internal ToolStripDropDownButton dropDownButton1; internal ToolStripDropDown dropDown; internal ToolStripButton buttonRed; internal ToolStripButton buttonBlue; internal ToolStripButton buttonYellow; private void InitializeDropDownButton() { dropDownButton1 = new ToolStripDropDownButton(); dropDown = new ToolStripDropDown(); dropDownButton1.Text = "A"; // Set the drop-down on the ToolStripDropDownButton. dropDownButton1.DropDown = dropDown; // Set the drop-down direction. dropDownButton1.DropDownDirection = ToolStripDropDownDirection.Left; // Do not show a drop-down arrow. dropDownButton1.ShowDropDownArrow = false; // Declare three buttons, set their foreground color and text, // and add the buttons to the drop-down. buttonRed = new ToolStripButton(); buttonRed.ForeColor = Color.Red; buttonRed.Text = "A"; buttonBlue = new ToolStripButton(); buttonBlue.ForeColor = Color.Blue; buttonBlue.Text = "A"; buttonYellow = new ToolStripButton(); buttonYellow.ForeColor = Color.Yellow; buttonYellow.Text = "A"; buttonBlue.Click += new EventHandler(colorButtonsClick); buttonRed.Click += new EventHandler(colorButtonsClick); buttonYellow.Click += new EventHandler(colorButtonsClick); dropDown.Items.AddRange(new ToolStripItem[] { buttonRed, buttonBlue, buttonYellow }); toolStrip1.Items.Add(dropDownButton1); } // Handle the buttons' click event by setting the foreground color of the // form to the foreground color of the button that is clicked. private void colorButtonsClick(object sender, EventArgs e) { ToolStripButton senderButton = (ToolStripButton)sender; this.ForeColor = senderButton.ForeColor; }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (rôle principal du serveur non pris en charge), Windows Server 2008 R2 (rôle principal du serveur pris en charge avec SP1 ou version ultérieure ; Itanium non pris en charge)
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.
