CharacterRange::Equals Method (Object^)
.NET Framework (current version)
Gets a value indicating whether this object is equivalent to the specified object.
Assembly: System.Drawing (in System.Drawing.dll)
Parameters
- obj
-
Type:
System::Object^
The object to compare to for equality.
Return Value
Type: System::Booleantrue to indicate the specified object is an instance with the same First and Length value as this instance; otherwise, false.
The following example demonstrates how to use the Equals method. To run this example, paste it into a Windows Form. Handle the form’s Paint event and call the CharacterRangeEquality2 method from the Paint event-handling method, passing e as PaintEventArgs.
.NET Framework
Available since 2.0
Available since 2.0
Show: