Share via


GridLengthHelper.FromValueAndType(Double, GridUnitType) 메서드

정의

가능한 픽셀 수와 GridUnitType을 기반으로 새 GridLength 값을 만듭니다. C# 코드는 GridLength(Double,GridUnitType) 생성자를 대신 사용해야 합니다.

public:
 static GridLength FromValueAndType(double value, GridUnitType type);
 static GridLength FromValueAndType(double const& value, GridUnitType const& type);
public static GridLength FromValueAndType(double value, GridUnitType type);
function fromValueAndType(value, type)
Public Shared Function FromValueAndType (value As Double, type As GridUnitType) As GridLength

매개 변수

value
Double

double

숫자 값입니다. 가 로 지정된 경우 type 지정할 픽셀 높이 또는 너비이거나, 가 로 Pixel지정된 Star경우 type 인수일 수 있습니다. 이 로 지정된 경우 type 이 값은 무시됩니다 Auto.

type
GridUnitType

GridLength가 나타내는 단위 유형을 지정하는 열거형의 값입니다.

반환

만든 GridLength입니다.

적용 대상