48 references to TreeViewDrawMode
System.Windows.Forms (10)
System\Windows\Forms\Controls\TreeView\TreeView.cs (10)
133private TreeViewDrawMode _drawMode = TreeViewDrawMode.Normal; 785if (CheckBoxes && (DrawMode == TreeViewDrawMode.OwnerDrawAll)) 901[DefaultValue(TreeViewDrawMode.Normal)] 903public TreeViewDrawMode DrawMode 916if (DrawMode == TreeViewDrawMode.OwnerDrawAll) 2739if (_drawMode == TreeViewDrawMode.OwnerDrawText) 2745else if (_drawMode == TreeViewDrawMode.OwnerDrawAll) 2815if (_drawMode == TreeViewDrawMode.OwnerDrawText) 3184if (DrawMode == TreeViewDrawMode.OwnerDrawAll)
System.Windows.Forms.Tests (38)
System\Windows\Forms\TreeViewTests.cs (38)
60Assert.Equal(TreeViewDrawMode.Normal, control.DrawMode); 1317[EnumData<TreeViewDrawMode>] 1318public void DrawMode_Set_GetReturnsExpected(TreeViewDrawMode value) 1332[EnumData<TreeViewDrawMode>] 1333public void DrawMode_SetWithHandle_GetReturnsExpected(TreeViewDrawMode value) 1351DrawMode = TreeViewDrawMode.Normal 1371treeView.DrawMode = TreeViewDrawMode.OwnerDrawText; 1372Assert.Equal(TreeViewDrawMode.OwnerDrawText, treeView.DrawMode); 1377treeView.DrawMode = TreeViewDrawMode.OwnerDrawText; 1378Assert.Equal(TreeViewDrawMode.OwnerDrawText, treeView.DrawMode); 1383treeView.DrawMode = TreeViewDrawMode.OwnerDrawAll; 1384Assert.Equal(TreeViewDrawMode.OwnerDrawAll, treeView.DrawMode); 1391treeView.DrawMode = TreeViewDrawMode.Normal; 1392Assert.Equal(TreeViewDrawMode.Normal, treeView.DrawMode); 1402DrawMode = TreeViewDrawMode.Normal 1423treeView.DrawMode = TreeViewDrawMode.OwnerDrawText; 1424Assert.Equal(TreeViewDrawMode.OwnerDrawText, treeView.DrawMode); 1429treeView.DrawMode = TreeViewDrawMode.OwnerDrawText; 1430Assert.Equal(TreeViewDrawMode.OwnerDrawText, treeView.DrawMode); 1435treeView.DrawMode = TreeViewDrawMode.OwnerDrawAll; 1436Assert.Equal(TreeViewDrawMode.OwnerDrawAll, treeView.DrawMode); 1443treeView.DrawMode = TreeViewDrawMode.Normal; 1444Assert.Equal(TreeViewDrawMode.Normal, treeView.DrawMode); 1450[InvalidEnumData<TreeViewDrawMode>] 1451public void DrawMode_SetInvalid_ThrowsInvalidEnumArgumentException(TreeViewDrawMode value) 2703yield return new object[] { font, true, TreeViewDrawMode.Normal, font.Height + 3 }; 2704yield return new object[] { font, true, TreeViewDrawMode.OwnerDrawText, font.Height + 3 }; 2705yield return new object[] { font, true, TreeViewDrawMode.OwnerDrawAll, font.Height + 3 }; 2706yield return new object[] { font, false, TreeViewDrawMode.Normal, font.Height + 3 }; 2707yield return new object[] { font, false, TreeViewDrawMode.OwnerDrawText, font.Height + 3 }; 2708yield return new object[] { font, false, TreeViewDrawMode.OwnerDrawAll, font.Height + 3 }; 2711yield return new object[] { smallFont, true, TreeViewDrawMode.Normal, smallFont.Height + 3 }; 2712yield return new object[] { smallFont, true, TreeViewDrawMode.OwnerDrawText, smallFont.Height + 3 }; 2713yield return new object[] { smallFont, true, TreeViewDrawMode.OwnerDrawAll, 16 }; 2714yield return new object[] { smallFont, false, TreeViewDrawMode.Normal, smallFont.Height + 3 }; 2715yield return new object[] { smallFont, false, TreeViewDrawMode.OwnerDrawText, smallFont.Height + 3 }; 2716yield return new object[] { smallFont, false, TreeViewDrawMode.OwnerDrawAll, smallFont.Height + 3 }; 2721public void ItemHeight_Get_ReturnsExpected(Font font, bool checkBoxes, TreeViewDrawMode drawMode, int expectedHeight)