|
Il presente articolo è stato tradotto automaticamente. Passare il puntatore sulle frasi nell'articolo per visualizzare il testo originale. Ulteriori informazioni.
|
Traduzione
Originale
|
Classe ComponentResourceManager
Spazio dei nomi: System.ComponentModel
Assembly: System (in System.dll)
Il tipo ComponentResourceManager espone i seguenti membri.
| Nome | Descrizione | |
|---|---|---|
![]() ![]() | ComponentResourceManager() | |
![]() ![]() | ComponentResourceManager(Type) |
| Nome | Descrizione | |
|---|---|---|
![]() ![]() | BaseName | |
![]() | FallbackLocation | |
![]() ![]() | IgnoreCase | |
![]() ![]() | ResourceSetType |
| Nome | Descrizione | |
|---|---|---|
![]() ![]() | ApplyResources(Object, String) | |
![]() ![]() | ApplyResources(Object, String, CultureInfo) | |
![]() ![]() | Equals(Object) | |
![]() ![]() | Finalize | |
![]() ![]() | GetHashCode | |
![]() ![]() | GetObject(String) | |
![]() ![]() | GetObject(String, CultureInfo) | |
![]() ![]() | GetResourceFileName | |
![]() ![]() | GetResourceSet | |
![]() | GetStream(String) | |
![]() | GetStream(String, CultureInfo) | |
![]() ![]() | GetString(String) | |
![]() ![]() | GetString(String, CultureInfo) | |
![]() ![]() | GetType | |
![]() ![]() | InternalGetResourceSet | |
![]() ![]() | MemberwiseClone | |
![]() ![]() | ReleaseAllResources | |
![]() ![]() | ToString |
| Nome | Descrizione | |
|---|---|---|
![]() ![]() | BaseNameField | |
![]() ![]() | MainAssembly | |
![]() ![]() | ResourceSets | Obsoleta. |
Nota |
|---|
L'attributo HostProtectionAttribute applicato a questo tipo di membro dispone del seguente valore per la proprietà Resources: SharedState. L'oggetto HostProtectionAttribute non influisce sulle applicazioni desktop, che in genere vengono avviate facendo doppio clic sull'icona, digitando un comando oppure immettendo un URL in un browser. Per ulteriori informazioni, vedere la classe HostProtectionAttribute o programmazione per SQL Server e attributi di protezione host. |
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication10 { public class Form1 : Form { private ToolStripButton toolStripButton1; private ToolStripButton toolStripButton2; private ToolStripButton toolStripButton3; private ContextMenuStrip contextMenuStrip1; private IContainer components; private ToolStripMenuItem toolStripMenuItem1; private ToolStripMenuItem toolStripMenuItem2; private ContextMenuStrip contextMenuStrip2; private ToolStripMenuItem rearrangeButtonsToolStripMenuItem; private ToolStripMenuItem selectIconsToolStripMenuItem; private ToolStrip toolStrip1; public Form1() { InitializeComponent(); } [STAThread] static void Main() { Application.EnableVisualStyles(); Application.Run(new Form1()); } private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton3 = new System.Windows.Forms.ToolStripButton(); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.contextMenuStrip2 = new System.Windows.Forms.ContextMenuStrip(this.components); this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); this.rearrangeButtonsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.selectIconsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStrip1.SuspendLayout(); this.contextMenuStrip1.SuspendLayout(); this.contextMenuStrip2.SuspendLayout(); this.SuspendLayout(); // // Associate contextMenuStrip2 with toolStrip1. // toolStrip1 property settings follow. // this.toolStrip1.ContextMenuStrip = this.contextMenuStrip2; this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripButton1, this.toolStripButton2, this.toolStripButton3}); 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"; // // toolStripButton1 // this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton1.Name = "toolStripButton1"; this.toolStripButton1.Text = "toolStripButton1"; // // toolStripButton2 // this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image"))); this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton2.Name = "toolStripButton2"; this.toolStripButton2.Text = "toolStripButton2"; // // toolStripButton3 // this.toolStripButton3.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image"))); this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton3.Name = "toolStripButton3"; this.toolStripButton3.Text = "toolStripButton3"; // // contextMenuStrip1 // this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripMenuItem1, this.toolStripMenuItem2}); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.contextMenuStrip1.Size = new System.Drawing.Size(131, 48); // // contextMenuStrip2 // this.contextMenuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.rearrangeButtonsToolStripMenuItem, this.selectIconsToolStripMenuItem}); this.contextMenuStrip2.Name = "contextMenuStrip2"; this.contextMenuStrip2.RightToLeft = System.Windows.Forms.RightToLeft.No; this.contextMenuStrip2.Size = new System.Drawing.Size(162, 48); // // toolStripMenuItem1 // this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Text = "&Resize"; // // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Text = "&Keep on Top"; // // rearrangeButtonsToolStripMenuItem // this.rearrangeButtonsToolStripMenuItem.Name = "rearrangeButtonsToolStripMenuItem"; this.rearrangeButtonsToolStripMenuItem.Text = "R&earrange Buttons"; // // selectIconsToolStripMenuItem // this.selectIconsToolStripMenuItem.Name = "selectIconsToolStripMenuItem"; this.selectIconsToolStripMenuItem.Text = "&Select Icons"; // // Associate contextMenuStrip1 with Form1. // Form1 property settings follow. // this.ClientSize = new System.Drawing.Size(292, 266); this.ContextMenuStrip = this.contextMenuStrip1; this.Controls.Add(this.toolStrip1); this.Name = "Form1"; this.toolStrip1.ResumeLayout(false); this.contextMenuStrip1.ResumeLayout(false); this.contextMenuStrip2.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); } } }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (ruoli di base del server non supportati), Windows Server 2008 R2 (ruoli di base del server supportati con SP1 o versione successiva, Itanium non supportato)
.NET Framework non supporta tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.
