Share via


ModulePage.CreateParams Property

Definition

Gets creation parameters for the page.

protected:
 virtual property System::Windows::Forms::CreateParams ^ CreateParams { System::Windows::Forms::CreateParams ^ get(); };
protected override System.Windows.Forms.CreateParams CreateParams { get; }
member this.CreateParams : System.Windows.Forms.CreateParams
Protected Overrides ReadOnly Property CreateParams As CreateParams

Property Value

A CreateParams object that contains creation parameters.

Examples

The following example implements this method.

protected override CreateParams CreateParams {
    get {
        const int WS_EX_LAYOUTRTL = 0x400000;
        const int WS_EX_NOINHERITLAYOUT = 0x100000;

        CreateParams CP;
        CP = base.CreateParams;
        if (RightToLeftLayout) {
            CP.ExStyle = CP.ExStyle | 
                WS_EX_LAYOUTRTL | 
                WS_EX_NOINHERITLAYOUT;
        }
        return CP;
    }
}

Applies to