75 references to Properties
System.Windows.Forms.Design (23)
System\Drawing\Design\ToolboxItem.cs (23)
55
get => (AssemblyName?)
Properties
["AssemblyName"];
56
set =>
Properties
["AssemblyName"] = value;
67
AssemblyName[]? names = (AssemblyName[]?)
Properties
["DependentAssemblies"];
70
set =>
Properties
["DependentAssemblies"] = value?.Clone();
79
get => (Bitmap?)
Properties
["Bitmap"];
80
set =>
Properties
["Bitmap"] = value;
89
get => (Bitmap?)
Properties
["OriginalBitmap"];
90
set =>
Properties
["OriginalBitmap"] = value;
99
get => (string?)
Properties
["Company"];
100
set =>
Properties
["Company"] = value;
114
get => (string?)
Properties
["Description"];
115
set =>
Properties
["Description"] = value;
124
get => (string)
Properties
["DisplayName"]!;
125
set =>
Properties
["DisplayName"] = value;
135
get => (ICollection)
Properties
["Filter"]!;
136
set =>
Properties
["Filter"] = value;
146
get => (bool)
Properties
["IsTransient"]!;
147
set =>
Properties
["IsTransient"] = value;
171
get => (string)
Properties
["TypeName"]!;
172
set =>
Properties
["TypeName"] = value;
350
Properties
[entry.Name] = entry.Value;
709
List<string> propertyNames = new(
Properties
.Count);
710
foreach (DictionaryEntry de in
Properties
)
System.Windows.Forms.Design.Tests (52)
System\Drawing\Design\ToolboxItemTests.cs (52)
31
Assert.Empty(item.
Properties
);
32
Assert.Same(item.
Properties
, item.
Properties
);
33
Assert.False(item.
Properties
.IsFixedSize);
34
Assert.False(item.
Properties
.IsReadOnly);
57
Assert.Null(item.
Properties
["AssemblyName"]);
65
Assert.Equal(value.FullName, ((AssemblyName)item.
Properties
["AssemblyName"]).FullName);
66
Assert.NotSame(value, item.
Properties
["AssemblyName"]);
67
Assert.NotSame(item.
Properties
["AssemblyName"], item.
Properties
["AssemblyName"]);
76
Assert.Null(item.
Properties
["AssemblyName"]);
84
Assert.Equal(value.FullName, ((AssemblyName)item.
Properties
["AssemblyName"]).FullName);
85
Assert.NotSame(value, item.
Properties
["AssemblyName"]);
86
Assert.NotSame(item.
Properties
["AssemblyName"], item.
Properties
["AssemblyName"]);
95
Assert.Throws<ArgumentException>("value", () => item.
Properties
.Add("AssemblyName", new object()));
113
Assert.Same(value, item.
Properties
["Bitmap"]);
118
Assert.Same(value, item.
Properties
["Bitmap"]);
125
Assert.Throws<ArgumentException>("value", () => item.
Properties
.Add("Bitmap", new object()));
137
Assert.Equal(expected, item.
Properties
["Company"]);
142
Assert.Equal(expected, item.
Properties
["Company"]);
149
Assert.Throws<ArgumentException>("value", () => item.
Properties
.Add("Company", new object()));
171
Assert.Null(item.
Properties
["DependentAssemblies"]);
177
Assert.Equal(value, item.
Properties
["DependentAssemblies"]);
178
Assert.NotSame(value, item.
Properties
["DependentAssemblies"]);
186
Assert.Null(item.
Properties
["DependentAssemblies"]);
192
Assert.Equal(value, item.
Properties
["DependentAssemblies"]);
193
Assert.NotSame(value, item.
Properties
["DependentAssemblies"]);
201
Assert.Throws<ArgumentException>("value", () => item.
Properties
.Add("DependentAssemblies", new object()));
213
Assert.Equal(expected, item.
Properties
["Description"]);
218
Assert.Equal(expected, item.
Properties
["Description"]);
225
Assert.Throws<ArgumentException>("value", () => item.
Properties
.Add("Description", new object()));
237
Assert.Equal(expected, item.
Properties
["DisplayName"]);
242
Assert.Equal(expected, item.
Properties
["DisplayName"]);
249
Assert.Throws<ArgumentException>("value", () => item.
Properties
.Add("DisplayName", new object()));
269
Assert.Equal(expected, item.
Properties
["Filter"]);
274
Assert.Equal(expected, item.
Properties
["Filter"]);
281
Assert.Throws<ArgumentException>("value", () => item.
Properties
.Add("Filter", new object()));
293
Assert.Equal(value, item.
Properties
["IsTransient"]);
298
Assert.Equal(value, item.
Properties
["IsTransient"]);
305
Assert.Throws<ArgumentNullException>("value", () => item.
Properties
.Add("IsTransient", null));
312
Assert.Throws<ArgumentException>("value", () => item.
Properties
.Add("IsTransient", new object()));
324
Assert.Same(value, item.
Properties
["OriginalBitmap"]);
329
Assert.Same(value, item.
Properties
["OriginalBitmap"]);
336
Assert.Throws<ArgumentException>("value", () => item.
Properties
.Add("OriginalBitmap", new object()));
348
Assert.Equal(expected, item.
Properties
["TypeName"]);
353
Assert.Equal(expected, item.
Properties
["TypeName"]);
360
Assert.Throws<ArgumentException>("value", () => item.
Properties
.Add("TypeName", new object()));
1453
Assert.True(item.
Properties
.IsFixedSize);
1454
Assert.True(item.
Properties
.IsReadOnly);
1459
Assert.True(item.
Properties
.IsFixedSize);
1460
Assert.True(item.
Properties
.IsReadOnly);