FormTreeControl.widthValue Method

Definition

Overloads

widthValue()

Gets or sets the width of the control.

widthValue(Int32)

widthValue()

Gets or sets the width of the control.

public:
 override int widthValue();
public override int widthValue ();
override this.widthValue : unit -> int
Public Overrides Function widthValue () As Integer

Returns

The width of the control in pixels.

Remarks

To change the width of the control, use the Exact width calculation mode.

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

int nWidthValue; 
// The ctrl variable was previously assigned 
// as a form tree control value. 
// Retrieve the width value. 
nWidthValue = ctrl.widthValue(); 
// Set the width value. 
ctrl.widthMode(-1); 
ctrl.widthValue(160);

Applies to

widthValue(Int32)

public:
 override int widthValue(int _value);
public override int widthValue (int _value);
override this.widthValue : int -> int
Public Overrides Function widthValue (_value As Integer) As Integer

Parameters

_value
Int32

An Integer data type that specifies the width in pixels.

Returns

Applies to