## PPGLayout.SetViewSize

### Introduced

v10 (2012)

### Description

This method allows the user to set the view size, which may (but isn't guaranteed to) be used by the PPG containing the layout to determine the PPG's width and height. It is currently only supported by modal PPGs.

### C# Syntax

    PPGLayout.SetViewSize( Int32 in_Width, Int32 in_Height );

### Scripting Syntax

    PPGLayout.SetViewSize( Width, Height );

### Parameters

Parameter | Type | Description
--- | --- | ---
Width | Long | The width of the PPG.
Height | Long | The height of the PPG.

### Examples

#### JScript Example

    var oPPG = XSIFactory.CreateObject( "CustomProperty" )

    oPPG.Name = "Test modal" ;

    oLayout = oPPG.PPGLayout;

    oLayout.AddButton( "test" );

    oLayout.SetViewSize( 200,300 );

    InspectObj( oPPG,null,"Test modal window", siModal );

### See Also

PPGLayout.ViewSize