CharacterRange Structure

Specifies a range of character positions within a string.

Namespace:  System.Drawing
Assembly:  Aspose.Drawing (in Aspose.Drawing.dll) Version: 20.9.0.0 (20.9.0)
Syntax
C#
public struct CharacterRange

The CharacterRange type exposes the following members.

Constructors
  NameDescription
Public methodCharacterRange
Initializes a new instance of the CharacterRange struct, specifying a range of character positions within a string.
Properties
  NameDescription
Public propertyFirst
Gets or sets the position in the string of the first character of this CharacterRange.
Public propertyLength
Gets or sets the number of positions in this CharacterRange.
Methods
  NameDescription
Public methodEquals
Gets a value indicating whether this object is equivalent to the specified object.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from ValueType.)
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two CharacterRange objects. Gets a value indicating whether the First and Length values of the two CharacterRange objects are equal.
Public operatorStatic memberInequality
Compares two CharacterRange objects. Gets a value indicating whether the First or Length values of the two CharacterRange objects are not equal.
See Also