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)
2879
OwnerDrawPropertyBag retval =
new
();
System\Windows\Forms\OwnerDrawPropertyBag.cs (1)
73
OwnerDrawPropertyBag result =
new
();
26 references to OwnerDrawPropertyBag
System.Windows.Forms (11)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (5)
35
internal
OwnerDrawPropertyBag
? _propBag;
1392
node._propBag =
OwnerDrawPropertyBag
.Copy(_propBag);
1500
_propBag = (
OwnerDrawPropertyBag
?)serializationInfo.GetValue(entry.Name, typeof(
OwnerDrawPropertyBag
));
2057
si.AddValue("PropBag", _propBag, typeof(
OwnerDrawPropertyBag
));
System\Windows\Forms\Controls\TreeView\TreeView.cs (3)
2778
OwnerDrawPropertyBag
renderinfo = GetItemRenderStyles(node, (int)state);
2877
protected
OwnerDrawPropertyBag
GetItemRenderStyles(TreeNode? node, int state)
2879
OwnerDrawPropertyBag
retval = new();
System\Windows\Forms\OwnerDrawPropertyBag.cs (3)
69
public static
OwnerDrawPropertyBag
Copy(
OwnerDrawPropertyBag
? value)
73
OwnerDrawPropertyBag
result = new();
System.Windows.Forms.Tests (15)
SerializableAttributeTests.cs (1)
25
{ typeof(
OwnerDrawPropertyBag
).FullName },
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (14)
16
OwnerDrawPropertyBag
bag = treeView.GetItemRenderStyles(null, 0);
28
OwnerDrawPropertyBag
bag = treeView.GetItemRenderStyles(null, 0);
45
OwnerDrawPropertyBag
bag = treeView.GetItemRenderStyles(null, 0);
62
OwnerDrawPropertyBag
bag = treeView.GetItemRenderStyles(null, 0);
78
OwnerDrawPropertyBag
value = treeView.GetItemRenderStyles(null, 0);
83
OwnerDrawPropertyBag
bag =
OwnerDrawPropertyBag
.Copy(value);
95
OwnerDrawPropertyBag
value = treeView.GetItemRenderStyles(null, 0);
96
OwnerDrawPropertyBag
bag =
OwnerDrawPropertyBag
.Copy(value);
109
OwnerDrawPropertyBag
original = treeView.GetItemRenderStyles(null, 0);
122
OwnerDrawPropertyBag
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.
132
public new
OwnerDrawPropertyBag
GetItemRenderStyles(TreeNode node, int state) => base.GetItemRenderStyles(node, state);