In This Article

UnicodeRange Class

Represents an ordered pair of Unicode character min and max values.

public class UnicodeRange
Inheritance:
object object

Constructors

UnicodeRange()

Initializes a new instance of the UnicodeRange class.

public UnicodeRange()

Remarks

The default constructor initializes all fields to their default values.

UnicodeRange(int, int)

Initializes a new instance of the UnicodeRange class with the specified min and max values.

public UnicodeRange(int min, int max)
Parameter Type Description
min int

The minimum value of the range.

max int

The maximum value of the range.

Properties

Max

Gets or sets the maximum value of this UnicodeRange.

public int Max { get; set; }

Property Value

int:

The maximum value of this UnicodeRange.

Min

Gets or sets the minimum value of this UnicodeRange.

public int Min { get; set; }

Property Value

int:

The minimum value of this UnicodeRange.

Methods

Contains(int)

Returns whether the range inclusively contains the specified value.

public bool Contains(int value)
Parameter Type Description
value int

The value to check.

Returns

bool:

true if the range inclusively contains the specified value; otherwise, false.

Equals(object)

Determines whether the specified Object is equal to the current Object.

public override bool Equals(object obj)
Parameter Type Description
obj object

The Object to compare to the current Object.

Returns

bool:

true if the specified Object is equal to the current Object; otherwise, false.

GetHashCode()

Returns a hash code for this object.

public override int GetHashCode()

Returns

int:

An integer value that specifies a hash value for this object.

ToString()

Converts the object to a String.

public override string ToString()

Returns

string:

A string whose value represents this object.

Operators

operator ==(UnicodeRange, UnicodeRange)

Compares two UnicodeRange objects. The result specifies whether the values of the Min and Max properties of the two UnicodeRange objects are equal.

public static bool operator ==(UnicodeRange left, UnicodeRange right)
Parameter Type Description
left UnicodeRange

A UnicodeRange to compare.

right UnicodeRange

A UnicodeRange to compare.

Returns

bool:

true if the Min and Max values of left and right are equal; otherwise, false.

operator !=(UnicodeRange, UnicodeRange)

Compares two UnicodeRange objects. The result specifies whether the values of the Min and Max properties of the two UnicodeRange objects are unequal.

public static bool operator !=(UnicodeRange left, UnicodeRange right)
Parameter Type Description
left UnicodeRange

A UnicodeRange to compare.

right UnicodeRange

A UnicodeRange to compare.

Returns

bool:

true if the Min and Max values of left and right are unequal; otherwise, false.

Inherited Members