3 instantiations of CharacterRange
System.Windows.Forms (2)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
641ranges.Add(new CharacterRange(charStart, ConvertToCharIndex(link.Start + length, text) - charStart)); 645ranges.Add(new CharacterRange(0, text.Length));
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.cs (1)
2251stringFormat.SetMeasurableCharacterRanges([new(0, exceptionText.Length)]);
15 references to CharacterRange
System.Drawing (1)
System.Drawing.cs (1)
12[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.CharacterRange))]
System.Drawing.Common (11)
System\Drawing\CharacterRange.cs (10)
9public struct CharacterRange : IEquatable<CharacterRange> 14/// <summary>Initializes a new instance of the <see cref='CharacterRange'/> class with the specified coordinates.</summary> 21/// <summary>Gets the First character position of this <see cref='CharacterRange'/>.</summary> 28/// <summary>Gets the Length of this <see cref='CharacterRange'/>.</summary> 36obj is CharacterRange other && Equals(other); 41public readonly bool Equals(CharacterRange other) => First == other.First && Length == other.Length; 43public static bool operator ==(CharacterRange cr1, CharacterRange cr2) => cr1.Equals(cr2); 45public static bool operator !=(CharacterRange cr1, CharacterRange cr2) => !cr1.Equals(cr2);
System\Drawing\StringFormat.cs (1)
123public void SetMeasurableCharacterRanges(CharacterRange[] ranges)
System.Windows.Forms (3)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
612CharacterRange[] regions = AdjustCharacterRangesForSurrogateChars(); 621private CharacterRange[] AdjustCharacterRangesForSurrogateChars() 632List<CharacterRange> ranges = new(Links.Count + 1);