41 references to ErrorIconAlignment
System.Windows.Forms (32)
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.cs (28)
21
private
ErrorIconAlignment
_iconAlignment;
151
public
ErrorIconAlignment
IconAlignment
173
internal
ErrorIconAlignment
RTLTranslateIconAlignment(
ErrorIconAlignment
align)
179
case
ErrorIconAlignment
.TopLeft:
180
return
ErrorIconAlignment
.TopRight;
181
case
ErrorIconAlignment
.MiddleLeft:
182
return
ErrorIconAlignment
.MiddleRight;
183
case
ErrorIconAlignment
.BottomLeft:
184
return
ErrorIconAlignment
.BottomRight;
185
case
ErrorIconAlignment
.TopRight:
186
return
ErrorIconAlignment
.TopLeft;
187
case
ErrorIconAlignment
.MiddleRight:
188
return
ErrorIconAlignment
.MiddleLeft;
189
case
ErrorIconAlignment
.BottomRight:
190
return
ErrorIconAlignment
.BottomLeft;
213
case
ErrorIconAlignment
.TopLeft:
214
case
ErrorIconAlignment
.MiddleLeft:
215
case
ErrorIconAlignment
.BottomLeft:
218
case
ErrorIconAlignment
.TopRight:
219
case
ErrorIconAlignment
.MiddleRight:
220
case
ErrorIconAlignment
.BottomRight:
227
case
ErrorIconAlignment
.TopLeft:
228
case
ErrorIconAlignment
.TopRight:
231
case
ErrorIconAlignment
.MiddleLeft:
232
case
ErrorIconAlignment
.MiddleRight:
235
case
ErrorIconAlignment
.BottomLeft:
236
case
ErrorIconAlignment
.BottomRight:
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (4)
44
private const
ErrorIconAlignment
DefaultIconAlignment =
ErrorIconAlignment
.MiddleRight;
754
public
ErrorIconAlignment
GetIconAlignment(Control control) => EnsureControlItem(control).IconAlignment;
805
public void SetIconAlignment(Control control,
ErrorIconAlignment
value)
System.Windows.Forms.Tests (9)
System\Windows\Forms\ErrorProviderTests.cs (9)
972
Assert.Equal(
ErrorIconAlignment
.MiddleRight, provider.GetIconAlignment(control));
975
Assert.Equal(
ErrorIconAlignment
.MiddleRight, provider.GetIconAlignment(control));
1068
[EnumData<
ErrorIconAlignment
>]
1069
public void ErrorProvider_SetIconAlignment_Invoke_GetIconAlignmentReturnsExpected(
ErrorIconAlignment
value)
1083
[EnumData<
ErrorIconAlignment
>]
1084
[InvalidEnumData<
ErrorIconAlignment
>]
1085
public void ErrorProvider_SetIconAlignment_NullControl_ThrowsArgumentNullException(
ErrorIconAlignment
value)
1092
[InvalidEnumData<
ErrorIconAlignment
>]
1093
public void ErrorProvider_SetIconAlignment_InvalidValue_ThrowsInvalidEnumArgumentException(
ErrorIconAlignment
value)