35 references to LinkArea
System.Windows.Forms (5)
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (2)
73return new LinkArea(values[0], values[1]); 125return new LinkArea(
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
166? new LinkArea(0, 0) 167: new LinkArea(_links[0].Start, _links[0].Length); 1526private void ResetLinkArea() => LinkArea = new LinkArea(0, -1);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (1)
120Value = new LinkArea(_sampleEdit.SelectionStart, _sampleEdit.SelectionLength);
System.Windows.Forms.Design.Tests (4)
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUITests.cs (3)
51LinkArea linkArea = new(7, 4); 82_linkAreaUI.Start(new LinkArea(1, 2)); 92object? testValue = new LinkArea(3, 4);
System\Windows\Forms\Design\LinkAreaEditorTests.cs (1)
21LinkArea value = new(0, 5);
System.Windows.Forms.Tests (25)
LinkLabelTests.cs (6)
45_linkLabel.LinkArea.Should().Be(new LinkArea(0, 0)); 51LinkArea linkArea1 = new LinkArea(1, 2); 52LinkArea linkArea2 = new LinkArea(3, 4); 66Action act = () => _linkLabel.LinkArea = new LinkArea(start, length); 74_linkLabel.LinkArea = new LinkArea(1, 2); 77_linkLabel.LinkArea = new LinkArea(0, 0);
SerializableTypesTests.cs (1)
106LinkArea linkArea = new(5, 7);
System\Windows\Forms\LinkAreaConverterTests.cs (7)
26yield return new object[] { "1,2", new LinkArea(1, 2) }; 27yield return new object[] { " 1 , 1", new LinkArea(1, 1) }; 76Assert.Equal("1, 2", converter.ConvertTo(new LinkArea(1, 2), typeof(string))); 77Assert.Equal("1, 2", converter.ConvertTo(null, null, new LinkArea(1, 2), typeof(string))); 78Assert.Equal("1, 2", converter.ConvertTo(null, CultureInfo.InvariantCulture, new LinkArea(1, 2), typeof(string))); 85InstanceDescriptor descriptor = Assert.IsType<InstanceDescriptor>(converter.ConvertTo(new LinkArea(1, 2), typeof(InstanceDescriptor))); 123Assert.Equal(new LinkArea(1, 2), area);
System\Windows\Forms\LinkAreaTests.cs (11)
28LinkArea area = new(start, length); 66yield return new object[] { new LinkArea(1, 2), new LinkArea(1, 2), true }; 67yield return new object[] { new LinkArea(1, 2), new LinkArea(2, 2), false }; 68yield return new object[] { new LinkArea(1, 2), new LinkArea(1, 3), false }; 70yield return new object[] { new LinkArea(1, 2), new(), false }; 71yield return new object[] { new LinkArea(1, 2), null, false }; 91LinkArea area = new(1, 2); 98LinkArea area = new(1, 2);