Share via


GridLengthHelper.FromPixels(Double) Method

Definition

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

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

Parameters

pixels
Double

double

The pixel height or width to specify.

Returns

The created GridLength.

Applies to