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

CharacterRange

public struct CharacterRange
Specifies a range of character positions within a string.
using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; namespace System.Drawing { public struct CharacterRange { private int _dummyPrimitive; public int First { [System.Runtime.CompilerServices.IsReadOnly] get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public int Length { [System.Runtime.CompilerServices.IsReadOnly] get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public CharacterRange(int First, int Length) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } [System.Runtime.CompilerServices.IsReadOnly] [System.Runtime.CompilerServices.NullableContext(2)] public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhen(true)] object obj) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } [System.Runtime.CompilerServices.IsReadOnly] public override int GetHashCode() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public static bool operator ==(CharacterRange cr1, CharacterRange cr2) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public static bool operator !=(CharacterRange cr1, CharacterRange cr2) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } }