18 references to BorderSize
System.Windows.Forms (18)
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (18)
27rect.Inflate(-Control.FlatAppearance.BorderSize,-Control.FlatAppearance.BorderSize); 32bool hasCustomBorder = (Control.FlatAppearance.BorderSize != BORDERSIZE || !Control.FlatAppearance.BorderColor.IsEmpty); 38Control.FlatAppearance.BorderSize).Layout(); 88if (!(Control.IsDefault && Control.Focused && (Control.FlatAppearance.BorderSize == 0))) { 94if (Control.FlatAppearance.BorderSize != BORDERSIZE) { 95DrawFlatBorderWithSize(g, r, colors.windowFrame, Control.FlatAppearance.BorderSize); 114bool hasCustomBorder = (Control.FlatAppearance.BorderSize != BORDERSIZE || !Control.FlatAppearance.BorderColor.IsEmpty); 120Control.FlatAppearance.BorderSize).Layout(); 162if (!(Control.IsDefault && Control.Focused && (Control.FlatAppearance.BorderSize == 0))) { 168if (Control.FlatAppearance.BorderSize != BORDERSIZE) { 169DrawFlatBorderWithSize(g, r, colors.windowFrame, Control.FlatAppearance.BorderSize); 192bool hasCustomBorder = (Control.FlatAppearance.BorderSize != BORDERSIZE || !Control.FlatAppearance.BorderColor.IsEmpty); 198Control.FlatAppearance.BorderSize).Layout(); 246if (!(Control.IsDefault && Control.Focused && (Control.FlatAppearance.BorderSize == 0))) { 252if (Control.FlatAppearance.BorderSize != BORDERSIZE) { 253DrawFlatBorderWithSize(g, r, colors.windowFrame, Control.FlatAppearance.BorderSize); 272LayoutOptions layout = PaintFlatLayout(e, /* up = */ false, /* check = */ true, Control.FlatAppearance.BorderSize);