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); 71var color = _column.ActiveLinkColor; 75_column.ActiveLinkColor = color; 76_column.ActiveLinkColor.Should().Be(color); 84Action 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); 125var 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); 163var 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); 186var 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); 224var 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); 262var 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); 300var 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; 320using var clone = (DataGridViewLinkColumn)_column.Clone(); 321clone.ActiveLinkColor.Should().Be(_column.ActiveLinkColor); 322clone.LinkBehavior.Should().Be(_column.LinkBehavior); 323clone.LinkColor.Should().Be(_column.LinkColor); 324clone.Text.Should().Be(_column.Text); 325clone.TrackVisitedState.Should().Be(_column.TrackVisitedState); 326clone.UseColumnTextForLinkValue.Should().Be(_column.UseColumnTextForLinkValue); 327clone.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; 341using var clone = (DataGridViewLinkColumn)_column.Clone(); 342clone.Should().NotBeSameAs(_column); 343clone.ActiveLinkColor.Should().Be(_column.ActiveLinkColor); 344clone.LinkBehavior.Should().Be(_column.LinkBehavior); 345clone.LinkColor.Should().Be(_column.LinkColor); 346clone.Text.Should().Be(_column.Text); 347clone.TrackVisitedState.Should().Be(_column.TrackVisitedState); 348clone.UseColumnTextForLinkValue.Should().Be(_column.UseColumnTextForLinkValue); 349clone.VisitedLinkColor.Should().Be(_column.VisitedLinkColor); 359_column.Name = name; 364dataGridView.Columns.Add(_column); 367_column.ToString().Should().Be(expected);