Share via


FormTreeControl.prefColumnSize Method

Specifies the preferred column width and height for the form tree control.

Syntax

public void prefColumnSize(int width, int height)

Run On

Client

Parameters

  • width
    Type: int
    The preferred width of the control measured in pixels.
  • height
    Type: int
    The preferred height of the control measures in pixels.

Examples

The following example shows how to set the preferred width and height of a form tree control.

// The nWidth and nHeight variables were previously assigned 
// as int variables. 
// The ctrl variable was previously assigned 
// as a FormTreeControl value. 
 
ctrl.prefColumnSize( nWidth, nHeight);

See Also

FormTreeControl Class

FormTreeControl.heightMode Method