2 writes to Length
System.Windows.Forms.Tests (2)
System\Windows\Forms\LinkAreaTests.cs (2)
55Length = value 60area.Length = value;
27 references to Length
System.Windows.Forms (11)
System\Windows\Forms\Controls\Labels\LinkArea.cs (2)
50=> other.Start == start && other.Length == length; 52public override readonly string ToString() => $"{{Start={Start}, Length={Length}}}";
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (4)
99intConverter.ConvertToString(context, culture, pt.Length) 107new object[] { pt.Start, pt.Length }); 127(int)propertyValues[nameof(Length)]!); 154return props.Sort([nameof(Start), nameof(Length)]);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (5)
181if (value.Length < -1) 192_links[0].Length = value.Length; 458return LinkArea.Start == 0 && (LinkArea.IsEmpty || LinkArea.Length == new StringInfo(Text).LengthInTextElements); 659if (LinkArea.Start == 0 && LinkArea.Length == stringInfo.LengthInTextElements) 1701int charEnd = ConvertToCharIndex(pt.Start + pt.Length, text);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (1)
146_sampleEdit.SelectionLength = linkArea.Length;
System.Windows.Forms.Design.Tests (3)
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUITests.cs (1)
63selectionLength.Should().Be(linkArea.Length);
System\Windows\Forms\Design\LinkAreaEditorTests.cs (2)
34linkAreaResult.Length.Should().Be(value.Length);
System.Windows.Forms.Tests (12)
LinkLabelTests.cs (1)
22_linkLabel.LinkArea.Length.Should().Be(0);
System\Windows\Forms\LinkAreaConverterTests.cs (7)
121{ nameof(LinkArea.Length), 2 } 140{ nameof(LinkArea.Length), 2 }, 148{ nameof(LinkArea.Length), 2 }, 155{ nameof(LinkArea.Length), 2 } 164{ nameof(LinkArea.Length), new object() } 172{ nameof(LinkArea.Length), null } 206Assert.Equal(nameof(LinkArea.Length), properties[1].Name);
System\Windows\Forms\LinkAreaTests.cs (4)
16Assert.Equal(0, area.Length); 30Assert.Equal(length, area.Length); 57Assert.Equal(value, area.Length); 61Assert.Equal(value, area.Length);