14 references to OwnerDrawText
System.Windows.Forms (2)
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2739if (_drawMode == TreeViewDrawMode.OwnerDrawText) 2815if (_drawMode == TreeViewDrawMode.OwnerDrawText)
System.Windows.Forms.Tests (12)
System\Windows\Forms\TreeViewTests.cs (12)
1371treeView.DrawMode = TreeViewDrawMode.OwnerDrawText; 1372Assert.Equal(TreeViewDrawMode.OwnerDrawText, treeView.DrawMode); 1377treeView.DrawMode = TreeViewDrawMode.OwnerDrawText; 1378Assert.Equal(TreeViewDrawMode.OwnerDrawText, treeView.DrawMode); 1423treeView.DrawMode = TreeViewDrawMode.OwnerDrawText; 1424Assert.Equal(TreeViewDrawMode.OwnerDrawText, treeView.DrawMode); 1429treeView.DrawMode = TreeViewDrawMode.OwnerDrawText; 1430Assert.Equal(TreeViewDrawMode.OwnerDrawText, treeView.DrawMode); 2704yield return new object[] { font, true, TreeViewDrawMode.OwnerDrawText, font.Height + 3 }; 2707yield return new object[] { font, false, TreeViewDrawMode.OwnerDrawText, font.Height + 3 }; 2712yield return new object[] { smallFont, true, TreeViewDrawMode.OwnerDrawText, smallFont.Height + 3 }; 2715yield return new object[] { smallFont, false, TreeViewDrawMode.OwnerDrawText, smallFont.Height + 3 };