Freigeben über


DataGridLength Constructor (Double, DataGridLengthUnitType, Double, Double)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Initializes a new instance of the DataGridLength class with the specified value, unit type, desired value, and display value.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)

Syntax

'Declaration
Public Sub New ( _
    value As Double, _
    type As DataGridLengthUnitType, _
    desiredValue As Double, _
    displayValue As Double _
)
public DataGridLength(
    double value,
    DataGridLengthUnitType type,
    double desiredValue,
    double displayValue
)

Parameters

Remarks

value is used only when type is Pixel or Star; otherwise, value is not meaningful.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.