FontUnit.Equality(FontUnit, FontUnit) 运算符

定义

比较两个 FontUnit 对象是否相等。Compares two FontUnit objects for equality.

public:
 static bool operator ==(System::Web::UI::WebControls::FontUnit left, System::Web::UI::WebControls::FontUnit right);
public static bool operator == (System.Web.UI.WebControls.FontUnit left, System.Web.UI.WebControls.FontUnit right);
static member ( = ) : System.Web.UI.WebControls.FontUnit * System.Web.UI.WebControls.FontUnit -> bool
Public Shared Operator == (left As FontUnit, right As FontUnit) As Boolean

参数

left
FontUnit

运算符左侧包含字体属性的 FontUnitA FontUnit on the left of the operator that contains font properties.

right
FontUnit

运算符右侧包含字体属性的 FontUnitA FontUnit on the right of the operator that contains font properties.

返回

Boolean

如果两个 FontUnit 对象相等,则为 true;否则为 falsetrue if both FontUnit objects are equal; otherwise, false.

注解

对于 FontUnit 要等效的对象,每个对象必须具有与和属性相同的 TypeUnitFor the FontUnit objects to be equivalent, each object must have the same values for the Type and Unit properties.

此运算符的等效方法是 FontUnit.Equals(Object)The equivalent method for this operator is FontUnit.Equals(Object)

适用于

另请参阅