3 instantiations of CharacterRange
System.Windows.Forms (2)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
641
ranges.Add(new
CharacterRange
(charStart, ConvertToCharIndex(link.Start + length, text) - charStart));
645
ranges.Add(new
CharacterRange
(0, text.Length));
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.cs (1)
2251
stringFormat.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)
9
public 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>
36
obj is
CharacterRange
other && Equals(other);
41
public readonly bool Equals(
CharacterRange
other) => First == other.First && Length == other.Length;
43
public static bool operator ==(
CharacterRange
cr1,
CharacterRange
cr2) => cr1.Equals(cr2);
45
public static bool operator !=(
CharacterRange
cr1,
CharacterRange
cr2) => !cr1.Equals(cr2);
System\Drawing\StringFormat.cs (1)
123
public void SetMeasurableCharacterRanges(
CharacterRange
[] ranges)
System.Windows.Forms (3)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
612
CharacterRange
[] regions = AdjustCharacterRangesForSurrogateChars();
621
private
CharacterRange
[] AdjustCharacterRangesForSurrogateChars()
632
List<
CharacterRange
> ranges = new(Links.Count + 1);