Share via


Unit.Implicit(Int32 to Unit) 运算符

定义

从指定的 32 位无符号整数隐式创建 Unit 类型的 Pixel

public:
 static operator System::Web::UI::WebControls::Unit(int n);
public static implicit operator System.Web.UI.WebControls.Unit (int n);
static member op_Implicit : int -> System.Web.UI.WebControls.Unit
Public Shared Widening Operator CType (n As Integer) As Unit

参数

n
Int32

表示 Unit 的长度的 32 位有符号整数。

返回

一个 Unit 类型的 Pixel,它表示 n 参数指定的 32 位无符号整数。

注解

此运算符的等效方法是 Unit.Pixel(Int32)

适用于

另请参阅