59 references to GetStyle
System.Windows.Forms (59)
winforms\Managed\System\WinForms\Button.cs (4)
158
if (
GetStyle
(ControlStyles.UserPaint)) {
300
if (
GetStyle
(ControlStyles.UserPaint)) {
307
if (
GetStyle
(ControlStyles.UserPaint)) {
406
Debug.Assert(!
GetStyle
(ControlStyles.UserPaint), "Shouldn't get BN_CLICKED when UserPaint");
winforms\Managed\System\WinForms\ButtonBase.cs (3)
942
Debug.Assert(
GetStyle
(ControlStyles.UserPaint), "Shouldn't be in PaintControl when control is not UserPaint style");
1139
if (
GetStyle
(ControlStyles.UserPaint)) {
1190
if (OwnerDraw !=
GetStyle
(ControlStyles.UserPaint)) {
winforms\Managed\System\WinForms\ComboBox.cs (5)
2207
else if ((msg == NativeMethods.WM_CTLCOLORLISTBOX) &&
GetStyle
(ControlStyles.UserPaint)) {
3688
if (!Application.RenderWithVisualStyles &&
GetStyle
(ControlStyles.UserPaint) == false && this.DropDownStyle == ComboBoxStyle.DropDownList && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) {
3757
if (
GetStyle
(ControlStyles.UserPaint) == false && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) {
3811
if (
GetStyle
(ControlStyles.UserPaint) == false && FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup) {
3815
if (
GetStyle
(ControlStyles.UserPaint) == false && FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup) {
winforms\Managed\System\WinForms\Control.cs (43)
1115
if (!value.Equals(Color.Empty) && !
GetStyle
(ControlStyles.SupportsTransparentBackColor) && value.A < 255)
1540
return cacheTextCounter > 0 ||
GetStyle
(ControlStyles.CacheText);
1547
if (
GetStyle
(ControlStyles.CacheText) || !IsHandleCreated) {
1873
if (
GetStyle
(ControlStyles.ContainerControl)) {
2395
return
GetStyle
(ControlStyles.OptimizedDoubleBuffer);
2413
return
GetStyle
(ControlStyles.DoubleBuffer | ControlStyles.UserPaint);
2571
if (IsHandleCreated && !
GetStyle
(ControlStyles.UserPaint)) {
3195
if (!c.IsEmpty && !
GetStyle
(ControlStyles.SupportsTransparentBackColor) && c.A < 255)
3642
return
GetStyle
(ControlStyles.SupportsTransparentBackColor) && this.BackColor.A < 255;
3649
return
GetStyle
(ControlStyles.SupportsTransparentBackColor) && c.A < 255;
3706
return
GetStyle
( ControlStyles.ResizeRedraw );
7141
if (!
GetStyle
(ControlStyles.UserPaint)) {
7230
!
GetStyle
(ControlStyles.Opaque));
8174
if (
GetStyle
(ControlStyles.UserPaint)) {
8224
if (IsHandleCreated && !
GetStyle
(ControlStyles.UserPaint)) {
8501
if (
GetStyle
(ControlStyles.UserPaint)) {
8726
if (!
GetStyle
(ControlStyles.UserPaint)){
9383
if (
GetStyle
(ControlStyles.ResizeRedraw)) {
9857
if (!
GetStyle
(ControlStyles.Opaque)) {
10054
if ((validationConstraints & ValidationConstraints.Selectable) == ValidationConstraints.Selectable && !c.
GetStyle
(ControlStyles.Selectable) ||
10402
if(
GetStyle
(ControlStyles.UserPaint)) {
11409
if (DpiHelper.EnableDpiChangedHighDpiImprovements && !
GetStyle
(ControlStyles.UserPaint) && (Properties.GetObject(PropFont) == null)) {
11623
if (!
GetStyle
(ControlStyles.FixedWidth)) {
11626
if (!
GetStyle
(ControlStyles.FixedHeight)) {
12237
return
GetStyle
(ControlStyles.ContainerControl);
12955
if (
GetStyle
(ControlStyles.UserPaint)) {
12958
if (!(
GetStyle
(ControlStyles.AllPaintingInWmPaint))) {
13276
if (!
GetStyle
(ControlStyles.CacheText)) {
13359
if (!
GetStyle
(ControlStyles.UserMouse)) {
13369
if (button == MouseButtons.Left &&
GetStyle
(ControlStyles.Selectable)) {
13473
if (!
GetStyle
(ControlStyles.UserMouse)) {
13495
if (!
GetStyle
(ControlStyles.UserMouse)) {
13652
bool doubleBuffered = DoubleBuffered || (
GetStyle
(ControlStyles.AllPaintingInWmPaint) && DoubleBufferingEnabled);
13743
if ((m.WParam == IntPtr.Zero) &&
GetStyle
(ControlStyles.AllPaintingInWmPaint) || doubleBuffered) {
14163
if (
GetStyle
(ControlStyles.UserPaint)) {
14172
if (
GetStyle
(ControlStyles.UserPaint)) {
14289
if (
GetStyle
(ControlStyles.StandardDoubleClick)) {
14301
if (
GetStyle
(ControlStyles.StandardDoubleClick)) {
14319
if (
GetStyle
(ControlStyles.StandardDoubleClick)) {
14361
if (
GetStyle
(ControlStyles.StandardDoubleClick)) {
15688
if (
GetStyle
(ControlStyles.ResizeRedraw)) {
19482
if (ownerControl.
GetStyle
(ControlStyles.ContainerControl))
19742
if (ownerControl.
GetStyle
(ControlStyles.UseTextForAccessibility)) {
winforms\Managed\System\WinForms\Form.cs (1)
4373
if( !
GetStyle
(ControlStyles.Selectable) || !this.Enabled || !this.Visible) {
winforms\Managed\System\WinForms\LinkLabel.cs (1)
1153
bool optimizeBackgroundRendering = !
GetStyle
(ControlStyles.OptimizedDoubleBuffer);
winforms\Managed\System\WinForms\RadioButton.cs (1)
571
if (mevent.Button == MouseButtons.Left &&
GetStyle
(ControlStyles.UserPaint)) {
winforms\Managed\System\WinForms\RichTextBox.cs (1)
3732
bool oldStyle =
GetStyle
(ControlStyles.UserMouse);