语言

FontWeight.Equals 方法

定义

确定对象 FontWeight 是否等于指定的对象。

重载

名称 说明
Equals(Object)

确定当前 FontWeight 对象是否等于指定的对象。

Equals(FontWeight)

确定当前 FontWeight 对象是否等于指定的 FontWeight 对象。

Equals(Object)

确定当前 FontWeight 对象是否等于指定的对象。

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals(object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

参数

obj
Object

要 Object 比较的相等性。

返回

true 如果两个实例相等,则为 ;否则,为 false.

适用于

Equals(FontWeight)

确定当前 FontWeight 对象是否等于指定的 FontWeight 对象。

public:
 bool Equals(System::Windows::FontWeight obj);
public bool Equals(System.Windows.FontWeight obj);
override this.Equals : System.Windows.FontWeight -> bool
Public Function Equals (obj As FontWeight) As Boolean

参数

obj
FontWeight

要比较相等的 FontWeight 实例。

返回

true 如果两个实例相等,则为 ;否则,为 false.

适用于