31 references to TickStyle
System.Windows.Forms (13)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (13)
38
private
TickStyle
_tickStyle =
TickStyle
.BottomRight;
158
case
TickStyle
.None:
161
case
TickStyle
.TopLeft:
165
case
TickStyle
.BottomRight:
169
case
TickStyle
.Both:
530
[DefaultValue(
TickStyle
.BottomRight)]
532
public
TickStyle
TickStyle
537
if (value is <
TickStyle
.None or >
TickStyle
.Both)
539
throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(
TickStyle
));
779
if (_tickStyle ==
TickStyle
.None || _autoDrawTicks)
1141
if (TickStyle ==
TickStyle
.None)
System.Windows.Forms.Tests (15)
TrackBarTests.cs (15)
102
Assert.Equal(
TickStyle
.BottomRight, control.TickStyle);
134
[InlineData(
TickStyle
.Both, 0x56010009)]
135
[InlineData(
TickStyle
.BottomRight, 0x56010001)]
136
[InlineData(
TickStyle
.None, 0x56010010)]
137
[InlineData(
TickStyle
.TopLeft, 0x56010005)]
138
public void TrackBar_CreateParams_GetTickStyle_ReturnsExpected(
TickStyle
tickStyle, int expectedStyle)
1907
[EnumData<
TickStyle
>]
1908
public void TrackBar_TickStyle_Set_GetReturnsExpected(
TickStyle
value)
1924
[InlineData(
TickStyle
.Both, 1)]
1925
[InlineData(
TickStyle
.BottomRight, 0)]
1926
[InlineData(
TickStyle
.None, 1)]
1927
[InlineData(
TickStyle
.TopLeft, 1)]
1928
public void TrackBar_TickStyle_SetWithHandle_GetReturnsExpected(
TickStyle
value, int expectedCreatedCallCount)
1956
[InvalidEnumData<
TickStyle
>]
1957
public void TrackBar_TickStyle_SetInvalidValue_ThrowsInvalidEnumArgumentException(
TickStyle
value)
WinFormsControlsTest (3)
TrackBars.cs (3)
61
if (trackBar1.TickStyle ==
TickStyle
.BottomRight)
63
trackBar1.TickStyle =
TickStyle
.None;
67
trackBar1.TickStyle =
TickStyle
.BottomRight;