73 references to ButtonBorderStyle
System.Windows.Forms (73)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (2)
158
ControlPaint.DrawBorder(g, bounds, ControlPaint.Dark(Control.BackColor),
ButtonBorderStyle
.Solid);
478
ControlPaint.DrawBorder(g, r, c,
ButtonBorderStyle
.Solid);
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (1)
143
ControlPaint.DrawBorder(g, r, colors.options.highContrast ? colors.windowText : colors.buttonShadow,
ButtonBorderStyle
.Solid);
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (1)
216
ControlPaint.DrawBorder(g, r, colors.buttonShadow,
ButtonBorderStyle
.Solid);
winforms\Managed\System\WinForms\ControlPaint.cs (46)
381
private static DashStyle BorderStyleToDashStyle(
ButtonBorderStyle
borderStyle) {
383
case
ButtonBorderStyle
.Dotted: return DashStyle.Dot;
384
case
ButtonBorderStyle
.Dashed: return DashStyle.Dash;
385
case
ButtonBorderStyle
.Solid: return DashStyle.Solid;
434
ControlPaint.DrawBorder(graphics, bounds, Color.FromKnownColor(KnownColor.WindowFrame),
ButtonBorderStyle
.Solid);
533
public static void DrawBorder(Graphics graphics, Rectangle bounds, Color color,
ButtonBorderStyle
style) {
536
case
ButtonBorderStyle
.None:
540
case
ButtonBorderStyle
.Dotted:
541
case
ButtonBorderStyle
.Dashed:
542
case
ButtonBorderStyle
.Solid:
546
case
ButtonBorderStyle
.Inset:
547
case
ButtonBorderStyle
.Outset:
562
Color leftColor, int leftWidth,
ButtonBorderStyle
leftStyle,
563
Color topColor, int topWidth,
ButtonBorderStyle
topStyle,
564
Color rightColor, int rightWidth,
ButtonBorderStyle
rightStyle,
565
Color bottomColor, int bottomWidth,
ButtonBorderStyle
bottomStyle) {
674
case
ButtonBorderStyle
.None:
677
case
ButtonBorderStyle
.Dotted:
685
case
ButtonBorderStyle
.Dashed:
693
case
ButtonBorderStyle
.Solid:
701
case
ButtonBorderStyle
.Inset: {
711
case
ButtonBorderStyle
.Outset: {
729
case
ButtonBorderStyle
.None:
732
case
ButtonBorderStyle
.Dotted:
740
case
ButtonBorderStyle
.Dashed:
748
case
ButtonBorderStyle
.Solid:
756
case
ButtonBorderStyle
.Inset: {
766
case
ButtonBorderStyle
.Outset: {
783
case
ButtonBorderStyle
.None:
786
case
ButtonBorderStyle
.Dotted:
794
case
ButtonBorderStyle
.Dashed:
802
case
ButtonBorderStyle
.Solid:
810
case
ButtonBorderStyle
.Inset: {
820
case
ButtonBorderStyle
.Outset: {
838
case
ButtonBorderStyle
.None:
841
case
ButtonBorderStyle
.Dotted:
849
case
ButtonBorderStyle
.Dashed:
857
case
ButtonBorderStyle
.Solid:
865
case
ButtonBorderStyle
.Inset: {
875
case
ButtonBorderStyle
.Outset: {
982
private static void DrawBorderComplex(Graphics graphics, Rectangle bounds, Color color,
ButtonBorderStyle
style) {
986
if (style ==
ButtonBorderStyle
.Inset) { // button being pushed
1022
Debug.Assert(style ==
ButtonBorderStyle
.Outset, "Caller should have known how to use us.");
1083
private static void DrawBorderSimple(Graphics graphics, Rectangle bounds, Color color,
ButtonBorderStyle
style) {
1088
bool stockBorder = (style ==
ButtonBorderStyle
.Solid && color.IsSystemColor);
1095
if (style !=
ButtonBorderStyle
.Solid) {
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (3)
793
(this.ButtonState == ButtonState.Normal) ?
ButtonBorderStyle
.Outset :
ButtonBorderStyle
.Inset);
885
ButtonBorderStyle
.Solid);
winforms\Managed\System\WinForms\DrawToolTipEventArgs.cs (1)
159
ControlPaint.DrawBorder(graphics, bounds, SystemColors.WindowFrame,
ButtonBorderStyle
.Solid);
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (18)
161
c, 1,
ButtonBorderStyle
.Outset,
162
c, 1,
ButtonBorderStyle
.Outset,
163
c, 2,
ButtonBorderStyle
.Inset,
164
c, 2,
ButtonBorderStyle
.Inset);
167
ControlPaint.DrawBorder(g, r, ControlPaint.Dark(Control.BackColor),
ButtonBorderStyle
.Solid);
174
c, 1,
ButtonBorderStyle
.Solid,
175
c, 1,
ButtonBorderStyle
.Solid,
176
Control.BackColor, 2,
ButtonBorderStyle
.Outset,
177
Control.BackColor, 2,
ButtonBorderStyle
.Outset);
185
c, 1,
ButtonBorderStyle
.Solid,
186
c, 1,
ButtonBorderStyle
.Solid,
187
c, 1,
ButtonBorderStyle
.None,
188
c, 1,
ButtonBorderStyle
.None);
191
ControlPaint.DrawBorder(g, r, ControlPaint.Dark(Control.BackColor),
ButtonBorderStyle
.Solid);
206
c, 1,
ButtonBorderStyle
.None,
207
c, 1,
ButtonBorderStyle
.None,
208
c, 1,
ButtonBorderStyle
.Solid,
209
c, 1,
ButtonBorderStyle
.None);
winforms\Managed\System\WinForms\UpDownBase.cs (1)
856
ControlPaint.DrawBorder(e.Graphics, editBounds, SystemColors.Control,
ButtonBorderStyle
.Solid);