GridLengthHelper.FromPixels(Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.