11 references to CreateElement
System.Windows.Forms.Tests (11)
System\Windows\Forms\VisualStyles\VisualStyleElementTests.cs (2)
19VisualStyleElement element = VisualStyleElement.CreateElement(className, part, state); 28Assert.Throws<ArgumentNullException>("className", () => VisualStyleElement.CreateElement(null, 1, 2));
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (9)
20yield return new object[] { VisualStyleElement.CreateElement("BUTTON", 0, int.MinValue) }; 21yield return new object[] { VisualStyleElement.CreateElement("BUTTON", 0, int.MaxValue) }; 44yield return new object[] { VisualStyleElement.CreateElement("", 0, 0) }; 45yield return new object[] { VisualStyleElement.CreateElement("NoSuchClassName", 0, 0) }; 46yield return new object[] { VisualStyleElement.CreateElement("BUTTON", -1, 0) }; 47yield return new object[] { VisualStyleElement.CreateElement("BUTTON", int.MinValue, 0) }; 48yield return new object[] { VisualStyleElement.CreateElement("BUTTON", int.MaxValue, 0) }; 100yield return new object[] { VisualStyleElement.CreateElement(string.Empty, 0, 0), false }; 101yield return new object[] { VisualStyleElement.CreateElement("NoSuchName", 0, 0), false };