54 references to DisplayMode
System.Design (1)
artifacts\obj\System.Design.Facade\Release\net9.0\System.Design.Forwards.cs (1)
33
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.
DisplayMode
))]
System.Windows.Forms.Design (32)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (5)
67
_byteViewer.SetDisplayMode(
DisplayMode
.Auto);
75
_byteViewer.SetDisplayMode(
DisplayMode
.Hexdump);
83
_byteViewer.SetDisplayMode(
DisplayMode
.Ansi);
91
_byteViewer.SetDisplayMode(
DisplayMode
.Unicode);
174
_byteViewer.SetDisplayMode(
DisplayMode
.Auto);
System\ComponentModel\Design\ByteViewer.cs (27)
50
private
DisplayMode
_displayMode;
51
private
DisplayMode
_realDisplayMode;
72
_displayMode =
DisplayMode
.Hexdump;
73
_realDisplayMode =
DisplayMode
.Hexdump;
277
private
DisplayMode
GetAutoDisplayMode()
285
return
DisplayMode
.Hexdump;
292
return
DisplayMode
.Hexdump;
295
return
DisplayMode
.Unicode;
299
return
DisplayMode
.Hexdump;
303
return
DisplayMode
.Hexdump;
307
return
DisplayMode
.Hexdump;
311
return
DisplayMode
.Hexdump;
314
return
DisplayMode
.Hexdump;
317
return
DisplayMode
.Ansi;
319
return
DisplayMode
.Ansi;
352
return
DisplayMode
.Unicode;
357
return
DisplayMode
.Ansi;
360
return
DisplayMode
.Hexdump;
372
public virtual
DisplayMode
GetDisplayMode() => _displayMode;
522
case
DisplayMode
.Hexdump:
531
case
DisplayMode
.Ansi:
535
case
DisplayMode
.Unicode:
621
public virtual void SetDisplayMode(
DisplayMode
mode)
626
_realDisplayMode = (mode ==
DisplayMode
.Auto) ? GetAutoDisplayMode() : mode;
630
case
DisplayMode
.Ansi:
639
case
DisplayMode
.Unicode:
648
case
DisplayMode
.Hexdump:
System.Windows.Forms.Design.Tests (21)
System\ComponentModel\Design\ByteViewerTests.cs (21)
171
Assert.Equal(
DisplayMode
.Hexdump, control.GetDisplayMode());
453
foreach (
DisplayMode
displayMode in Enum.GetValues(typeof(
DisplayMode
)))
464
public void ByteViewer_OnPaint_InvokeWithBytes_CallsPaint(byte[] bytes,
DisplayMode
displayMode)
539
public void ByteViewer_OnPaint_InvokeWithBytesWithHandle_CallsPaint(byte[] bytes,
DisplayMode
displayMode)
721
[InlineData(
DisplayMode
.Auto)]
722
[InlineData(
DisplayMode
.Hexdump)]
723
[InlineData(
DisplayMode
.Ansi)]
724
[InlineData(
DisplayMode
.Unicode)]
725
public void ByteViewer_SetDisplayMode_InvokeNoBytes_GetReturnsExpected(
DisplayMode
value)
739
[EnumData<
DisplayMode
>]
740
public void ByteViewer_SetDisplayMode_InvokeWithBytes_GetReturnsExpected(
DisplayMode
value)
756
[InlineData(
DisplayMode
.Ansi, 2, 3)]
757
[InlineData(
DisplayMode
.Auto, 0, 0)]
758
[InlineData(
DisplayMode
.Hexdump, 0, 0)]
759
[InlineData(
DisplayMode
.Unicode, 2, 3)]
760
public void ByteViewer_SetDisplayMode_InvokeWithBytesWithHandle_GetReturnsExpected(
DisplayMode
value, int expectedInvalidatedCallCount1, int expectedInvalidatedCallCount2)
801
control.SetDisplayMode(
DisplayMode
.Ansi);
831
control.SetDisplayMode(
DisplayMode
.Unicode);
849
[InvalidEnumData<
DisplayMode
>]
850
public void ByteViewer_SetDisplayMode_InvokeInvalidMode_ThrowsInvalidEnumArgumentException(
DisplayMode
value)