16 references to Link
System.Windows.Forms (2)
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
69return new LinkLabel.Link(values[0], values[1]);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
523Links.Add(new Link(0, -1)); // default 'magic' link.
System.Windows.Forms.Tests (14)
System\Windows\Forms\AccessibleObjects\LinkLabel.Link.LinkAccessibleObjectTests.cs (1)
216linkLabel.Links.Add(new(start, name.Length));
System\Windows\Forms\LinkConverterTests.cs (6)
24yield return new object[] { "1,2", new LinkLabel.Link(1, 2) }; 25yield return new object[] { " 1 , 1", new LinkLabel.Link(1, 1) }; 74Assert.Equal("1, 2", converter.ConvertTo(new LinkLabel.Link(1, 2), typeof(string))); 75Assert.Equal("1, 2", converter.ConvertTo(null, null, new LinkLabel.Link(1, 2), typeof(string))); 76Assert.Equal("1, 2", converter.ConvertTo(null, CultureInfo.InvariantCulture, new LinkLabel.Link(1, 2), typeof(string))); 83InstanceDescriptor descriptor = Assert.IsType<InstanceDescriptor>(converter.ConvertTo(new LinkLabel.Link(1, 2), typeof(InstanceDescriptor)));
System\Windows\Forms\LinkLabel.LinkComparerTests.cs (6)
11yield return new object[] { null, new LinkLabel.Link(0, 1), -1 }; 12yield return new object[] { new LinkLabel.Link(0, 1), null, 1 }; 13yield return new object[] { new LinkLabel.Link(0, 1), new LinkLabel.Link(0, 1), 0 }; 14yield return new object[] { new LinkLabel.Link(1, 5), new LinkLabel.Link(2, 5), -1 };
System\Windows\Forms\LinkTests.cs (1)
31var link = new LinkLabel.Link(start, length);