1 write to _column
System.Windows.Forms.Tests (1)
System\Windows\Forms\DataGridViewLinkColumnTests.cs (1)
17
_column
= new();
113 references to _column
System.Windows.Forms.Tests (113)
System\Windows\Forms\DataGridViewLinkColumnTests.cs (113)
23
_column
.Dispose();
30
_column
.Should().NotBeNull();
31
_column
.LinkBehavior.Should().Be(LinkBehavior.SystemDefault);
32
_column
.TrackVisitedState.Should().BeTrue();
33
_column
.UseColumnTextForLinkValue.Should().BeFalse();
34
_column
.Text.Should().BeNull();
35
_column
.ToString().Should().Be($"DataGridViewLinkColumn {{ Name=, Index=-1 }}");
36
_column
.ActiveLinkColor.Should().Be(LinkUtilities.IEActiveLinkColor);
38
_column
.CellTemplate = null;
39
_column
.CellTemplate.Should().BeNull();
46
_column
.ActiveLinkColor = color;
47
_column
.ActiveLinkColor.Should().Be(color);
53
_dataGridView.Columns.Add(
_column
);
57
_column
.ActiveLinkColor = color;
58
_column
.ActiveLinkColor.Should().Be(color);
61
((DataGridViewLinkCell)row.Cells[
_column
.Index]).ActiveLinkColor.Should().Be(color);
68
_dataGridView.Columns.Add(
_column
);
71
var color =
_column
.ActiveLinkColor;
75
_column
.ActiveLinkColor = color;
76
_column
.ActiveLinkColor.Should().Be(color);
84
Action action = () =>
_column
.CellTemplate = cell;
92
_column
.CellTemplate = null;
93
_column
.CellTemplate.Should().BeNull();
100
_column
.LinkBehavior = behavior;
101
_column
.LinkBehavior.Should().Be(behavior);
107
_dataGridView.Columns.Add(
_column
);
111
_column
.LinkBehavior = behavior;
112
_column
.LinkBehavior.Should().Be(behavior);
115
((DataGridViewLinkCell)row.Cells[
_column
.Index]).LinkBehavior.Should().Be(behavior);
122
_dataGridView.Columns.Add(
_column
);
125
var behavior =
_column
.LinkBehavior;
129
_column
.LinkBehavior = behavior;
130
_column
.LinkBehavior.Should().Be(behavior);
138
_column
.LinkColor = color;
139
_column
.LinkColor.Should().Be(color);
145
_dataGridView.Columns.Add(
_column
);
149
_column
.LinkColor = color;
150
_column
.LinkColor.Should().Be(color);
153
((DataGridViewLinkCell)row.Cells[
_column
.Index]).LinkColor.Should().Be(color);
160
_dataGridView.Columns.Add(
_column
);
163
var color =
_column
.LinkColor;
167
_column
.LinkColor = color;
168
_column
.LinkColor.Should().Be(color);
176
_column
.Text = text;
177
_column
.Text.Should().Be(text);
183
_dataGridView.Columns.Add(
_column
);
186
var text =
_column
.Text;
190
_column
.Text = text;
191
_column
.Text.Should().Be(text);
199
_column
.TrackVisitedState = trackVisitedState;
200
_column
.TrackVisitedState.Should().Be(trackVisitedState);
206
_dataGridView.Columns.Add(
_column
);
210
_column
.TrackVisitedState = trackVisitedState;
211
_column
.TrackVisitedState.Should().Be(trackVisitedState);
214
((DataGridViewLinkCell)row.Cells[
_column
.Index]).TrackVisitedState.Should().Be(trackVisitedState);
221
_dataGridView.Columns.Add(
_column
);
224
var trackVisitedState =
_column
.TrackVisitedState;
228
_column
.TrackVisitedState = trackVisitedState;
229
_column
.TrackVisitedState.Should().Be(trackVisitedState);
237
_column
.UseColumnTextForLinkValue = useColumnTextForLinkValue;
238
_column
.UseColumnTextForLinkValue.Should().Be(useColumnTextForLinkValue);
244
_dataGridView.Columns.Add(
_column
);
248
_column
.UseColumnTextForLinkValue = useColumnTextForLinkValue;
249
_column
.UseColumnTextForLinkValue.Should().Be(useColumnTextForLinkValue);
252
((DataGridViewLinkCell)row.Cells[
_column
.Index]).UseColumnTextForLinkValue.Should().Be(useColumnTextForLinkValue);
259
_dataGridView.Columns.Add(
_column
);
262
var useColumnTextForLinkValue =
_column
.UseColumnTextForLinkValue;
266
_column
.UseColumnTextForLinkValue = useColumnTextForLinkValue;
267
_column
.UseColumnTextForLinkValue.Should().Be(useColumnTextForLinkValue);
275
_column
.VisitedLinkColor = color;
276
_column
.VisitedLinkColor.Should().Be(color);
282
_dataGridView.Columns.Add(
_column
);
286
_column
.VisitedLinkColor = color;
287
_column
.VisitedLinkColor.Should().Be(color);
290
((DataGridViewLinkCell)row.Cells[
_column
.Index]).VisitedLinkColor.Should().Be(color);
297
_dataGridView.Columns.Add(
_column
);
300
var color =
_column
.VisitedLinkColor;
304
_column
.VisitedLinkColor = color;
305
_column
.VisitedLinkColor.Should().Be(color);
312
_column
.ActiveLinkColor = Color.Red;
313
_column
.LinkBehavior = LinkBehavior.AlwaysUnderline;
314
_column
.LinkColor = Color.Blue;
315
_column
.Text = "Test";
316
_column
.TrackVisitedState = false;
317
_column
.UseColumnTextForLinkValue = true;
318
_column
.VisitedLinkColor = Color.Green;
320
using var clone = (DataGridViewLinkColumn)
_column
.Clone();
321
clone.ActiveLinkColor.Should().Be(
_column
.ActiveLinkColor);
322
clone.LinkBehavior.Should().Be(
_column
.LinkBehavior);
323
clone.LinkColor.Should().Be(
_column
.LinkColor);
324
clone.Text.Should().Be(
_column
.Text);
325
clone.TrackVisitedState.Should().Be(
_column
.TrackVisitedState);
326
clone.UseColumnTextForLinkValue.Should().Be(
_column
.UseColumnTextForLinkValue);
327
clone.VisitedLinkColor.Should().Be(
_column
.VisitedLinkColor);
333
_column
.ActiveLinkColor = Color.Red;
334
_column
.LinkBehavior = LinkBehavior.AlwaysUnderline;
335
_column
.LinkColor = Color.Blue;
336
_column
.Text = "Test";
337
_column
.TrackVisitedState = false;
338
_column
.UseColumnTextForLinkValue = true;
339
_column
.VisitedLinkColor = Color.Green;
341
using var clone = (DataGridViewLinkColumn)
_column
.Clone();
342
clone.Should().NotBeSameAs(
_column
);
343
clone.ActiveLinkColor.Should().Be(
_column
.ActiveLinkColor);
344
clone.LinkBehavior.Should().Be(
_column
.LinkBehavior);
345
clone.LinkColor.Should().Be(
_column
.LinkColor);
346
clone.Text.Should().Be(
_column
.Text);
347
clone.TrackVisitedState.Should().Be(
_column
.TrackVisitedState);
348
clone.UseColumnTextForLinkValue.Should().Be(
_column
.UseColumnTextForLinkValue);
349
clone.VisitedLinkColor.Should().Be(
_column
.VisitedLinkColor);
359
_column
.Name = name;
364
dataGridView.Columns.Add(
_column
);
367
_column
.ToString().Should().Be(expected);