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