|
이 문서는 기계로 번역한 것입니다. 원본 텍스트를 보려면 포인터를 문서의 문장 위로 올리십시오. 추가 정보
|
번역
원본
|
Control.Anchor 속성
네임스페이스: System.Windows.Forms
어셈블리: System.Windows.Forms(System.Windows.Forms.dll)
참고 |
|---|
// Add a button to a form and set some of its common properties. private void AddMyButton() { // Create a button and add it to the form. Button button1 = new Button(); // Anchor the button to the bottom right corner of the form button1.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); // Assign a background image. button1.BackgroundImage = imageList1.Images[0]; // Specify the layout style of the background image. Tile is the default. button1.BackgroundImageLayout = ImageLayout.Center; // Make the button the same size as the image. button1.Size = button1.BackgroundImage.Size; // Set the button's TabIndex and TabStop properties. button1.TabIndex = 1; button1.TabStop = true; // Add a delegate to handle the Click event. button1.Click += new System.EventHandler(this.button1_Click); // Add the button to the form. this.Controls.Add(button1); }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008(서버 코어 역할은 지원되지 않음), Windows Server 2008 R2(서버 코어 역할은 SP1 이상에서 지원, Itanium은 지원되지 않음)
.NET Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
참고