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