226 references to DockStyle
System.Web.Entity.Design (1)
System\Data\WebControls\Design\Util\WizardForm.cs (1)
344
panel.Dock =
DockStyle
.Fill;
System.Windows.Forms (183)
winforms\Managed\System\WinForms\AxHost.cs (1)
6185
GetP().Dock = (
DockStyle
)value;
winforms\Managed\System\WinForms\Control.cs (1)
2348
public virtual
DockStyle
Dock {
winforms\Managed\System\WinForms\Form.cs (2)
1929
Dock =
DockStyle
.None;
4011
if (IsMdiChild &&
DockStyle
.None != Dock){
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (15)
45
internal const
DockStyle
DefaultDock =
DockStyle
.None;
408
|| (GetAutoSize(element) != DefaultAutoSize && xGetDock(element) ==
DockStyle
.None)) == result,
421
Debug.Assert(((xGetDock(element) !=
DockStyle
.None) && element.ParticipatesInLayout) == result,
510
Debug.Assert(result == (GetAutoSize(element) && xGetDock(element) ==
DockStyle
.None),
519
internal static
DockStyle
xGetDock(IArrangedElement element) {
521
DockStyle
value = (
DockStyle
) state[_dockAndAnchorSection];
526
Debug.Assert(ClientUtils.IsEnumValid(value, (int)value, (int)
DockStyle
.None, (int)
DockStyle
.Fill), "Illegal value returned form xGetDock.");
558
internal static void xSetDock(IArrangedElement element,
DockStyle
value) {
560
Debug.Assert(ClientUtils.IsEnumValid(value, (int)value, (int)
DockStyle
.None, (int)
DockStyle
.Fill), "Illegal value passed to xSetDock.");
565
state[_dockModeSection] = (int) (value ==
DockStyle
.None ? DockAnchorMode.Anchor : DockAnchorMode.Dock);
571
== (value !=
DockStyle
.None), "xSetDock set DockMode incorrectly.");
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (19)
276
case
DockStyle
.Top: {
287
case
DockStyle
.Bottom: {
298
case
DockStyle
.Left: {
309
case
DockStyle
.Right: {
319
case
DockStyle
.Fill:
353
DockStyle
dockStyle = GetDock(element);
354
if ((dockStyle ==
DockStyle
.Top) || (dockStyle ==
DockStyle
.Bottom)) {
357
if ((dockStyle ==
DockStyle
.Left) || (dockStyle ==
DockStyle
.Right)) {
360
if (dockStyle !=
DockStyle
.Fill) {
364
else if(dockStyle ==
DockStyle
.Fill && CommonProperties.GetAutoSize(element)) {
633
SetDock(element,
DockStyle
.None);
660
public static
DockStyle
GetDock(IArrangedElement element) {
664
public static void SetDock(IArrangedElement element,
DockStyle
value) {
670
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
DockStyle
.None, (int)
DockStyle
.Fill)){
671
throw new InvalidEnumArgumentException("value", (int)value, typeof(
DockStyle
));
681
if (value ==
DockStyle
.None) {
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (2)
240
DockStyle
dockStyle = DefaultLayout.GetDock(element);
241
if (dockStyle !=
DockStyle
.None) {
winforms\Managed\System\WinForms\Layout\TableLayout.cs (6)
709
if (tlp.Dock ==
DockStyle
.Top || tlp.Dock ==
DockStyle
.Bottom || tlp.Dock ==
DockStyle
.Fill) {
819
if (tlp.Dock ==
DockStyle
.Left || tlp.Dock ==
DockStyle
.Right || tlp.Dock ==
DockStyle
.Fill) {
winforms\Managed\System\WinForms\MDIClient.cs (1)
53
Dock =
DockStyle
.Fill;
winforms\Managed\System\WinForms\Printing\PrintControllerWithStatusDialog.cs (1)
286
tableLayoutPanel1.Dock = System.Windows.Forms.
DockStyle
.Fill;
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (2)
1071
public override
DockStyle
Dock {
1506
previewControl.Dock =
DockStyle
.Fill;
winforms\Managed\System\WinForms\PropertyGrid.cs (3)
229
toolStrip.Dock =
DockStyle
.None;
252
doccomment.Dock =
DockStyle
.None;
263
hotcommands.Dock =
DockStyle
.None;
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (1)
266
this.pictureLabelTableLayoutPanel.Dock = System.Windows.Forms.
DockStyle
.Fill;
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (1)
76
label.Dock =
DockStyle
.Fill;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (3)
6051
ctl.Dock =
DockStyle
.Fill;
6054
ctl.Dock =
DockStyle
.Fill;
6059
CreateNewLink.Dock =
DockStyle
.Bottom;
winforms\Managed\System\WinForms\ScrollableControl.cs (7)
473
case
DockStyle
.Bottom:
476
case
DockStyle
.Right:
525
case
DockStyle
.Top:
528
case
DockStyle
.Left:
531
case
DockStyle
.Bottom:
532
case
DockStyle
.Fill:
533
case
DockStyle
.Right:
winforms\Managed\System\WinForms\SplitContainer.cs (3)
435
public new
DockStyle
Dock {
2111
if (c1 != null && c1.Dock ==
DockStyle
.Fill) {
2388
if (control is SplitContainer && control.Dock ==
DockStyle
.Fill)
winforms\Managed\System\WinForms\Splitter.cs (47)
72
Dock =
DockStyle
.Left;
121
case
DockStyle
.Top:
122
case
DockStyle
.Bottom:
124
case
DockStyle
.Left:
125
case
DockStyle
.Right:
304
DefaultValue(
DockStyle
.Left)
306
public override
DockStyle
Dock {
311
if (!(value ==
DockStyle
.Top || value ==
DockStyle
.Bottom || value ==
DockStyle
.Left || value ==
DockStyle
.Right)) {
319
case
DockStyle
.Top:
320
case
DockStyle
.Bottom:
325
case
DockStyle
.Left:
326
case
DockStyle
.Right:
342
DockStyle
dock = Dock;
343
return dock ==
DockStyle
.Left || dock ==
DockStyle
.Right;
452
case
DockStyle
.Top:
455
case
DockStyle
.Bottom:
459
case
DockStyle
.Left:
462
case
DockStyle
.Right:
667
case
DockStyle
.Top:
671
case
DockStyle
.Bottom:
675
case
DockStyle
.Left:
679
case
DockStyle
.Right:
697
case
DockStyle
.Top:
698
case
DockStyle
.Bottom:
700
case
DockStyle
.Left:
701
case
DockStyle
.Right:
719
case
DockStyle
.Left:
720
case
DockStyle
.Right:
723
case
DockStyle
.Top:
724
case
DockStyle
.Bottom:
736
case
DockStyle
.Left:
737
case
DockStyle
.Right:
740
case
DockStyle
.Top:
741
case
DockStyle
.Bottom:
808
DockStyle
dock = Dock;
813
case
DockStyle
.Top:
816
case
DockStyle
.Bottom:
819
case
DockStyle
.Left:
822
case
DockStyle
.Right:
846
case
DockStyle
.Top:
849
case
DockStyle
.Bottom:
852
case
DockStyle
.Left:
855
case
DockStyle
.Right:
winforms\Managed\System\WinForms\SplitterPanel.cs (1)
154
public new
DockStyle
Dock {
winforms\Managed\System\WinForms\StatusBar.cs (5)
68
Dock =
DockStyle
.Bottom;
277
DefaultValue(
DockStyle
.Bottom)
279
public override
DockStyle
Dock {
1121
|| Dock !=
DockStyle
.Bottom) {
1131
if (ctl != this && ctl.Dock ==
DockStyle
.Bottom) {
winforms\Managed\System\WinForms\StatusStrip.cs (4)
107
protected override
DockStyle
DefaultDock {
109
return
DockStyle
.Bottom;
115
[DefaultValue(
DockStyle
.Bottom)]
116
public override
DockStyle
Dock {
winforms\Managed\System\WinForms\TabPage.cs (1)
262
public override
DockStyle
Dock {
winforms\Managed\System\WinForms\ToolBar.cs (17)
144
Dock =
DockStyle
.Top;
204
if (Dock ==
DockStyle
.Left || Dock ==
DockStyle
.Right) {
518
DefaultValue(
DockStyle
.Top)
520
public override
DockStyle
Dock {
525
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
DockStyle
.None, (int)
DockStyle
.Fill)){
526
throw new InvalidEnumArgumentException("value", (int)value, typeof(
DockStyle
));
530
if (value ==
DockStyle
.Left || value ==
DockStyle
.Right) {
1020
private void AdjustSize(
DockStyle
dock) {
1023
if (dock ==
DockStyle
.Left || dock ==
DockStyle
.Right) {
1456
if (Dock ==
DockStyle
.Left || Dock ==
DockStyle
.Right) {
1460
if (width != originalWidth && Dock ==
DockStyle
.Right) {
1470
if (height != originalHeight && Dock ==
DockStyle
.Bottom) {
winforms\Managed\System\WinForms\ToolStrip.cs (15)
671
protected virtual
DockStyle
DefaultDock {
673
return
DockStyle
.Top;
704
DockStyle
actualDock = (ParentInternal != null) ? ParentInternal.Dock :
DockStyle
.Left;
705
direction = (actualDock ==
DockStyle
.Right) ? ToolStripDropDownDirection.Left : ToolStripDropDownDirection.Right;
706
if (DesignMode && actualDock ==
DockStyle
.Left)
713
direction = ((Dock ==
DockStyle
.Right) && (RightToLeft == RightToLeft.No)) ? ToolStripDropDownDirection.Left : ToolStripDropDownDirection.Right;
714
if (DesignMode && Dock ==
DockStyle
.Left)
721
DockStyle
dock = this.Dock;
726
if (dock ==
DockStyle
.Bottom) {
760
[DefaultValue(
DockStyle
.Top)]
761
public override
DockStyle
Dock {
4641
private void UpdateLayoutStyle(
DockStyle
newDock) {
4647
if (newDock ==
DockStyle
.Left || newDock ==
DockStyle
.Right) {
winforms\Managed\System\WinForms\ToolStripContainer.cs (9)
46
contentPanel.Dock =
DockStyle
.Fill;
47
topPanel.Dock =
DockStyle
.Top;
48
bottomPanel.Dock =
DockStyle
.Bottom;
49
rightPanel.Dock =
DockStyle
.Right;
50
leftPanel.Dock =
DockStyle
.Left;
408
RightToolStripPanel.Dock =
DockStyle
.Left;
409
LeftToolStripPanel.Dock =
DockStyle
.Right;
412
RightToolStripPanel.Dock =
DockStyle
.Right;
413
LeftToolStripPanel.Dock =
DockStyle
.Left;
winforms\Managed\System\WinForms\ToolStripContentPanel.cs (1)
162
public override
DockStyle
Dock {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (4)
376
protected override
DockStyle
DefaultDock {
378
return
DockStyle
.None;
397
DefaultValue(
DockStyle
.None),
400
public override
DockStyle
Dock {
winforms\Managed\System\WinForms\ToolStripItem.cs (4)
673
public
DockStyle
Dock {
681
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
DockStyle
.None, (int)
DockStyle
.Fill)){
682
throw new InvalidEnumArgumentException("value", (int)value, typeof(
DockStyle
));
winforms\Managed\System\WinForms\ToolStripPanel.cs (4)
189
public override
DockStyle
Dock {
196
if (value ==
DockStyle
.Left || value ==
DockStyle
.Right) {
657
return (owner == null && (Dock !=
DockStyle
.None));
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (3)
398
DockStyle
dock = toolStrip.Dock;
399
if (toolStrip.AutoSize && (!toolStrip.IsInToolStripPanel && (dock ==
DockStyle
.Left) || (dock ==
DockStyle
.Right))) {
System.Workflow.ComponentModel (37)
AuthoringOM\Design\DesignerWidgets.cs (29)
1448
public TabControl(
DockStyle
dockStyle, AnchorAlignment stripAnchor)
1450
if (dockStyle ==
DockStyle
.Fill || dockStyle ==
DockStyle
.None)
1459
if (Dock ==
DockStyle
.Left || Dock ==
DockStyle
.Right)
1469
this.tabStrip.Dock =
DockStyle
.Top;
1470
this.splitter.Dock =
DockStyle
.Top;
1471
this.scrollBar.Dock =
DockStyle
.Fill;
1475
this.tabStrip.Dock =
DockStyle
.Bottom;
1476
this.splitter.Dock =
DockStyle
.Bottom;
1477
this.scrollBar.Dock =
DockStyle
.Fill;
1491
this.tabStrip.Dock =
DockStyle
.Left;
1492
this.splitter.Dock =
DockStyle
.Left;
1493
this.scrollBar.Dock =
DockStyle
.Fill;
1498
this.tabStrip.Dock =
DockStyle
.Right;
1499
this.splitter.Dock =
DockStyle
.Right;
1500
this.scrollBar.Dock =
DockStyle
.Fill;
1551
if (this.splitter.Dock ==
DockStyle
.Left || this.splitter.Dock ==
DockStyle
.Right)
1584
if (this.splitter.Dock ==
DockStyle
.Left || this.splitter.Dock ==
DockStyle
.Right)
1608
this.splitter.SplitPosition = ((this.splitter.Dock ==
DockStyle
.Left || this.splitter.Dock ==
DockStyle
.Right) ? Width : Height) - this.splitter.MinExtra;
1617
if (this.splitter.Dock ==
DockStyle
.Left || this.splitter.Dock ==
DockStyle
.Right)
1641
if (this.splitter.Dock ==
DockStyle
.Left || this.splitter.Dock ==
DockStyle
.Right)
1646
else if (this.splitter.Dock ==
DockStyle
.Top || this.splitter.Dock ==
DockStyle
.Bottom)
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
168
this.workflowOutline.Dock =
DockStyle
.Fill;
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (4)
386
this.designerTreeView.Dock =
DockStyle
.Left;
388
this.splitter.Dock =
DockStyle
.Left;
389
this.propertiesGrid.Dock =
DockStyle
.Fill;
945
workflowView.Dock =
DockStyle
.Fill;
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
792
this.artifactListView.Dock =
DockStyle
.Fill;
AuthoringOM\Design\DocumentOutline.cs (1)
66
this.treeView.Dock =
DockStyle
.Fill;
AuthoringOM\Design\WorkflowView.cs (1)
642
this.toolContainer = new TabControl(
DockStyle
.Right, AnchorAlignment.Far);
System.WorkflowServices (5)
System\Workflow\Activities\Design\EditableLabelControl.cs (2)
25
label.Dock =
DockStyle
.Fill;
87
TextBox.Dock =
DockStyle
.Fill;
System\Workflow\Activities\Design\OperationPickerDialog.cs (2)
342
operationsListBox.SelectedItemViewControl.Dock =
DockStyle
.Fill;
507
label.Dock =
DockStyle
.Fill;
System\Workflow\Activities\Design\OperationPickerDialog.designer.cs (1)
122
this.operationsListBox.Dock = System.Windows.Forms.
DockStyle
.Fill;