<PackageReference Include="System.Drawing.Common" Version="9.0.5" />

CharacterRange

public struct CharacterRange
Specifies a range of character positions within a string.
public int First { get; set; }

Gets or sets the position in the string of the first character of this CharacterRange.

public int Length { get; set; }

Gets or sets the number of positions in this CharacterRange.

public CharacterRange(int First, int Length)

Initializes a new instance of the CharacterRange structure, specifying a range of character positions within a string.

public static bool op_Equality(CharacterRange cr1, CharacterRange cr2)

Compares two CharacterRange objects. Gets a value indicating whether the First and Length values of the two CharacterRange objects are equal.

public static bool op_Inequality(CharacterRange cr1, CharacterRange cr2)

Compares two CharacterRange objects. Gets a value indicating whether the First or Length values of the two CharacterRange objects are not equal.