2 writes to Length
System.Windows.Forms.Tests (2)
System\Windows\Forms\LinkAreaTests.cs (2)
55
Length
= value
60
area.
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;
52
public override readonly string ToString() => $"{{Start={Start}, Length={
Length
}}}";
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (4)
99
intConverter.ConvertToString(context, culture, pt.
Length
)
107
new object[] { pt.Start, pt.
Length
});
127
(int)propertyValues[nameof(
Length
)]!);
154
return props.Sort([nameof(Start), nameof(
Length
)]);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (5)
181
if (value.
Length
< -1)
192
_links[0].Length = value.
Length
;
458
return LinkArea.Start == 0 && (LinkArea.IsEmpty || LinkArea.
Length
== new StringInfo(Text).LengthInTextElements);
659
if (LinkArea.Start == 0 && LinkArea.
Length
== stringInfo.LengthInTextElements)
1701
int 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)
63
selectionLength.Should().Be(linkArea.
Length
);
System\Windows\Forms\Design\LinkAreaEditorTests.cs (2)
34
linkAreaResult.
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 }
206
Assert.Equal(nameof(LinkArea.
Length
), properties[1].Name);
System\Windows\Forms\LinkAreaTests.cs (4)
16
Assert.Equal(0, area.
Length
);
30
Assert.Equal(length, area.
Length
);
57
Assert.Equal(value, area.
Length
);
61
Assert.Equal(value, area.
Length
);