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