GridLength Constructors
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.
Initializes a new instance of the GridLength structure.
Overloads
GridLength(Double) |
Initializes a new instance of the GridLength structure using the specified absolute value in pixels. |
GridLength(Double, GridUnitType) |
Initializes a new instance of the GridLength structure and specifies what kind of value it holds. |
GridLength(Double)
Initializes a new instance of the GridLength structure using the specified absolute value in pixels.
public:
GridLength(double pixels);
public GridLength (double pixels);
new System.Windows.GridLength : double -> System.Windows.GridLength
Public Sub New (pixels As Double)
Parameters
- pixels
- Double
The number of device-independent pixels (96 pixels-per-inch).
Exceptions
Pixels
is equal to NegativeInfinity, PositiveInfinity, or NaN.
Applies to
GridLength(Double, GridUnitType)
Initializes a new instance of the GridLength structure and specifies what kind of value it holds.
public:
GridLength(double value, System::Windows::GridUnitType type);
public GridLength (double value, System.Windows.GridUnitType type);
new System.Windows.GridLength : double * System.Windows.GridUnitType -> System.Windows.GridLength
Public Sub New (value As Double, type As GridUnitType)
Parameters
- value
- Double
The initial value of this instance of GridLength.
- type
- GridUnitType
The GridUnitType held by this instance of GridLength.
Exceptions
value
is equal to NegativeInfinity, PositiveInfinity, or NaN.
See also
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om