50 references to DashStyle
System.Drawing (1)
System.Drawing.cs (1)
29
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.
DashStyle
))]
System.Drawing.Common (1)
Special\NotSupported.cs (1)
857
public System.Drawing.Drawing2D.
DashStyle
DashStyle { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
System.Drawing.Common.Tests (17)
System\Drawing\PenTests.cs (16)
538
Assert.Equal(
DashStyle
.Custom, pen.DashStyle);
585
[InlineData(
DashStyle
.Dash, new float[] { 3, 1 })]
586
[InlineData(
DashStyle
.DashDot, new float[] { 3, 1, 1, 1 })]
587
[InlineData(
DashStyle
.DashDotDot, new float[] { 3, 1, 1, 1, 1, 1 })]
588
[InlineData(
DashStyle
.Dot, new float[] { 1, 1 })]
589
[InlineData(
DashStyle
.Solid, null)]
590
[InlineData(
DashStyle
.Custom, new float[] { 1 })]
591
public void DashStyle_SetValid_GetReturnsExpected(
DashStyle
dashStyle, float[]? expectedDashPattern)
613
pen.DashStyle =
DashStyle
.Dash;
614
pen.DashStyle =
DashStyle
.Custom;
616
Assert.Equal(
DashStyle
.Custom, pen.DashStyle);
621
[InlineData(
DashStyle
.Solid - 1)]
622
[InlineData(
DashStyle
.Custom + 1)]
623
public void DashStyle_SetInvalid_ThrowsInvalidEnumArgumentException(
DashStyle
dashStyle)
638
AssertExtensions.Throws<ArgumentException>(null, () => pen.DashStyle =
DashStyle
.Dash);
1216
Assert.Equal(
DashStyle
.Solid, pen.DashStyle);
System\Drawing\SystemPensTest.cs (1)
68
AssertExtensions.Throws<ArgumentException>(null, () => pen.DashStyle =
DashStyle
.Custom);
System.Windows.Forms (20)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
517
DashStyle =
DashStyle
.Solid
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
294
DashStyle =
DashStyle
.Dot
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (1)
59
DashStyle =
DashStyle
.Dot
System\Windows\Forms\Rendering\ControlPaint.cs (17)
352
private static
DashStyle
BorderStyleToDashStyle(ButtonBorderStyle borderStyle)
357
return
DashStyle
.Dot;
359
return
DashStyle
.Dash;
361
return
DashStyle
.Solid;
364
return
DashStyle
.Solid;
731
ButtonBorderStyle.Dotted =>
DashStyle
.Dot,
732
ButtonBorderStyle.Dashed =>
DashStyle
.Dash,
733
_ =>
DashStyle
.Solid,
790
ButtonBorderStyle.Dotted =>
DashStyle
.Dot,
791
ButtonBorderStyle.Dashed =>
DashStyle
.Dash,
792
_ =>
DashStyle
.Solid,
854
ButtonBorderStyle.Dotted =>
DashStyle
.Dot,
855
ButtonBorderStyle.Dashed =>
DashStyle
.Dash,
856
_ =>
DashStyle
.Solid,
928
ButtonBorderStyle.Dotted =>
DashStyle
.Dot,
929
ButtonBorderStyle.Dashed =>
DashStyle
.Dash,
930
_ =>
DashStyle
.Solid,
System.Windows.Forms.Design (9)
System\Windows\Forms\Design\PanelDesigner.cs (1)
78
DashStyle =
DashStyle
.Dash
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
50
DashStyle =
DashStyle
.Dash
System\Windows\Forms\Design\SplitterDesigner.cs (1)
34
pen.DashStyle =
DashStyle
.Dash;
System\Windows\Forms\Design\SplitterPanelDesigner.cs (2)
152
DashStyle =
DashStyle
.Dash
170
DashStyle =
DashStyle
.Dash
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
927
p.DashStyle =
DashStyle
.Dot;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
52
DashStyle =
DashStyle
.Dash
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1931
borderPen.DashStyle =
DashStyle
.Dot;
1940
borderPen.DashStyle =
DashStyle
.Dot;
System.Windows.Forms.Primitives (2)
System\Windows\Forms\SystemDrawingExtensions.cs (2)
94
internal static Pen CreateStaticPen(this Color color,
DashStyle
dashStyle)
96
if (dashStyle ==
DashStyle
.Solid)