GridLengthHelper.FromPixels(Double) GridLengthHelper.FromPixels(Double) GridLengthHelper.FromPixels(Double) GridLengthHelper.FromPixels(Double) Method

Definition

Creates a new GridLength value based on a fixed number of pixels. C# and Microsoft Visual Basic code should use the GridLength(Double) constructor instead.

public : static GridLength FromPixels(double pixels)
static GridLength FromPixels(double pixels) const;
public static GridLength FromPixels(Double pixels)
Public Shared Function FromPixels(pixels As Double) As GridLength

Parameters

pixels
Double Double

The pixel height or width to specify.

Returns