CheckBox.CreateParams 속성
컨트롤 핸들이 만들어지는 경우 필요한 작성 매개 변수를 가져옵니다.
네임스페이스: System.Windows.Forms
어셈블리: System.Windows.Forms(system.windows.forms.dll)
구문
‘선언
Protected Overrides ReadOnly Property CreateParams As CreateParams
‘사용 방법
Dim value As CreateParams
value = Me.CreateParams
protected override CreateParams CreateParams { get; }
protected:
virtual property CreateParams^ CreateParams {
CreateParams^ get () override;
}
/** @property */
protected CreateParams get_CreateParams ()
protected override function get CreateParams () : CreateParams
속성 값
컨트롤 핸들을 만들 때 필요한 작성 매개 변수가 들어 있는 CreateParams입니다.
예제
다음 코드 예제에서는 Button 파생 클래스의 CreateParams 속성을 확장합니다. CreateParams.Style 속성이 변경되면 단추가 Image가 아닌 Icon을 표시합니다. 이 예제를 실행하려면 Button 클래스에서 상속된 클래스가 있어야 합니다.
/** @property
*/
protected CreateParams get_CreateParams()
{
// Extend the CreateParams property of the Button class.
CreateParams cp = super.get_CreateParams();
// Update the button Style.
cp.set_Style(cp.get_Style() | 0x40); // BS_ICON value
return cp;
} //get_CreateParams
.NET Framework 보안
- SecurityPermission 비관리 코드를 사용하여 작업하는 데 필요한 권한입니다. 연관된 열거형: UnmanagedCode
플랫폼
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
2.0, 1.1, 1.0에서 지원