CharacterRange::Inequality Operator (CharacterRange, CharacterRange)
.NET Framework (current version)
Compares two CharacterRange objects. Gets a value indicating whether the First or Length values of the two CharacterRange objects are not equal.
Assembly: System.Drawing (in System.Drawing.dll)
Parameters
- cr1
-
Type:
System.Drawing::CharacterRange
A CharacterRange to compare for inequality.
- cr2
-
Type:
System.Drawing::CharacterRange
A CharacterRange to compare for inequality.
Return Value
Type: System::Booleantrue to indicate the either the First or Length values of the two CharacterRange objects differ; otherwise, false.
The following example demonstrates how to use the Inequality method. To run this example, paste it into a Windows Form. Handle the form’s Paint event and call the CharacterRangeInequality method from the Paint event-handling method, passing e as PaintEventArgs.
.NET Framework
Available since 2.0
Available since 2.0
Show: