Udostępnij za pośrednictwem


WrapGrid.ItemWidth Property

Definition

Gets or sets the width of the layout area for each item that is contained in a WrapGrid.

public:
 property double ItemWidth { double get(); void set(double value); };
double ItemWidth();

void ItemWidth(double value);
public double ItemWidth { get; set; }
var double = wrapGrid.itemWidth;
wrapGrid.itemWidth = double;
Public Property ItemWidth As Double
<WrapGrid ItemWidth="double" />

Property Value

Double

double

The width of the layout area for each item that is contained in a WrapGrid. The default is the special value NaN. See Remarks below.

Remarks

If ItemWidth is the special value NaN, then the WrapGrid uses the width of the first cell.

Note

In C#, you can obtain the NaN value from Double.NaN.

In C++, you can obtain the NaN value by using the NAN macro or std::numeric_limits<double>::quiet_NaN.

Do not use the == operator to test for NaN.

In C#, use Double.IsNaN() to test for NaN.

In C++, use isnan() to test for NaN.

Applies to

See also