533 references to BorderStyle
Accessibility_Core_App (4)
ContainerControls.Designer.cs (4)
123
this.flowLayoutPanel2.BorderStyle = System.Windows.Forms.
BorderStyle
.Fixed3D;
522
this.flowLayoutPanel1.BorderStyle = System.Windows.Forms.
BorderStyle
.FixedSingle;
574
this.panel2.BorderStyle = System.Windows.Forms.
BorderStyle
.Fixed3D;
639
this.panel1.BorderStyle = System.Windows.Forms.
BorderStyle
.FixedSingle;
PresentationUI (29)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (22)
209
this._language.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
219
this._title.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
236
this._identifier.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
293
this._version.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
310
this._category.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
319
this._status.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
328
this._content.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
346
this._author.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
355
this._subject.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
364
this._description.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
375
this._keywords.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
472
this._size.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
491
this._filename.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
501
this._documentType.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
559
this._documentPrintedDate.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
568
this._documentModifiedDate.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
577
this._documentCreatedDate.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
586
this._revision.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
635
this._lastSaved.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
675
this._fileModifiedDate.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
684
this._fileAccessedDate.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
709
this._fileCreatedDate.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (1)
116
this._flowLayoutPanel3.BorderStyle = System.Windows.Forms.
BorderStyle
.FixedSingle;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (4)
77
this.flowLayoutPanelMain.BorderStyle = System.Windows.Forms.
BorderStyle
.Fixed3D;
161
this.textBoxUnrestrictedText.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
235
this.rightsTable.BorderStyle = System.Windows.Forms.
BorderStyle
.FixedSingle;
263
this.textBoxPermissionsContact.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (2)
148
_listBoxSummary.BorderStyle = System.Windows.Forms.
BorderStyle
.None;
165
_listboxMainPanel.BorderStyle = System.Windows.Forms.
BorderStyle
.FixedSingle;
System.Windows.Forms (117)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (7)
242
private const
BorderStyle
DefaultBorderStyle =
BorderStyle
.FixedSingle;
300
private
BorderStyle
_borderStyle;
1070
[DefaultValue(
BorderStyle
.FixedSingle)]
1073
public
BorderStyle
BorderStyle
1113
if (BorderStyle ==
BorderStyle
.Fixed3D)
1117
else if (BorderStyle ==
BorderStyle
.FixedSingle)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
19285
if (BorderStyle ==
BorderStyle
.None)
19318
if (BorderStyle ==
BorderStyle
.Fixed3D)
19330
else if (BorderStyle ==
BorderStyle
.FixedSingle)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
516
textBox.BorderStyle =
BorderStyle
.None;
System\Windows\Forms\Controls\Labels\Label.cs (9)
35
private static readonly BitVector32.Section s_stateBorderStyle = BitVector32.CreateSection((int)
BorderStyle
.Fixed3D, s_stateFlatStyle);
85
_labelState[s_stateBorderStyle] = (int)
BorderStyle
.None;
209
[DefaultValue(
BorderStyle
.None)]
212
public virtual
BorderStyle
BorderStyle
214
get => (
BorderStyle
)_labelState[s_stateBorderStyle];
293
case
BorderStyle
.FixedSingle:
296
case
BorderStyle
.Fixed3D:
1007
if (BorderStyle !=
BorderStyle
.None)
1022
if (BorderStyle ==
BorderStyle
.Fixed3D)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (8)
68
private
BorderStyle
_borderStyle =
BorderStyle
.Fixed3D;
206
[DefaultValue(
BorderStyle
.Fixed3D)]
209
public
BorderStyle
BorderStyle
292
case
BorderStyle
.Fixed3D:
295
case
BorderStyle
.FixedSingle:
748
if (_borderStyle !=
BorderStyle
.None)
2324
if (((nint)m.LParamInternal & PInvoke.PRF_NONCLIENT) != 0 && Application.RenderWithVisualStyles && BorderStyle ==
BorderStyle
.Fixed3D)
System\Windows\Forms\Controls\ListView\ListView.cs (7)
53
private
BorderStyle
_borderStyle =
BorderStyle
.Fixed3D;
415
[DefaultValue(
BorderStyle
.Fixed3D)]
418
public
BorderStyle
BorderStyle
660
case
BorderStyle
.Fixed3D:
663
case
BorderStyle
.FixedSingle:
6896
if (((nint)m.LParamInternal & PInvoke.PRF_NONCLIENT) != 0 && Application.RenderWithVisualStyles && BorderStyle ==
BorderStyle
.Fixed3D)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (6)
35
private
BorderStyle
_borderStyle =
BorderStyle
.None;
133
[DefaultValue(
BorderStyle
.None)]
137
public
BorderStyle
BorderStyle
205
case
BorderStyle
.Fixed3D:
208
case
BorderStyle
.FixedSingle:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
278
BorderStyle =
BorderStyle
.None,
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
312
if (BorderStyle ==
BorderStyle
.FixedSingle && ((cp.Style & (int)WINDOW_STYLE.WS_BORDER) != 0))
3306
if (BorderStyle ==
BorderStyle
.Fixed3D)
System\Windows\Forms\Controls\Splitter\Splitter.cs (6)
28
private
BorderStyle
_borderStyle =
BorderStyle
.None;
177
[DefaultValue(
BorderStyle
.None)]
181
public
BorderStyle
BorderStyle
215
case
BorderStyle
.Fixed3D:
218
case
BorderStyle
.FixedSingle:
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
1798
if (Application.RenderWithVisualStyles && IsHandleCreated && BorderStyle ==
BorderStyle
.Fixed3D)
2896
&& Application.RenderWithVisualStyles && BorderStyle ==
BorderStyle
.Fixed3D)
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
560
if (Application.RenderWithVisualStyles && IsHandleCreated && BorderStyle ==
BorderStyle
.Fixed3D)
823
&& BorderStyle ==
BorderStyle
.Fixed3D)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (9)
53
private
BorderStyle
_borderStyle =
BorderStyle
.Fixed3D;
347
[DefaultValue(
BorderStyle
.Fixed3D)]
350
public
BorderStyle
BorderStyle
422
case
BorderStyle
.Fixed3D:
425
case
BorderStyle
.FixedSingle:
801
if (_borderStyle !=
BorderStyle
.None)
823
if (BorderStyle !=
BorderStyle
.None)
828
if (BorderStyle ==
BorderStyle
.FixedSingle)
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (3)
85
BorderStyle =
BorderStyle
.Fixed3D,
214
[DefaultValue(
BorderStyle
.Fixed3D)]
217
public
BorderStyle
BorderStyle
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
73
return ((BorderStyle ==
BorderStyle
.Fixed3D) &&
System\Windows\Forms\Controls\TreeView\TreeView.cs (7)
124
private
BorderStyle
_borderStyle =
BorderStyle
.Fixed3D;
250
[DefaultValue(
BorderStyle
.Fixed3D)]
253
public
BorderStyle
BorderStyle
323
case
BorderStyle
.Fixed3D:
326
case
BorderStyle
.FixedSingle:
3148
&& Application.RenderWithVisualStyles && BorderStyle ==
BorderStyle
.Fixed3D)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (14)
22
private const
BorderStyle
DefaultBorderStyle =
BorderStyle
.Fixed3D;
35
private
BorderStyle
_borderStyle = DefaultBorderStyle;
52
BorderStyle =
BorderStyle
.None,
181
[DefaultValue(
BorderStyle
.Fixed3D)]
184
public
BorderStyle
BorderStyle
229
case
BorderStyle
.Fixed3D:
232
case
BorderStyle
.FixedSingle:
342
if (_borderStyle !=
BorderStyle
.None)
523
if (_borderStyle !=
BorderStyle
.None)
578
if (!Enabled && BorderStyle !=
BorderStyle
.None && !_upDownEdit.ShouldSerializeBackColor())
840
BorderStyle
borderStyle = BorderStyle;
843
int borderWidth = (borderStyle ==
BorderStyle
.None) ? 0 : 2;
857
if (borderStyle ==
BorderStyle
.None)
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
37
BorderStyle =
BorderStyle
.None;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (8)
34
private
BorderStyle
_borderStyle =
BorderStyle
.None;
233
[DefaultValue(
BorderStyle
.None)]
237
public
BorderStyle
BorderStyle
258
case
BorderStyle
.None:
261
case
BorderStyle
.FixedSingle:
264
case
BorderStyle
.Fixed3D:
2041
panel.BorderStyle =
BorderStyle
.None;
System\Windows\Forms\Panels\Panel.cs (8)
21
private
BorderStyle
_borderStyle =
BorderStyle
.None;
99
[DefaultValue(
BorderStyle
.None)]
102
public
BorderStyle
BorderStyle
133
case
BorderStyle
.Fixed3D:
136
case
BorderStyle
.FixedSingle:
220
if (DesignMode && _borderStyle ==
BorderStyle
.None)
242
return $"{base.ToString()}, BorderStyle: {typeof(
BorderStyle
)}.{_borderStyle}";
System\Windows\Forms\Panels\SplitterPanel.cs (1)
80
public new
BorderStyle
BorderStyle
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
63
public new
BorderStyle
BorderStyle
System\Windows\Forms\Rendering\ControlPaint.cs (4)
394
internal static void PrintBorder(Graphics graphics, Rectangle bounds,
BorderStyle
style, Border3DStyle b3dStyle)
400
case
BorderStyle
.FixedSingle:
403
case
BorderStyle
.Fixed3D:
406
case
BorderStyle
.None:
System\Windows\Forms\UserControl.cs (6)
22
private
BorderStyle
_borderStyle =
BorderStyle
.None;
123
[DefaultValue(
BorderStyle
.None)]
127
public
BorderStyle
BorderStyle
165
case
BorderStyle
.Fixed3D:
168
case
BorderStyle
.FixedSingle:
System.Windows.Forms.Design (34)
System\ComponentModel\Design\ByteViewer.cs (1)
456
BorderStyle =
BorderStyle
.None,
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
53
BorderStyle =
BorderStyle
.None,
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
49
BorderStyle =
BorderStyle
.None,
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
45
BorderStyle =
BorderStyle
.None;
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (1)
25
BorderStyle =
BorderStyle
.None;
System\Drawing\Design\ColorEditor.ColorUI.cs (2)
181
BorderStyle =
BorderStyle
.FixedSingle,
195
BorderStyle =
BorderStyle
.FixedSingle,
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
25
BorderStyle =
BorderStyle
.None;
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
239
BorderStyle =
BorderStyle
.None
System\Windows\Forms\Design\DesignerFrame.cs (1)
277
_splitter.BorderStyle =
BorderStyle
.Fixed3D;
System\Windows\Forms\Design\LabelDesigner.cs (10)
53
BorderStyle
borderStyle =
BorderStyle
.None;
66
if (label is not null && label.BorderStyle ==
BorderStyle
.None)
99
private static int LabelBaselineOffset(ContentAlignment alignment,
BorderStyle
borderStyle)
104
if (borderStyle ==
BorderStyle
.None)
108
else if (borderStyle is
BorderStyle
.FixedSingle or
BorderStyle
.Fixed3D)
120
if (borderStyle ==
BorderStyle
.None)
124
else if (borderStyle is
BorderStyle
.FixedSingle or
BorderStyle
.Fixed3D)
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
51
BorderStyle =
BorderStyle
.FixedSingle;
System\Windows\Forms\Design\PanelDesigner.cs (1)
55
if (panel.BorderStyle ==
BorderStyle
.None)
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
69
if (pictureBox.BorderStyle ==
BorderStyle
.None)
System\Windows\Forms\Design\SplitterDesigner.cs (1)
46
if (((Splitter)Component).BorderStyle ==
BorderStyle
.None)
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
201
if (_splitterPanel!.BorderStyle ==
BorderStyle
.None)
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (5)
30
BorderStyle
borderStyle =
BorderStyle
.Fixed3D;
37
if (borderStyle ==
BorderStyle
.None)
41
else if (borderStyle ==
BorderStyle
.FixedSingle)
45
else if (borderStyle ==
BorderStyle
.Fixed3D)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
877
BorderStyle =
BorderStyle
.FixedSingle,
System\Windows\Forms\Design\UpDownBaseDesigner.cs (3)
46
BorderStyle
borderStyle =
BorderStyle
.Fixed3D;
53
baseline += borderStyle ==
BorderStyle
.None ? -1 : 2;
System.Windows.Forms.Design.Tests (10)
System\ComponentModel\Design\ByteViewerTests.cs (1)
33
Assert.Equal(
BorderStyle
.None, control.BorderStyle);
System\Windows\Forms\Design\TextBoxBaseDesignerTests.cs (4)
45
[InlineData(
BorderStyle
.None, 0)]
46
[InlineData(
BorderStyle
.FixedSingle, 2)]
47
[InlineData(
BorderStyle
.Fixed3D, 3)]
48
public void SnapLines_ReturnsCorrectSnapLines(
BorderStyle
borderStyle, int expectedBaselineOffset)
System\Windows\Forms\Design\UpDownBaseDesignerTests.cs (5)
27
private void InitializeDesigner(
BorderStyle
borderStyle)
42
InitializeDesigner(
BorderStyle
.None);
49
[InlineData(
BorderStyle
.None, -1)]
50
[InlineData(
BorderStyle
.Fixed3D, 2)]
51
public void SnapLines_ReturnsCorrectSnapLine(
BorderStyle
borderStyle, int expectedBaselineOffset)
System.Windows.Forms.Tests (329)
System\Windows\Forms\DataGridViewTests.cs (2)
3107
_dataGridView.BorderStyle =
BorderStyle
.Fixed3D;
3111
_dataGridView.BorderStyle =
BorderStyle
.FixedSingle;
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
37
Assert.Equal(
BorderStyle
.Fixed3D, control.BorderStyle);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
34
Assert.Equal(
BorderStyle
.None, control.BorderStyle);
System\Windows\Forms\DomainUpDownTests.cs (1)
47
_sub.BorderStyle.Should().Be(
BorderStyle
.Fixed3D);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
33
Assert.Equal(
BorderStyle
.None, control.BorderStyle);
System\Windows\Forms\LabelTests.cs (7)
30
Assert.Equal(
BorderStyle
.None, control.BorderStyle);
307
foreach (
BorderStyle
style in Enum.GetValues(typeof(
BorderStyle
)))
316
public void Label_BorderStyle_Set_GetReturnsExpected(bool autoSize,
BorderStyle
style)
339
if (style !=
BorderStyle
.None)
341
control.BorderStyle =
BorderStyle
.None;
342
Assert.Equal(
BorderStyle
.None, control.BorderStyle);
System\Windows\Forms\ListBoxTests.cs (52)
31
Assert.Equal(
BorderStyle
.Fixed3D, control.BorderStyle);
237
[InlineData(
BorderStyle
.None, 0x562100C1, 0)]
238
[InlineData(
BorderStyle
.Fixed3D, 0x562100C1, 0x200)]
239
[InlineData(
BorderStyle
.FixedSingle, 0x56A100C1, 0)]
240
public void ListBox_CreateParams_GetBorderStyle_ReturnsExpected(
BorderStyle
borderStyle, int expectedStyle, int expectedExStyle)
592
[EnumData<
BorderStyle
>]
593
public void ListBox_BorderStyle_Set_GetReturnsExpected(
BorderStyle
value)
611
[InlineData(
BorderStyle
.Fixed3D, 0)]
612
[InlineData(
BorderStyle
.FixedSingle, 1)]
613
[InlineData(
BorderStyle
.None, 1)]
614
public void ListBox_BorderStyle_SetWithHandle_GetReturnsExpected(
BorderStyle
value, int expectedCreatedCallCount)
644
[InvalidEnumData<
BorderStyle
>]
645
public void ListBox_BorderStyle_SetInvalid_ThrowsInvalidEnumArgumentException(
BorderStyle
value)
2051
yield return new object[] { DrawMode.Normal,
BorderStyle
.Fixed3D, Control.DefaultFont.Height + extra };
2052
yield return new object[] { DrawMode.Normal,
BorderStyle
.FixedSingle, Control.DefaultFont.Height + extra };
2053
yield return new object[] { DrawMode.Normal,
BorderStyle
.None, Control.DefaultFont.Height };
2055
yield return new object[] { DrawMode.OwnerDrawFixed,
BorderStyle
.Fixed3D, Control.DefaultFont.Height + extra };
2056
yield return new object[] { DrawMode.OwnerDrawFixed,
BorderStyle
.FixedSingle, Control.DefaultFont.Height + extra };
2057
yield return new object[] { DrawMode.OwnerDrawFixed,
BorderStyle
.None, Control.DefaultFont.Height };
2059
yield return new object[] { DrawMode.OwnerDrawVariable,
BorderStyle
.Fixed3D, extra };
2060
yield return new object[] { DrawMode.OwnerDrawVariable,
BorderStyle
.FixedSingle, extra };
2061
yield return new object[] { DrawMode.OwnerDrawVariable,
BorderStyle
.None, 0 };
2066
public void ListBox_PreferredHeight_GetEmpty_ReturnsExpected(DrawMode drawMode,
BorderStyle
borderStyle, int expected)
2080
yield return new object[] { DrawMode.Normal,
BorderStyle
.Fixed3D, (Control.DefaultFont.Height * 2) + extra };
2081
yield return new object[] { DrawMode.Normal,
BorderStyle
.FixedSingle, (Control.DefaultFont.Height * 2) + extra };
2082
yield return new object[] { DrawMode.Normal,
BorderStyle
.None, (Control.DefaultFont.Height * 2) };
2084
yield return new object[] { DrawMode.OwnerDrawFixed,
BorderStyle
.Fixed3D, (Control.DefaultFont.Height * 2) + extra };
2085
yield return new object[] { DrawMode.OwnerDrawFixed,
BorderStyle
.FixedSingle, (Control.DefaultFont.Height * 2) + extra };
2086
yield return new object[] { DrawMode.OwnerDrawFixed,
BorderStyle
.None, (Control.DefaultFont.Height * 2) };
2088
yield return new object[] { DrawMode.OwnerDrawVariable,
BorderStyle
.Fixed3D, (Control.DefaultFont.Height * 2) + extra };
2089
yield return new object[] { DrawMode.OwnerDrawVariable,
BorderStyle
.FixedSingle, (Control.DefaultFont.Height * 2) + extra };
2090
yield return new object[] { DrawMode.OwnerDrawVariable,
BorderStyle
.None, (Control.DefaultFont.Height * 2) };
2095
public void ListBox_PreferredHeight_GetNotEmpty_ReturnsExpected(DrawMode drawMode,
BorderStyle
borderStyle, int expected)
2110
yield return new object[] { DrawMode.Normal,
BorderStyle
.Fixed3D };
2111
yield return new object[] { DrawMode.Normal,
BorderStyle
.FixedSingle };
2112
yield return new object[] { DrawMode.Normal,
BorderStyle
.None };
2114
yield return new object[] { DrawMode.OwnerDrawFixed,
BorderStyle
.Fixed3D };
2115
yield return new object[] { DrawMode.OwnerDrawFixed,
BorderStyle
.FixedSingle };
2116
yield return new object[] { DrawMode.OwnerDrawFixed,
BorderStyle
.None };
2118
yield return new object[] { DrawMode.OwnerDrawVariable,
BorderStyle
.Fixed3D };
2119
yield return new object[] { DrawMode.OwnerDrawVariable,
BorderStyle
.FixedSingle };
2120
yield return new object[] { DrawMode.OwnerDrawVariable,
BorderStyle
.None };
2125
public void ListBox_PreferredHeight_GetEmptyWithHandle_ReturnsExpected(DrawMode drawMode,
BorderStyle
borderStyle)
2149
public void ListBox_PreferredHeight_GetNotEmptyWithHandle_ReturnsExpected(DrawMode drawMode,
BorderStyle
borderStyle)
4788
foreach (
BorderStyle
borderStyle in Enum.GetValues(typeof(
BorderStyle
)))
4800
public void ListBox_GetPreferredSize_Invoke_ReturnsExpected(
BorderStyle
borderStyle, Size proposedSize)
4816
public void ListBox_GetPreferredSize_InvokeWithPadding_ReturnsExpected(
BorderStyle
borderStyle, Size proposedSize)
4833
public void ListBox_GetPreferredSize_InvokeWithHandle_ReturnsExpected(
BorderStyle
borderStyle, Size proposedSize)
4865
public void ListBox_GetPreferredSize_InvokeWithHandleWithPadding_ReturnsExpected(
BorderStyle
borderStyle, Size proposedSize)
6356
BorderStyle =
BorderStyle
.None,
6380
BorderStyle =
BorderStyle
.None,
System\Windows\Forms\ListViewTests.cs (9)
38
Assert.Equal(
BorderStyle
.Fixed3D, control.BorderStyle);
738
[EnumData<
BorderStyle
>]
739
public void ListView_BorderStyle_Set_GetReturnsExpected(
BorderStyle
value)
755
[InlineData(
BorderStyle
.Fixed3D, 0)]
756
[InlineData(
BorderStyle
.FixedSingle, 1)]
757
[InlineData(
BorderStyle
.None, 1)]
758
public void ListView_BorderStyle_SetWithHandle_GetReturnsExpected(
BorderStyle
value, int expectedInvalidatedCallCount)
786
[InvalidEnumData<
BorderStyle
>]
787
public void ListView_BorderStyle_SetInvalid_ThrowsInvalidEnumArgumentException(
BorderStyle
value)
System\Windows\Forms\PanelTests.cs (27)
34
Assert.Equal(
BorderStyle
.None, control.BorderStyle);
140
[InlineData(
BorderStyle
.None, 0x56000000, 0x10000)]
141
[InlineData(
BorderStyle
.Fixed3D, 0x56000000, 0x10200)]
142
[InlineData(
BorderStyle
.FixedSingle, 0x56800000, 0x10000)]
143
public void Panel_CreateParams_GetBorderStyle_ReturnsExpected(
BorderStyle
borderStyle, int expectedStyle, int expectedExStyle)
553
[EnumData<
BorderStyle
>]
554
public void Panel_BorderStyle_Set_GetReturnsExpected(
BorderStyle
value)
570
[InlineData(
BorderStyle
.Fixed3D, 1)]
571
[InlineData(
BorderStyle
.FixedSingle, 1)]
572
[InlineData(
BorderStyle
.None, 0)]
573
public void Panel_BorderStyle_SetWithHandle_GetReturnsExpected(
BorderStyle
value, int expectedInvalidatedCallCount)
601
[InvalidEnumData<
BorderStyle
>]
602
public void Panel_BorderStyle_SetInvalid_ThrowsInvalidEnumArgumentException(
BorderStyle
value)
1056
yield return new object[] { true,
BorderStyle
.None, null, 2 };
1057
yield return new object[] { true,
BorderStyle
.None, new EventArgs(), 2 };
1058
yield return new object[] { true,
BorderStyle
.Fixed3D, null, 1 };
1059
yield return new object[] { true,
BorderStyle
.Fixed3D, new EventArgs(), 1 };
1060
yield return new object[] { true,
BorderStyle
.FixedSingle, null, 1 };
1061
yield return new object[] { true,
BorderStyle
.FixedSingle, new EventArgs(), 1 };
1063
yield return new object[] { false,
BorderStyle
.None, null, 1 };
1064
yield return new object[] { false,
BorderStyle
.None, new EventArgs(), 1 };
1065
yield return new object[] { false,
BorderStyle
.Fixed3D, null, 0 };
1066
yield return new object[] { false,
BorderStyle
.Fixed3D, new EventArgs(), 0 };
1067
yield return new object[] { false,
BorderStyle
.FixedSingle, null, 0 };
1068
yield return new object[] { false,
BorderStyle
.FixedSingle, new EventArgs(), 0 };
1073
public void Panel_OnResize_InvokeWithDesignMode_CallsResize(bool resizeRedraw,
BorderStyle
borderStyle, EventArgs eventArgs, int expectedInvalidatedCallCount)
1138
Panel panel = new() { BorderStyle =
BorderStyle
.Fixed3D };
System\Windows\Forms\PictureBoxTests.cs (11)
33
Assert.Equal(
BorderStyle
.None, control.BorderStyle);
115
[InlineData(
BorderStyle
.None, 0x56000000, 0)]
116
[InlineData(
BorderStyle
.FixedSingle, 0x56800000, 0)]
117
[InlineData(
BorderStyle
.Fixed3D, 0x56000000, 0x200)]
118
public void PictureBox_CreateParams_Get_ReturnsExpected(
BorderStyle
borderStyle, int expectedStyle, int expectedExStyle)
140
[EnumData<
BorderStyle
>]
141
public void PictureBox_BorderStyle_Set_GetReturnsExpected(
BorderStyle
value)
155
[EnumData<
BorderStyle
>]
156
public void PictureBox_BorderStyle_SetWithHandle_GetReturnsExpected(
BorderStyle
value)
170
[InvalidEnumData<
BorderStyle
>]
171
public void PictureBox_BorderStyle_SetInvalid_ThrowsInvalidEnumArgumentException(
BorderStyle
value)
System\Windows\Forms\RichTextBoxTests.cs (12)
41
Assert.Equal(
BorderStyle
.Fixed3D, control.BorderStyle);
161
[InlineData(
BorderStyle
.None, 0x56210044, 0)]
162
[InlineData(
BorderStyle
.Fixed3D, 0x56210044, 0x200)]
163
[InlineData(
BorderStyle
.FixedSingle, 0x56210044, 0x200)]
164
public void RichTextBox_CreateParams_GetBorderStyle_ReturnsExpected(
BorderStyle
borderStyle, int expectedStyle, int expectedExStyle)
10322
yield return new object[] {
BorderStyle
.Fixed3D, Rectangle.Empty, new Rectangle(0, 0, 0, 1) };
10323
yield return new object[] {
BorderStyle
.FixedSingle, Rectangle.Empty, Rectangle.Empty };
10324
yield return new object[] {
BorderStyle
.None, Rectangle.Empty, Rectangle.Empty };
10326
yield return new object[] {
BorderStyle
.Fixed3D, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 5) };
10327
yield return new object[] {
BorderStyle
.FixedSingle, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4) };
10328
yield return new object[] {
BorderStyle
.None, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4) };
10333
public unsafe void RichTextBox_WndProc_InvokeReflectNotifyWithHandleWithHWndRequestResize_Success(
BorderStyle
borderStyle, Rectangle result, Rectangle expected)
System\Windows\Forms\SplitterPanelTests.cs (9)
40
Assert.Equal(
BorderStyle
.None, control.BorderStyle);
327
[EnumData<
BorderStyle
>]
328
public void SplitterPanel_BorderStyle_Set_GetReturnsExpected(
BorderStyle
value)
344
[InlineData(
BorderStyle
.Fixed3D, 1)]
345
[InlineData(
BorderStyle
.FixedSingle, 1)]
346
[InlineData(
BorderStyle
.None, 0)]
347
public void SplitterPanel_BorderStyle_SetWithHandle_GetReturnsExpected(
BorderStyle
value, int expectedInvalidatedCallCount)
375
[InvalidEnumData<
BorderStyle
>]
376
public void SplitterPanel_BorderStyle_SetInvalid_ThrowsInvalidEnumArgumentException(
BorderStyle
value)
System\Windows\Forms\SplitterTests.cs (13)
29
Assert.Equal(
BorderStyle
.None, control.BorderStyle);
127
[InlineData(
BorderStyle
.None, 0x56000000, 0)]
128
[InlineData(
BorderStyle
.Fixed3D, 0x56000000, 0x200)]
129
[InlineData(
BorderStyle
.FixedSingle, 0x56800000, 0)]
130
public void Splitter_CreateParams_GetBorderStyle_ReturnsExpected(
BorderStyle
borderStyle, int expectedStyle, int expectedExStyle)
313
[EnumData<
BorderStyle
>]
314
public void Splitter_BorderStyle_Set_GetReturnsExpected(
BorderStyle
value)
332
[InlineData(
BorderStyle
.Fixed3D, 1)]
333
[InlineData(
BorderStyle
.FixedSingle, 1)]
334
[InlineData(
BorderStyle
.None, 0)]
335
public void Splitter_BorderStyle_SetWithHandle_GetReturnsExpected(
BorderStyle
value, int expectedInvalidatedCallCount)
365
[InvalidEnumData<
BorderStyle
>]
366
public void Splitter_BorderStyle_SetInvalid_ThrowsInvalidEnumArgumentException(
BorderStyle
value)
System\Windows\Forms\TableLayoutPanelTests.cs (9)
35
Assert.Equal(
BorderStyle
.None, control.BorderStyle);
151
[EnumData<
BorderStyle
>]
152
public void TableLayoutPanel_BorderStyle_Set_GetReturnsExpected(
BorderStyle
value)
168
[InlineData(
BorderStyle
.Fixed3D, 1)]
169
[InlineData(
BorderStyle
.FixedSingle, 1)]
170
[InlineData(
BorderStyle
.None, 0)]
171
public void TableLayoutPanel_BorderStyle_SetWithHandle_GetReturnsExpected(
BorderStyle
value, int expectedInvalidatedCallCount)
199
[InvalidEnumData<
BorderStyle
>]
200
public void TableLayoutPanel_BorderStyle_SetInvalid_ThrowsInvalidEnumArgumentException(
BorderStyle
value)
System\Windows\Forms\TabPageTests.cs (2)
38
Assert.Equal(
BorderStyle
.None, control.BorderStyle);
147
Assert.Equal(
BorderStyle
.None, control.BorderStyle);
System\Windows\Forms\ToolStripContentPanelTests.cs (9)
36
Assert.Equal(
BorderStyle
.None, control.BorderStyle);
721
[EnumData<
BorderStyle
>]
722
public void ToolStripContentPanel_BorderStyle_Set_GetReturnsExpected(
BorderStyle
value)
738
[InlineData(
BorderStyle
.Fixed3D, 1)]
739
[InlineData(
BorderStyle
.FixedSingle, 1)]
740
[InlineData(
BorderStyle
.None, 0)]
741
public void ToolStripContentPanel_BorderStyle_SetWithHandle_GetReturnsExpected(
BorderStyle
value, int expectedInvalidatedCallCount)
769
[InvalidEnumData<
BorderStyle
>]
770
public void ToolStripContentPanel_BorderStyle_SetInvalid_ThrowsInvalidEnumArgumentException(
BorderStyle
value)
System\Windows\Forms\ToolStripTextBoxTests.cs (13)
223
[InlineData(
BorderStyle
.FixedSingle)]
224
[InlineData(
BorderStyle
.Fixed3D)]
225
public void ToolStripTextBox_BorderStyle_GetSet_ReturnsExpected(
BorderStyle
borderStyle)
405
_toolStripTextBox.BorderStyle =
BorderStyle
.None;
407
_toolStripTextBox.BorderStyle.Should().Be(
BorderStyle
.None);
410
_toolStripTextBox.BorderStyle =
BorderStyle
.Fixed3D;
412
_toolStripTextBox.BorderStyle.Should().Be(
BorderStyle
.Fixed3D);
424
_toolStripTextBox.BorderStyle =
BorderStyle
.None;
427
_toolStripTextBox.BorderStyle.Should().Be(
BorderStyle
.None);
430
_toolStripTextBox.BorderStyle =
BorderStyle
.Fixed3D;
433
_toolStripTextBox.BorderStyle.Should().Be(
BorderStyle
.Fixed3D);
436
_toolStripTextBox.BorderStyle =
BorderStyle
.None;
439
_toolStripTextBox.BorderStyle.Should().Be(
BorderStyle
.None);
System\Windows\Forms\TreeViewTests.cs (27)
29
Assert.Equal(
BorderStyle
.Fixed3D, control.BorderStyle);
185
[InlineData(
BorderStyle
.None, 0x56010007, 0)]
186
[InlineData(
BorderStyle
.Fixed3D, 0x56010007, 0x200)]
187
[InlineData(
BorderStyle
.FixedSingle, 0x56810007, 0)]
188
public void TreeView_CreateParams_GetBorder_ReturnsExpected(
BorderStyle
borderStyle, int expectedStyle, int expectedExStyle)
909
[EnumData<
BorderStyle
>]
910
public void BorderStyle_Set_GetReturnsExpected(
BorderStyle
value)
928
BorderStyle =
BorderStyle
.Fixed3D
948
treeView.BorderStyle =
BorderStyle
.None;
949
Assert.Equal(
BorderStyle
.None, treeView.BorderStyle);
954
treeView.BorderStyle =
BorderStyle
.None;
955
Assert.Equal(
BorderStyle
.None, treeView.BorderStyle);
960
treeView.BorderStyle =
BorderStyle
.FixedSingle;
961
Assert.Equal(
BorderStyle
.FixedSingle, treeView.BorderStyle);
968
treeView.BorderStyle =
BorderStyle
.Fixed3D;
969
Assert.Equal(
BorderStyle
.Fixed3D, treeView.BorderStyle);
979
BorderStyle =
BorderStyle
.Fixed3D
1000
treeView.BorderStyle =
BorderStyle
.None;
1001
Assert.Equal(
BorderStyle
.None, treeView.BorderStyle);
1006
treeView.BorderStyle =
BorderStyle
.None;
1007
Assert.Equal(
BorderStyle
.None, treeView.BorderStyle);
1012
treeView.BorderStyle =
BorderStyle
.FixedSingle;
1013
Assert.Equal(
BorderStyle
.FixedSingle, treeView.BorderStyle);
1020
treeView.BorderStyle =
BorderStyle
.Fixed3D;
1021
Assert.Equal(
BorderStyle
.Fixed3D, treeView.BorderStyle);
1027
[InvalidEnumData<
BorderStyle
>]
1028
public void BorderStyle_SetInvalid_ThrowsInvalidEnumArgumentException(
BorderStyle
value)
System\Windows\Forms\UpDownBaseTests.cs (44)
34
Assert.Equal(
BorderStyle
.Fixed3D, control.BorderStyle);
170
[InlineData(
BorderStyle
.None, 0x56010000, 0x10000)]
171
[InlineData(
BorderStyle
.Fixed3D, 0x56010000, 0x10200)]
172
[InlineData(
BorderStyle
.FixedSingle, 0x56810000, 0x10000)]
173
public void UpDownSubUpDownBase_CreateParams_GetBorderStyleNoVisualStyles_ReturnsExpected(
BorderStyle
borderStyle, int expectedStyle, int expectedExStyle)
719
yield return new object[] {
BorderStyle
.Fixed3D, new Size(122, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) };
720
yield return new object[] {
BorderStyle
.FixedSingle, new Size(122, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) };
721
yield return new object[] {
BorderStyle
.None, new Size(122, Control.DefaultFont.Height + 3) };
725
yield return new object[] {
BorderStyle
.Fixed3D, new Size(123, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) };
726
yield return new object[] {
BorderStyle
.FixedSingle, new Size(121, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) };
727
yield return new object[] {
BorderStyle
.None, new Size(119, Control.DefaultFont.Height + 3) };
733
public void UpDownBase_BorderStyle_Set_GetReturnsExpected(
BorderStyle
value, Size expectedPreferredSize)
756
yield return new object[] {
BorderStyle
.Fixed3D, 0, 0, new Size(122, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) };
757
yield return new object[] {
BorderStyle
.FixedSingle, 0, 1, new Size(122, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) };
758
yield return new object[] {
BorderStyle
.None, 1, 1, new Size(123, Control.DefaultFont.Height + 3) };
762
yield return new object[] {
BorderStyle
.Fixed3D, 0, 0, new Size(123, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) };
763
yield return new object[] {
BorderStyle
.FixedSingle, 1, 1, new Size(123, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) };
764
yield return new object[] {
BorderStyle
.None, 2, 1, new Size(123, Control.DefaultFont.Height + 3) };
770
public void UpDownBase_BorderStyle_SetWithHandle_GetReturnsExpected(
BorderStyle
value, int expectedInvalidatedCallCount, int expectedCreatedCallCount, Size expectedPreferredSize)
802
[InvalidEnumData<
BorderStyle
>]
803
public void UpDownBase_BorderStyle_SetInvalid_ThrowsInvalidEnumArgumentException(
BorderStyle
value)
1429
foreach (
BorderStyle
borderStyle in Enum.GetValues(typeof(
BorderStyle
)))
1441
public void UpDownBase_UpDownAlign_Set_GetReturnsExpected(
BorderStyle
borderStyle, RightToLeft rightToLeft, LeftRightAlignment value)
1460
foreach (
BorderStyle
borderStyle in Enum.GetValues(typeof(
BorderStyle
)))
1472
public void UpDownBase_UpDownAlign_SetWithHandle_GetReturnsExpected(
BorderStyle
borderStyle, RightToLeft rightToLeft, LeftRightAlignment value, int expectedInvalidatedCallCount)
1765
foreach (
BorderStyle
borderStyle in Enum.GetValues(typeof(
BorderStyle
)))
1780
public void UpDownBase_OnFontChanged_Invoke_CallsFontChanged(
BorderStyle
borderStyle, RightToLeft rightToLeft, LeftRightAlignment upDownAlign, EventArgs eventArgs)
1815
foreach (
BorderStyle
borderStyle in Enum.GetValues(typeof(
BorderStyle
)))
1830
public void UpDownBase_OnHandleCreated_Invoke_CallsHandleCreated(
BorderStyle
borderStyle, RightToLeft rightToLeft, LeftRightAlignment upDownAlign, EventArgs eventArgs)
1863
public void UpDownBase_OnHandleCreated_InvokeWithHandle_CallsHandleCreated(
BorderStyle
borderStyle, RightToLeft rightToLeft, LeftRightAlignment upDownAlign, EventArgs eventArgs)
1956
foreach (
BorderStyle
borderStyle in Enum.GetValues(typeof(
BorderStyle
)))
1972
public void UpDownBase_OnLayout_Invoke_CallsLayout(
BorderStyle
borderStyle, RightToLeft rightToLeft, LeftRightAlignment upDownAlign, LayoutEventArgs eventArgs)
2227
foreach (
BorderStyle
borderStyle in Enum.GetValues(typeof(
BorderStyle
)))
2243
public void UpDownBase_OnPaint_Invoke_CallsPaint(Size size, bool enabled,
BorderStyle
borderStyle, Color backColor)
2279
public void UpDownBase_OnPaint_InvokeWithHandle_CallsPaint(Size size, bool enabled,
BorderStyle
borderStyle, Color backColor)
2500
foreach (
BorderStyle
borderStyle in Enum.GetValues(typeof(
BorderStyle
)))
2517
public void UpDownBase_OnTextBoxResize_Invoke_CallsTextBoxResize(
BorderStyle
borderStyle, RightToLeft rightToLeft, LeftRightAlignment upDownAlign, object source, EventArgs eventArgs)
System\Windows\Forms\UserControlTests.cs (12)
147
[InlineData(
BorderStyle
.None, 0x56010000, 0x10000)]
148
[InlineData(
BorderStyle
.Fixed3D, 0x56010000, 0x10200)]
149
[InlineData(
BorderStyle
.FixedSingle, 0x56810000, 0x10000)]
150
public void UserControl_CreateParams_GetBorderStyle_ReturnsExpected(
BorderStyle
borderStyle, int expectedStyle, int expectedExStyle)
736
[EnumData<
BorderStyle
>]
737
public void UserControl_BorderStyle_Set_GetReturnsExpected(
BorderStyle
value)
753
[InlineData(
BorderStyle
.Fixed3D, 1)]
754
[InlineData(
BorderStyle
.FixedSingle, 1)]
755
[InlineData(
BorderStyle
.None, 0)]
756
public void UserControl_BorderStyle_SetWithHandle_GetReturnsExpected(
BorderStyle
value, int expectedInvalidatedCallCount)
784
[InvalidEnumData<
BorderStyle
>]
785
public void UserControl_BorderStyle_SetInvalid_ThrowsInvalidEnumArgumentException(
BorderStyle
value)
TextBoxBaseTests.cs (66)
91
[InlineData(
BorderStyle
.None, 0x560100C0, 0)]
92
[InlineData(
BorderStyle
.Fixed3D, 0x560100C0, 0x00200)]
93
[InlineData(
BorderStyle
.FixedSingle, 0x568100C0, 0)]
94
public void TextBoxBase_CreateParams_GetBorderStyle_ReturnsExpected(
BorderStyle
borderStyle, int expectedStyle, int expectedExStyle)
554
[EnumData<
BorderStyle
>]
555
public void TextBoxBase_BorderStyle_Set_GetReturnsExpected(
BorderStyle
value)
571
[InlineData(true,
BorderStyle
.Fixed3D, 0)]
572
[InlineData(true,
BorderStyle
.FixedSingle, 1)]
573
[InlineData(true,
BorderStyle
.None, 1)]
574
[InlineData(false,
BorderStyle
.Fixed3D, 0)]
575
[InlineData(false,
BorderStyle
.FixedSingle, 0)]
576
[InlineData(false,
BorderStyle
.None, 0)]
577
public void TextBoxBase_BorderStyle_SetWithParent_GetReturnsExpected(bool autoSize,
BorderStyle
value, int expectedParentLayoutCallCount)
618
[InlineData(
BorderStyle
.Fixed3D, 0)]
619
[InlineData(
BorderStyle
.FixedSingle, 1)]
620
[InlineData(
BorderStyle
.None, 1)]
621
public void TextBoxBase_BorderStyle_SetWithHandle_GetReturnsExpected(
BorderStyle
value, int expectedStyleChangedCallCount)
662
control.BorderStyle =
BorderStyle
.FixedSingle;
663
Assert.Equal(
BorderStyle
.FixedSingle, control.BorderStyle);
667
control.BorderStyle =
BorderStyle
.FixedSingle;
668
Assert.Equal(
BorderStyle
.FixedSingle, control.BorderStyle);
672
control.BorderStyle =
BorderStyle
.Fixed3D;
673
Assert.Equal(
BorderStyle
.Fixed3D, control.BorderStyle);
678
control.BorderStyle =
BorderStyle
.FixedSingle;
679
Assert.Equal(
BorderStyle
.FixedSingle, control.BorderStyle);
684
[InvalidEnumData<
BorderStyle
>]
685
public void TextBoxBase_BorderStyle_SetInvalid_ThrowsInvalidEnumArgumentException(
BorderStyle
value)
2277
yield return new object[] {
BorderStyle
.None, Control.DefaultFont.Height };
2278
yield return new object[] {
BorderStyle
.Fixed3D, s_preferredHeight };
2279
yield return new object[] {
BorderStyle
.FixedSingle, s_preferredHeight };
2284
public void TextBoxBase_PreferredHeight_Get_ReturnsExpected(
BorderStyle
borderStyle, int expected)
4996
yield return new object[] { multiline, wordWrap,
BorderStyle
.Fixed3D, Size.Empty, new Size(4, s_preferredHeight) };
4997
yield return new object[] { multiline, wordWrap,
BorderStyle
.Fixed3D, new Size(-1, -2), new Size(4, s_preferredHeight) };
4998
yield return new object[] { multiline, wordWrap,
BorderStyle
.Fixed3D, new Size(10, 20), new Size(4, s_preferredHeight) };
4999
yield return new object[] { multiline, wordWrap,
BorderStyle
.Fixed3D, new Size(30, 40), new Size(4, s_preferredHeight) };
5000
yield return new object[] { multiline, wordWrap,
BorderStyle
.Fixed3D, new Size(int.MaxValue, int.MaxValue), new Size(4, s_preferredHeight) };
5002
yield return new object[] { multiline, wordWrap,
BorderStyle
.FixedSingle, Size.Empty, new Size(4, s_preferredHeight) };
5003
yield return new object[] { multiline, wordWrap,
BorderStyle
.FixedSingle, new Size(-1, -2), new Size(4, s_preferredHeight) };
5004
yield return new object[] { multiline, wordWrap,
BorderStyle
.FixedSingle, new Size(10, 20), new Size(4, s_preferredHeight) };
5005
yield return new object[] { multiline, wordWrap,
BorderStyle
.FixedSingle, new Size(30, 40), new Size(4, s_preferredHeight) };
5006
yield return new object[] { multiline, wordWrap,
BorderStyle
.FixedSingle, new Size(int.MaxValue, int.MaxValue), new Size(4, s_preferredHeight) };
5008
yield return new object[] { multiline, wordWrap,
BorderStyle
.None, Size.Empty, new Size(0, Control.DefaultFont.Height) };
5009
yield return new object[] { multiline, wordWrap,
BorderStyle
.None, new Size(-1, -2), new Size(0, Control.DefaultFont.Height) };
5010
yield return new object[] { multiline, wordWrap,
BorderStyle
.None, new Size(10, 20), new Size(0, Control.DefaultFont.Height) };
5011
yield return new object[] { multiline, wordWrap,
BorderStyle
.None, new Size(30, 40), new Size(0, Control.DefaultFont.Height) };
5012
yield return new object[] { multiline, wordWrap,
BorderStyle
.None, new Size(int.MaxValue, int.MaxValue), new Size(0, Control.DefaultFont.Height) };
5019
public void TextBox_GetPreferredSize_Invoke_ReturnsExpected(bool multiline, bool wordWrap,
BorderStyle
borderStyle, Size proposedSize, Size expected)
5037
public void TextBox_GetPreferredSize_InvokeWithPadding_ReturnsExpected(bool multiline, bool wordWrap,
BorderStyle
borderStyle, Size proposedSize, Size expected)
5057
yield return new object[] {
BorderStyle
.Fixed3D, Size.Empty, 4, s_preferredHeight };
5058
yield return new object[] {
BorderStyle
.Fixed3D, new Size(-1, -2), 4, s_preferredHeight };
5059
yield return new object[] {
BorderStyle
.Fixed3D, new Size(10, 20), 4, s_preferredHeight };
5060
yield return new object[] {
BorderStyle
.Fixed3D, new Size(30, 40), 4, s_preferredHeight };
5061
yield return new object[] {
BorderStyle
.Fixed3D, new Size(int.MaxValue, int.MaxValue), 4, s_preferredHeight };
5063
yield return new object[] {
BorderStyle
.FixedSingle, Size.Empty, 4, s_preferredHeight };
5064
yield return new object[] {
BorderStyle
.FixedSingle, new Size(-1, -2), 4, s_preferredHeight };
5065
yield return new object[] {
BorderStyle
.FixedSingle, new Size(10, 20), 4, s_preferredHeight };
5066
yield return new object[] {
BorderStyle
.FixedSingle, new Size(30, 40), 4, s_preferredHeight };
5067
yield return new object[] {
BorderStyle
.FixedSingle, new Size(int.MaxValue, int.MaxValue), 4, s_preferredHeight };
5069
yield return new object[] {
BorderStyle
.None, Size.Empty, 0, Control.DefaultFont.Height };
5070
yield return new object[] {
BorderStyle
.None, new Size(-1, -2), 0, Control.DefaultFont.Height };
5071
yield return new object[] {
BorderStyle
.None, new Size(10, 20), 0, Control.DefaultFont.Height };
5072
yield return new object[] {
BorderStyle
.None, new Size(30, 40), 0, Control.DefaultFont.Height };
5073
yield return new object[] {
BorderStyle
.None, new Size(int.MaxValue, int.MaxValue), 0, Control.DefaultFont.Height };
5078
public void TextBox_GetPreferredSize_InvokeWithText_ReturnsExpected(
BorderStyle
borderStyle, Size proposedSize, int expectedAdditionalWidth, int expectedHeight)
5097
public void TextBox_GetPreferredSize_InvokeWithNewLineMultiline_ReturnsExpected(
BorderStyle
borderStyle, Size proposedSize, int expectedAdditionalWidth, int expectedMinimumHeight)
5121
public void TextBox_GetPreferredSize_InvokeWithNewLineNotMultiline_ReturnsExpected(
BorderStyle
borderStyle, Size proposedSize, int expectedAdditionalWidth, int expectedHeight)
TextBoxTests.cs (1)
36
Assert.Equal(
BorderStyle
.Fixed3D, control.BorderStyle);
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
969
PictureBoxDragSource.BorderStyle =
BorderStyle
.FixedSingle;
WinFormsControlsTest (9)
DragDrop.Designer.cs (5)
107
pictureBox1.BorderStyle =
BorderStyle
.FixedSingle;
118
pictureBox2.BorderStyle =
BorderStyle
.FixedSingle;
129
pictureBox3.BorderStyle =
BorderStyle
.FixedSingle;
140
pictureBox4.BorderStyle =
BorderStyle
.FixedSingle;
151
pictureBox5.BorderStyle =
BorderStyle
.FixedSingle;
MultipleControls.Designer.cs (1)
138
this.tabPage1.BorderStyle = System.Windows.Forms.
BorderStyle
.FixedSingle;
ScrollableControls.Designer.cs (3)
91
flowLayoutPanel1.BorderStyle =
BorderStyle
.FixedSingle;
159
panel1.BorderStyle =
BorderStyle
.FixedSingle;
216
splitContainer1.BorderStyle =
BorderStyle
.FixedSingle;