## PPGItem.WidthPercentage

### Introduced

v4.0

### Description

Returns or sets a Long value representing the width of the control as a percentage of the total width of the property page. This property is only applicable if the group is part of a row. It gives a hint to Softimage about how much of the horizontal space should be taken by this item. If not specified Softimage uses its own heuristic to lay out the row.

### C# Syntax

    // get accessor

    Int32 rtn = PPGItem.WidthPercentage;

    // set accessor

    PPGItem.WidthPercentage = Int32;

### Examples

#### VBScript Example

    'example demonstrating WidthPercentage

    dim oPSet,oPPGLayout

    set oPSet=ActiveSceneRoot.AddProperty("CustomProperty",false,"Demo")

    oPSet.AddParameter3 "P1",siString, "Default Text"

    set oPPGLayout = oPSet.PPGLayout

    oPPGLayout.AddRow

    'Give Softimage the hint that we want the edit box to

    'have extra space

    set oItem = oPPGLayout.AddItem( "P1", "Parameter 1" )

    oItem.WidthPercentage = 80

    set oItem = oPPGLayout.AddButton( "Button" )

    oItem.WidthPercentage = 20

    oPPGLayout.EndRow

    'Show our PPG

    InspectObj oPSet

### See Also

PPGLayout.AddGroup