DataGridViewCellStyle.Equals(Object) 方法

定義

傳回值,指出此執行個體是否相當於指定的物件。Returns a value indicating whether this instance is equivalent to the specified object.

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

參數

o
Object

與這個執行個體相比較的物件,或 nullAn object to compare with this instance, or null.

傳回

Boolean

如果 oDataGridViewCellStyle,且具有與這個執行個體相同的屬性值,則為 true,否則為 falsetrue if o is a DataGridViewCellStyle and has the same property values as this instance; otherwise, false.

適用於

另請參閱