|
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
|
ToolStripLabel, classe
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.ToolStripItem
System.Windows.Forms.ToolStripLabel
System.Windows.Forms.ToolStripStatusLabel
Espace de noms : System.Windows.Forms
Assembly : System.Windows.Forms (dans System.Windows.Forms.dll)
Le type ToolStripLabel expose les membres suivants.
| Nom | Description | |
|---|---|---|
![]() | ToolStripLabel() | |
![]() | ToolStripLabel(Image) | |
![]() | ToolStripLabel(String) | |
![]() | ToolStripLabel(String, Image) | |
![]() | ToolStripLabel(String, Image, Boolean) | |
![]() | ToolStripLabel(String, Image, Boolean, EventHandler) | |
![]() | ToolStripLabel(String, Image, Boolean, EventHandler, String) |
| Nom | Description | |
|---|---|---|
![]() | AccessibilityObject | |
![]() | AccessibleDefaultActionDescription | |
![]() | AccessibleDescription | |
![]() | AccessibleName | |
![]() | AccessibleRole | |
![]() | ActiveLinkColor | |
![]() | Alignment | |
![]() | AllowDrop | |
![]() | Anchor | |
![]() | AutoSize | |
![]() | AutoToolTip | |
![]() | Available | |
![]() | BackColor | |
![]() | BackgroundImage | |
![]() | BackgroundImageLayout | |
![]() | Bounds | |
![]() | CanRaiseEvents | |
![]() | CanSelect | |
![]() | Container | |
![]() | ContentRectangle | |
![]() | DefaultAutoToolTip | |
![]() | DefaultDisplayStyle | |
![]() | DefaultMargin | |
![]() | DefaultPadding | |
![]() | DefaultSize | |
![]() | DesignMode | |
![]() | DismissWhenClicked | |
![]() | DisplayStyle | |
![]() | Dock | |
![]() | DoubleClickEnabled | |
![]() | Enabled | |
![]() | Events | |
![]() | Font | |
![]() | ForeColor | |
![]() | Height | |
![]() | Image | |
![]() | ImageAlign | |
![]() | ImageIndex | |
![]() | ImageKey | |
![]() | ImageScaling | |
![]() | ImageTransparentColor | |
![]() | IsDisposed | |
![]() | IsLink | |
![]() | IsOnDropDown | |
![]() | IsOnOverflow | |
![]() | LinkBehavior | |
![]() | LinkColor | |
![]() | LinkVisited | |
![]() | Margin | |
![]() | MergeAction | |
![]() | MergeIndex | |
![]() | Name | |
![]() | Overflow | |
![]() | Owner | |
![]() | OwnerItem | |
![]() | Padding | |
![]() | Parent | |
![]() | Placement | |
![]() | Pressed | |
![]() | RightToLeft | |
![]() | RightToLeftAutoMirrorImage | |
![]() | Selected | |
![]() | ShowKeyboardCues | |
![]() | Site | |
![]() | Size | |
![]() | Tag | |
![]() | Text | |
![]() | TextAlign | |
![]() | TextDirection | |
![]() | TextImageRelation | |
![]() | ToolTipText | |
![]() | Visible | |
![]() | VisitedLinkColor | |
![]() | Width |
| Nom | Description | |
|---|---|---|
![]() | CreateAccessibilityInstance | |
![]() | CreateObjRef | |
![]() | Dispose() | |
![]() | Dispose(Boolean) | |
![]() | DoDragDrop | |
![]() | Equals(Object) | |
![]() | Finalize | |
![]() | GetCurrentParent | |
![]() | GetHashCode | |
![]() | GetLifetimeService | |
![]() | GetPreferredSize | |
![]() | GetService | |
![]() | GetType | |
![]() | InitializeLifetimeService | |
![]() | Invalidate() | |
![]() | Invalidate(Rectangle) | |
![]() | IsInputChar | |
![]() | IsInputKey | |
![]() | MemberwiseClone() | |
![]() | MemberwiseClone(Boolean) | |
![]() | OnAvailableChanged | |
![]() | OnBackColorChanged | |
![]() | OnBoundsChanged | |
![]() | OnClick | |
![]() | OnDisplayStyleChanged | |
![]() | OnDoubleClick | |
![]() | OnDragDrop | |
![]() | OnDragEnter | |
![]() | OnDragLeave | |
![]() | OnDragOver | |
![]() | 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 | |
![]() | ToString |
| Nom | Description | |
|---|---|---|
![]() | AvailableChanged | |
![]() | BackColorChanged | |
![]() | Click | |
![]() | DisplayStyleChanged | |
![]() | Disposed | |
![]() | DoubleClick | |
![]() | DragDrop | |
![]() | DragEnter | |
![]() | DragLeave | |
![]() | DragOver | |
![]() | 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 |
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; public class Form1 : Form { private ToolStripLabel toolStripLabel1; private ToolStrip toolStrip1; public Form1() { InitializeComponent(); } [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } private void InitializeComponent() { this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel(); this.toolStrip1.SuspendLayout(); this.SuspendLayout(); // // toolStrip1 // this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripLabel1}); this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new System.Drawing.Size(292, 25); this.toolStrip1.TabIndex = 0; this.toolStrip1.Text = "toolStrip1"; // // toolStripLabel1 // this.toolStripLabel1.IsLink = true; this.toolStripLabel1.LinkBehavior = System.Windows.Forms.LinkBehavior.AlwaysUnderline; this.toolStripLabel1.Name = "toolStripLabel1"; this.toolStripLabel1.Size = new System.Drawing.Size(71, 22); this.toolStripLabel1.Tag = "http://search.microsoft.com/search/search.aspx?"; this.toolStripLabel1.Text = "Search MSDN"; this.toolStripLabel1.Click += new System.EventHandler(this.toolStripLabel1_Click); // // Form1 // this.ClientSize = new System.Drawing.Size(292, 273); this.Controls.Add(this.toolStrip1); this.Name = "Form1"; this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); } private void toolStripLabel1_Click(object sender, EventArgs e) { ToolStripLabel toolStripLabel1 = (ToolStripLabel)sender; // Start Internet Explorer and navigate to the URL in the // tag property. System.Diagnostics.Process.Start("IEXPLORE.EXE", toolStripLabel1.Tag.ToString()); // Set the LinkVisited property to true to change the color. toolStripLabel1.LinkVisited = true; } }
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.
