138 references to SetStyle
System.Windows.Forms.Tests (138)
System\Windows\Forms\ControlTests.cs (1)
526
control.
SetStyle
(ControlStyles.ContainerControl, containerControl);
System\Windows\Forms\ControlTests.Handlers.cs (26)
934
control.
SetStyle
(ControlStyles.ResizeRedraw, true);
1471
control.
SetStyle
(ControlStyles.UserPaint, false);
1697
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
2154
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
2808
child1.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
2810
child2.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
2908
child1.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
2910
child2.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
2985
child1.
SetStyle
(ControlStyles.SupportsTransparentBackColor, true);
3277
control.
SetStyle
(ControlStyles.SupportsTransparentBackColor, true);
3279
control.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
3708
control.
SetStyle
(ControlStyles.SupportsTransparentBackColor, true);
3710
control.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
3777
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
3861
control.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor);
3987
control.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor);
4033
control.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor);
4118
control.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor);
4633
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
4634
control.
SetStyle
(ControlStyles.Opaque, opaque);
4684
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
4685
control.
SetStyle
(ControlStyles.Opaque, opaque);
4884
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
5217
control.
SetStyle
(ControlStyles.ResizeRedraw, true);
5627
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
5673
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
System\Windows\Forms\ControlTests.Methods.cs (81)
440
control.
SetStyle
(ControlStyles.UserPaint, false);
625
control.
SetStyle
(ControlStyles.UserPaint, resizeRedraw);
2185
grandparent.
SetStyle
(ControlStyles.ContainerControl, true);
2696
control.
SetStyle
(ControlStyles.FixedWidth, true);
2746
control.
SetStyle
(ControlStyles.FixedHeight, true);
2796
control.
SetStyle
(ControlStyles.FixedWidth, true);
2797
control.
SetStyle
(ControlStyles.FixedHeight, true);
2975
control.
SetStyle
(ControlStyles.Opaque, opaque);
2996
control.
SetStyle
(ControlStyles.Opaque, opaque);
3036
control.
SetStyle
(ControlStyles.Opaque, opaque);
3087
control.
SetStyle
(ControlStyles.Opaque, opaque);
3111
control.
SetStyle
(ControlStyles.Opaque, opaque);
3154
control.
SetStyle
(ControlStyles.Opaque, opaque);
3215
control.
SetStyle
(ControlStyles.Opaque, opaque);
3249
control.
SetStyle
(ControlStyles.Opaque, opaque);
3289
control.
SetStyle
(ControlStyles.Opaque, opaque);
3353
control.
SetStyle
(ControlStyles.Opaque, opaque);
3390
control.
SetStyle
(ControlStyles.Opaque, opaque);
3430
control.
SetStyle
(ControlStyles.Opaque, opaque);
3492
control.
SetStyle
(ControlStyles.Opaque, opaque);
3527
control.
SetStyle
(ControlStyles.Opaque, opaque);
3567
control.
SetStyle
(ControlStyles.Opaque, opaque);
3632
control.
SetStyle
(ControlStyles.Opaque, opaque);
3670
control.
SetStyle
(ControlStyles.Opaque, opaque);
3710
control.
SetStyle
(ControlStyles.Opaque, opaque);
4282
otherControl.
SetStyle
(ControlStyles.SupportsTransparentBackColor, true);
4566
child1.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
4568
child2.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
4666
child1.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
4668
child2.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
7784
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
7910
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
8641
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
8767
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
9473
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
9605
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
9854
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
9963
control.
SetStyle
(flag, value);
9968
control.
SetStyle
(flag, value);
9985
control.
SetStyle
(flag, value);
9993
control.
SetStyle
(flag, value);
11345
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
11448
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
11843
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
11946
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
12820
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
12821
control.
SetStyle
(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint);
12822
control.
SetStyle
(ControlStyles.Opaque, opaque);
12856
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
12857
control.
SetStyle
(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint);
12858
control.
SetStyle
(ControlStyles.Opaque, opaque);
12901
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
12902
control.
SetStyle
(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint);
12903
control.
SetStyle
(ControlStyles.Opaque, opaque);
12944
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
12945
control.
SetStyle
(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint);
12946
control.
SetStyle
(ControlStyles.Opaque, opaque);
13144
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
13145
control.
SetStyle
(ControlStyles.Opaque, opaque);
13167
control.
SetStyle
(ControlStyles.UserPaint, true);
13168
control.
SetStyle
(ControlStyles.Opaque, false);
13199
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
13200
control.
SetStyle
(ControlStyles.Opaque, opaque);
13239
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
13240
control.
SetStyle
(ControlStyles.Opaque, opaque);
13269
control.
SetStyle
(ControlStyles.UserPaint, true);
13270
control.
SetStyle
(ControlStyles.Opaque, false);
13309
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
13310
control.
SetStyle
(ControlStyles.Opaque, opaque);
13440
control.
SetStyle
(ControlStyles.UserMouse, userMouse);
13475
control.
SetStyle
(ControlStyles.UserMouse, userMouse);
13476
control.
SetStyle
(ControlStyles.Selectable, false);
13542
control.
SetStyle
(ControlStyles.UserMouse, userMouse);
13585
control.
SetStyle
(ControlStyles.UserMouse, userMouse);
13586
control.
SetStyle
(ControlStyles.Selectable, false);
13775
control.
SetStyle
(ControlStyles.UserMouse, userMouse);
13810
control.
SetStyle
(ControlStyles.UserMouse, userMouse);
13811
control.
SetStyle
(ControlStyles.Selectable, false);
13873
control.
SetStyle
(ControlStyles.UserMouse, userMouse);
13916
control.
SetStyle
(ControlStyles.UserMouse, userMouse);
13917
control.
SetStyle
(ControlStyles.Selectable, false);
System\Windows\Forms\ControlTests.Properties.cs (30)
1275
control.
SetStyle
(ControlStyles.SupportsTransparentBackColor, true);
2808
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
2911
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
3434
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
4433
control.
SetStyle
(ControlStyles.OptimizedDoubleBuffer, value);
4532
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
4946
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
4992
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
6097
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
6212
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
6848
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
6941
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
7062
control.
SetStyle
(ControlStyles.SupportsTransparentBackColor, true);
7064
control.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
7331
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
7424
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
7547
control.
SetStyle
(ControlStyles.SupportsTransparentBackColor, true);
7549
control.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
9500
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
9544
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
10029
control.
SetStyle
(ControlStyles.ResizeRedraw, value);
11501
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
11621
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
12282
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
12373
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
12494
control.
SetStyle
(ControlStyles.SupportsTransparentBackColor, true);
12496
control.
SetStyle
(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
12776
control.
SetStyle
(ControlStyles.UserPaint, userPaint);
13516
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);
13631
control.
SetStyle
(ControlStyles.ResizeRedraw, resizeRedraw);