5 instantiations of OwnerDrawPropertyBag
System.Windows.Forms (5)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (3)
212_propBag ??= new OwnerDrawPropertyBag(); 438_propBag ??= new OwnerDrawPropertyBag(); 764_propBag ??= new OwnerDrawPropertyBag();
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2879OwnerDrawPropertyBag retval = new();
System\Windows\Forms\OwnerDrawPropertyBag.cs (1)
73OwnerDrawPropertyBag result = new();
26 references to OwnerDrawPropertyBag
System.Windows.Forms (11)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (5)
35internal OwnerDrawPropertyBag? _propBag; 1392node._propBag = OwnerDrawPropertyBag.Copy(_propBag); 1500_propBag = (OwnerDrawPropertyBag?)serializationInfo.GetValue(entry.Name, typeof(OwnerDrawPropertyBag)); 2057si.AddValue("PropBag", _propBag, typeof(OwnerDrawPropertyBag));
System\Windows\Forms\Controls\TreeView\TreeView.cs (3)
2778OwnerDrawPropertyBag renderinfo = GetItemRenderStyles(node, (int)state); 2877protected OwnerDrawPropertyBag GetItemRenderStyles(TreeNode? node, int state) 2879OwnerDrawPropertyBag retval = new();
System\Windows\Forms\OwnerDrawPropertyBag.cs (3)
69public static OwnerDrawPropertyBag Copy(OwnerDrawPropertyBag? value) 73OwnerDrawPropertyBag result = new();
System.Windows.Forms.Tests (15)
SerializableAttributeTests.cs (1)
29{ typeof(OwnerDrawPropertyBag).FullName },
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (14)
16OwnerDrawPropertyBag bag = treeView.GetItemRenderStyles(null, 0); 28OwnerDrawPropertyBag bag = treeView.GetItemRenderStyles(null, 0); 45OwnerDrawPropertyBag bag = treeView.GetItemRenderStyles(null, 0); 62OwnerDrawPropertyBag bag = treeView.GetItemRenderStyles(null, 0); 78OwnerDrawPropertyBag value = treeView.GetItemRenderStyles(null, 0); 83OwnerDrawPropertyBag bag = OwnerDrawPropertyBag.Copy(value); 95OwnerDrawPropertyBag value = treeView.GetItemRenderStyles(null, 0); 96OwnerDrawPropertyBag bag = OwnerDrawPropertyBag.Copy(value); 109OwnerDrawPropertyBag original = treeView.GetItemRenderStyles(null, 0); 122OwnerDrawPropertyBag bag = Assert.IsType<OwnerDrawPropertyBag>(formatter.Deserialize(stream)); // CodeQL[SM03722] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated. 132public new OwnerDrawPropertyBag GetItemRenderStyles(TreeNode node, int state) => base.GetItemRenderStyles(node, state);