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.

返回

如果 trueo 并且与此实例具有相同的属性值,则为 DataGridViewCellStyle;否则为 falsetrue if o is a DataGridViewCellStyle and has the same property values as this instance; otherwise, false.

适用于

另请参阅