Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DataGridLength Constructor (Double, DataGridLengthUnitType, Double, Double)

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)
public DataGridLength(
	double value,
	DataGridLengthUnitType type,
	double desiredValue,
	double displayValue
)

Parameters

value
Type: System.Double
The value of the DataGridLength.
type
Type: System.Windows.Controls.DataGridLengthUnitType
The unit type of the DataGridLength.
desiredValue
Type: System.Double
The desired value of the DataGridLength if it is not affected by interactions with other DataGrid columns.
displayValue
Type: System.Double
The actual value of the DataGridLength in pixels.

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

Silverlight

Supported in: 5, 4

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.