18 writes to BackColor
System.Windows.Forms.Tests (18)
SerializableTypesTests.cs (1)
352BackColor = Color.Yellow, // Colors and Font are serialized into the property bag.
System\Windows\Forms\TreeNodeTests.cs (17)
267BackColor = value 272node.BackColor = value; 284node.BackColor = value; 289node.BackColor = value; 315node.BackColor = value; 323node.BackColor = value; 344BackColor = Color.Blue 347node.BackColor = value; 351node.BackColor = value; 362BackColor = Color.Blue 366node.BackColor = value; 371node.BackColor = value; 390BackColor = Color.Blue 401node.BackColor = value; 409node.BackColor = value; 424node.BackColor = Color.Red; 440node.BackColor = Color.Red;
27 references to BackColor
System.Windows.Forms (2)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
191Color oldbk = BackColor; 2040return BackColor != Color.Empty;
System.Windows.Forms.Tests (25)
SerializableTypesTests.cs (1)
378Assert.Equal(Color.Yellow, result.BackColor);
System\Windows\Forms\TreeNodeCollectionTests.cs (1)
19Assert.Equal(Color.Empty, treeNode.BackColor);
System\Windows\Forms\TreeNodeTests.cs (23)
17Assert.Equal(Color.Empty, node.BackColor); 57Assert.Equal(Color.Empty, node.BackColor); 105Assert.Equal(Color.Empty, node.BackColor); 148Assert.Equal(Color.Empty, node.BackColor); 196Assert.Equal(Color.Empty, node.BackColor); 269Assert.Equal(value, node.BackColor); 273Assert.Equal(value, node.BackColor); 285Assert.Equal(value, node.BackColor); 290Assert.Equal(value, node.BackColor); 316Assert.Equal(value, node.BackColor); 324Assert.Equal(value, node.BackColor); 348Assert.Equal(value, node.BackColor); 352Assert.Equal(value, node.BackColor); 367Assert.Equal(value, node.BackColor); 372Assert.Equal(value, node.BackColor); 402Assert.Equal(value, node.BackColor); 410Assert.Equal(value, node.BackColor); 420PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TreeNode))[nameof(TreeNode.BackColor)]; 425Assert.Equal(Color.Red, node.BackColor); 429Assert.Equal(Color.Red, node.BackColor); 436PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TreeNode))[nameof(TreeNode.BackColor)]; 441Assert.Equal(Color.Red, node.BackColor); 445Assert.Equal(Color.Red, node.BackColor);