263 writes to Width
System.Drawing (1)
commonui\System\Drawing\BufferedGraphicsContext.cs (1)
56
maximumBuffer.
Width
= 75 * 3;
System.Web.DataVisualization (22)
Common\General\Legend.cs (18)
450
this.singleWCharacterSize.
Width
= doubleCharacterSize.Width - this.singleWCharacterSize.Width;
453
this._offset.
Width
= (int)Math.Ceiling(singleWCharacterSize.Width / 2f);
714
itemHalfSpacing.
Width
= (int)(_horizontalSpaceLeft / 2);
917
this.singleWCharacterSize.
Width
= doubleCharacterSize.Width - this.singleWCharacterSize.Width;
920
this._offset.
Width
= (int)Math.Ceiling(singleWCharacterSize.Width / 2f);
960
legenItemsMaxSize.
Width
-= 2 * (this._offset.Width + this.GetBorderSize());
1034
optimalSize.
Width
= (legenItemsMaxSize.Width - horizSpaceLeft);
1035
optimalSize.
Width
= Math.Max(optimalSize.Width, titleSize.Width);
1036
optimalSize.
Width
+= 2 * (this._offset.Width + this.GetBorderSize());
1053
optimalSize.
Width
= maxSize.Width;
1061
optimalSize.
Width
= 0;
1742
this.singleWCharacterSize.
Width
= doubleCharacterSize.Width - this.singleWCharacterSize.Width;
1796
cellSize.
Width
= (int)Math.Max(cellSize.Width, legendColumn.MinimumWidth * singleWCharacterSize.Width / 100f);
1800
cellSize.
Width
= (int)Math.Min(cellSize.Width, legendColumn.MaximumWidth * singleWCharacterSize.Width / 100f);
3977
titleMaxSize.
Width
-= this.GetBorderSize() * 2 + this._offset.Width;
3988
titleSize.
Width
+= this._offset.Width;
4015
headerSize.
Width
+= this._offset.Width;
4414
size.
Width
+= this._itemColumnSpacingRel;
Common\General\LegendColumns.cs (4)
1500
cellSize.
Width
= (int)(Math.Abs(this.SeriesSymbolSize.Width) * singleWCharacterSize.Width / 100f);
1512
cellSize.
Width
= (int)imageSize.Width;
1518
cellSize.
Width
= (int)(Math.Abs(this.ImageSize.Width) * singleWCharacterSize.Width / 100f);
1538
cellSize.
Width
+= (int)((this.Margins.Left + this.Margins.Right) * singleWCharacterSize.Width / 100f);
System.Windows.Forms (119)
misc\GDI\WindowsGraphics2.cs (1)
479
proposedSize.
Width
= minWidth;
winforms\Managed\System\WinForms\Button.cs (1)
134
requiredSize.
Width
+= 14;
winforms\Managed\System\WinForms\ButtonBase.cs (1)
952
proposedSize.
Width
= 0;
winforms\Managed\System\WinForms\CheckBox.cs (1)
380
size.
Width
+= flatSystemStylePaddingWidth;
winforms\Managed\System\WinForms\Control.cs (1)
11624
size.
Width
= (int)Math.Round((float)size.Width * x);
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (1)
335
extents.
Width
+= xMargin*2 + this.DataGridTableStyle.GridLineWidth;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (2)
423
preferredSize.
Width
+= borderAndPaddingWidths + marginWidths + 2 * DATAGRIDVIEWBUTTONCELL_horizontalTextMargin;
427
preferredSize.
Width
= Math.Max(preferredSize.Width, borderAndPaddingWidths + DATAGRIDVIEWCELL_iconMarginWidth * 2 + iconsWidth);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (8)
775
checkBoxSize.
Width
-= 3;
779
checkBoxSize.
Width
-= 2;
845
preferredSize.
Width
+= borderWidths.X;
853
preferredSize.
Width
= Math.Max(preferredSize.Width,
1270
checkBoxSize.
Width
-= 3;
1274
checkBoxSize.
Width
-= 2;
1285
checkBoxSize.
Width
-= 3;
1290
checkBoxSize.
Width
-= 2;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (9)
576
preferredSize.
Width
+= sortGlyphWidth +
580
preferredSize.
Width
+= sortGlyphSeparatorWidth;
583
preferredSize.
Width
= Math.Max(preferredSize.Width, 1);
672
preferredSize.
Width
+= sortGlyphWidth +
676
preferredSize.
Width
+= sortGlyphSeparatorWidth;
680
preferredSize.
Width
= Math.Max(preferredSize.Width, 1);
690
preferredSize.
Width
+= DATAGRIDVIEWCOLUMNHEADERCELL_horizontalTextMarginLeft + DATAGRIDVIEWCOLUMNHEADERCELL_horizontalTextMarginRight;
692
preferredSize.
Width
+= borderAndPaddingWidths;
703
preferredSize.
Width
+= rectThemeMargins.X + rectThemeMargins.Width;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (3)
1457
preferredSize.
Width
= 0;
1466
preferredSize.
Width
+= SystemInformation.HorizontalScrollBarThumbWidth + 1 + 2 * DATAGRIDVIEWCOMBOBOXCELL_margin + borderAndPaddingWidths;
1470
preferredSize.
Width
= Math.Max(preferredSize.Width, borderAndPaddingWidths + SystemInformation.HorizontalScrollBarThumbWidth + 1 + DATAGRIDVIEWCELL_iconMarginWidth * 2 + iconsWidth);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (3)
573
preferredSize.
Width
= 0;
583
preferredSize.
Width
+= borderAndPaddingWidths;
587
preferredSize.
Width
= Math.Max(preferredSize.Width, borderAndPaddingWidths + DATAGRIDVIEWCELL_iconMarginWidth * 2 + iconsWidth);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (2)
739
preferredSize.
Width
+= DATAGRIDVIEWLINKCELL_horizontalTextMarginLeft + DATAGRIDVIEWLINKCELL_horizontalTextMarginRight + borderAndPaddingWidths;
743
preferredSize.
Width
= Math.Max(preferredSize.Width, borderAndPaddingWidths + DATAGRIDVIEWCELL_iconMarginWidth * 2 + iconsWidth);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (2)
509
preferredSize.
Width
+= DATAGRIDVIEWTEXTBOXCELL_horizontalTextMarginLeft + DATAGRIDVIEWTEXTBOXCELL_horizontalTextMarginRight + borderAndPaddingWidths;
513
preferredSize.
Width
= Math.Max(preferredSize.Width, borderAndPaddingWidths + DATAGRIDVIEWCELL_iconMarginWidth * 2 + iconsWidth);
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (5)
278
preferredSize.
Width
+= 2 * DATAGRIDVIEWROWHEADERCELL_contentMarginWidth +
289
preferredSize.
Width
+= DATAGRIDVIEWROWHEADERCELL_iconsWidth + 2 * DATAGRIDVIEWROWHEADERCELL_iconMarginWidth;
293
preferredSize.
Width
+= DATAGRIDVIEWROWHEADERCELL_iconsWidth + 2 * DATAGRIDVIEWROWHEADERCELL_iconMarginWidth;
300
preferredSize.
Width
+= borderAndPaddingWidths;
334
sizeConstraint.
Width
= sizeCell.Width;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
395
maxSize.
Width
= pageSize.Width;
winforms\Managed\System\WinForms\Form.cs (2)
3427
correctClientSize.
Width
+= SystemInformation.VerticalScrollBarWidth;
3449
correct.
Width
+= SystemInformation.VerticalScrollBarWidth;
winforms\Managed\System\WinForms\Label.cs (3)
1247
bordersAndPadding.
Width
+= 2; // taken from Everett.PreferredWidth
1269
proposedSize.
Width
= 0;
1301
requiredSize.
Width
= 0;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (8)
42
proposedConstraints.
Width
= bounds.Width;
355
neededSize.
Width
= 0;
393
newSize.
Width
= remainingSize.Width;
395
newSize.
Width
= Math.Max(newSize.Width, remainingSize.Width);
523
preferredSizeForAnchoring.
Width
-= containerPadding.Left;
836
prefSize.
Width
= Math.Max(prefSize.Width, elementSpace.Right);
851
prefSize.
Width
= Math.Max(prefSize.Width, elementSpace.Right + anchorDest.Width);
854
prefSize.
Width
= Math.Max(prefSize.Width, anchorDest.Right);
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (3)
135
layoutSize.
Width
= Math.Max(layoutSize.Width, rowSize.Width);
190
elementConstraints.
Width
= rowBounds.Width - rowSize.Width - elementProxy.Margin.Size.Width;
250
rowSize.
Width
= location.X - rowBounds.X;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (7)
58
largestSize.
Width
= Math.Max(largestSize.Width, textSize.Width);
131
if(size.Width == 0) size.
Width
= Int32.MaxValue;
315
stretchedSize.
Width
= withinThis.Width;
345
currentSize.
Width
= Math.Max(currentSize.Width, contentSize.Width);
348
currentSize.
Width
+= contentSize.Width;
396
size.
Width
= size.Height;
506
currentSize.
Width
-= contentSize.Width;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (4)
196
containerSize.
Width
= Math.Max(containerSize.Width, 1);
255
containerSize.
Width
= Math.Max(containerSize.Width, 1);
268
proposedConstraints.
Width
= Math.Max(proposedConstraints.Width, 1);
664
preferredSize.
Width
= InflateColumns(containerInfo, proposedConstraints, measureOnly);
winforms\Managed\System\WinForms\MonthCalendar.cs (5)
1496
this.dimensions.
Width
= (nCols < 1) ? 1 : nCols;
1499
minSize.
Width
= (minSize.Width + INSERT_WIDTH_SIZE) * dimensions.Width - INSERT_WIDTH_SIZE;
1507
minSize.
Width
= maxTodayWidth;
1513
minSize.
Width
+= scaledExtraPadding;
2059
this.dimensions.
Width
= x;
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (1)
144
size.
Width
= Math.Max(0, size.Width - 2 * cBorder);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (5)
1636
size.
Width
= Math.Max(rect.Width + 1, size.Width);
1715
size.
Width
= Math.Max(rect.Width + 1, size.Width);
2120
size.
Width
= sizeWindow.Width;
2126
size.
Width
-= sizeScroll.Width;
2128
size.
Width
-= 2;
winforms\Managed\System\WinForms\RadioButton.cs (1)
323
size.
Width
+= flatSystemStylePaddingWidth;
winforms\Managed\System\WinForms\RichTextBox.cs (1)
566
scrollBarPadding.
Width
+= SystemInformation.VerticalScrollBarWidth;
winforms\Managed\System\WinForms\ScrollableControl.cs (2)
455
scrollMargin.
Width
+= Padding.Right;
477
scrollMargin.
Width
+= current.Size.Width;
winforms\Managed\System\WinForms\StatusBarPanel.cs (1)
558
sz.
Width
+= this.icon.Size.Width + 5;
winforms\Managed\System\WinForms\StatusStrip.cs (1)
309
proposedSize.
Width
= Int32.MaxValue;
winforms\Managed\System\WinForms\TextBox.cs (1)
446
scrollBarPadding.
Width
+= SystemInformation.GetVerticalScrollBarWidthForDpi(deviceDpi);
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
972
bordersAndPadding.
Width
+=2;
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (1)
249
if (textSize.Width < scaledMaxTextWidth) textSize.
Width
= scaledMaxTextWidth;
winforms\Managed\System\WinForms\ToolStrip.cs (6)
2451
proposedSize.
Width
= Int32.MaxValue;
2495
maxSize.
Width
+= itemMargin.Horizontal + prefItemSize.Width;
2515
maxSize.
Width
+= overflowItemMargin.Horizontal + overflowItem.Bounds.Width;
2518
maxSize.
Width
+= 2; //add Padding of 2 Pixels to the right if not Overflow.
2524
maxSize.
Width
+= gripMargin.Horizontal + toolStrip.Grip.GripThickness;
2551
maxSize.
Width
= Math.Max(maxSize.Width, itemMargin.Horizontal + preferredSize.Width);
winforms\Managed\System\WinForms\ToolStripButton.cs (1)
211
prefSize.
Width
= Math.Max(prefSize.Width, standardButtonWidth);
winforms\Managed\System\WinForms\ToolStripComboBox.cs (1)
496
preferredSize.
Width
= Math.Max(preferredSize.Width, 75);
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
260
preferredSize.
Width
+= DropDownArrowRect.Width + scaledDropDownArrowPadding.Horizontal;
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (8)
354
menuItemTextSize.
Width
+= tabWidth + shortcutTextSize.Width;
359
maxTextSize.
Width
= Math.Max(maxTextSize.Width, menuItemTextSize.Width);
368
maxImageSize.
Width
= Math.Max(maxImageSize.Width, imageSize.Width);
373
maxCheckSize.
Width
= Math.Max(checkedImageSize.Width, maxCheckSize.Width);
379
maxNonMenuItemSize.
Width
= Math.Max(item.Bounds.Width, maxNonMenuItemSize.Width);
400
maxTextSize.
Width
= Math.Max(maxTextSize.Width, maxNonMenuItemSize.Width);
482
this.maxItemSize.
Width
= (arrowRectangle.Right + scaledArrowPadding.Right) - imageMarginBounds.Left;
834
preferredSize.
Width
= dropDownMenu.MaxItemSize.Width - dropDownMenu.PaddingToTrim;
winforms\Managed\System\WinForms\ToolStripGrip.cs (1)
118
preferredSize.
Width
= constrainingSize.Width;
winforms\Managed\System\WinForms\ToolStripOverflow.cs (1)
121
constrainingSize.
Width
= 200;
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (1)
110
preferredSize.
Width
= Math.Min(constrainingSize.Width, maxWidth);
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (3)
197
maxSize.
Width
+= growBy;
241
constrainingSize.
Width
= ToolStripPanelRow.Bounds.Width;
243
preferredSize.
Width
= constrainingSize.Width;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (1)
672
preferredSize.
Width
= DisplayRectangle.Width;
winforms\Managed\System\WinForms\ToolStripScrollButton.cs (1)
154
preferredSize.
Width
= (ParentInternal != null) ? ParentInternal.Width - 2 : preferredSize.Width; // Two for border
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
425
constrainingSize.
Width
= WINBAR_SEPARATORHEIGHT;
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
428
preferredSize.
Width
+= DropDownButtonWidth + SplitterWidth + Padding.Horizontal;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (1)
488
itemSize.
Width
= Math.Max(toolStripPreferredSize.Width - itemMargin.Horizontal -1, 0);
winforms\Managed\System\WinForms\WebBrowserBase.cs (3)
115
this.webBrowserBaseChangingSize.
Width
= -1; // Invalid value. Use WebBrowserBase.Bounds instead, when this is the case.
256
this.webBrowserBaseChangingSize.
Width
= width;
261
this.webBrowserBaseChangingSize.
Width
= -1; // Invalid value. Use WebBrowserBase.Bounds instead, when this is the case.
System.Windows.Forms.DataVisualization (22)
Common\General\Legend.cs (18)
450
this.singleWCharacterSize.
Width
= doubleCharacterSize.Width - this.singleWCharacterSize.Width;
453
this._offset.
Width
= (int)Math.Ceiling(singleWCharacterSize.Width / 2f);
714
itemHalfSpacing.
Width
= (int)(_horizontalSpaceLeft / 2);
917
this.singleWCharacterSize.
Width
= doubleCharacterSize.Width - this.singleWCharacterSize.Width;
920
this._offset.
Width
= (int)Math.Ceiling(singleWCharacterSize.Width / 2f);
960
legenItemsMaxSize.
Width
-= 2 * (this._offset.Width + this.GetBorderSize());
1034
optimalSize.
Width
= (legenItemsMaxSize.Width - horizSpaceLeft);
1035
optimalSize.
Width
= Math.Max(optimalSize.Width, titleSize.Width);
1036
optimalSize.
Width
+= 2 * (this._offset.Width + this.GetBorderSize());
1053
optimalSize.
Width
= maxSize.Width;
1061
optimalSize.
Width
= 0;
1742
this.singleWCharacterSize.
Width
= doubleCharacterSize.Width - this.singleWCharacterSize.Width;
1796
cellSize.
Width
= (int)Math.Max(cellSize.Width, legendColumn.MinimumWidth * singleWCharacterSize.Width / 100f);
1800
cellSize.
Width
= (int)Math.Min(cellSize.Width, legendColumn.MaximumWidth * singleWCharacterSize.Width / 100f);
3977
titleMaxSize.
Width
-= this.GetBorderSize() * 2 + this._offset.Width;
3988
titleSize.
Width
+= this._offset.Width;
4015
headerSize.
Width
+= this._offset.Width;
4414
size.
Width
+= this._itemColumnSpacingRel;
Common\General\LegendColumns.cs (4)
1500
cellSize.
Width
= (int)(Math.Abs(this.SeriesSymbolSize.Width) * singleWCharacterSize.Width / 100f);
1512
cellSize.
Width
= (int)imageSize.Width;
1518
cellSize.
Width
= (int)(Math.Abs(this.ImageSize.Width) * singleWCharacterSize.Width / 100f);
1538
cellSize.
Width
+= (int)((this.Margins.Left + this.Margins.Right) * singleWCharacterSize.Width / 100f);
System.Workflow.Activities (18)
Designers\StateDesigner.cs (2)
1504
newSize.
Width
= Math.Max(newSize.Width, bounds.Right);
1508
newSize.
Width
= Math.Max(newSize.Width, this.MinimumSize.Width);
Designers\StateDesigner.Layouts.cs (13)
669
minimumSize.
Width
= Math.Max(minimumSize.Width, layoutWidth);
678
size.
Width
= Math.Max(containerSize.Width, minimumSize.Height);
773
size.
Width
+= layout.Size.Width + _breadCrumbSeparatorSize.Width;
969
minimumSize.
Width
= designerTheme.BorderWidth * 2 + 10 + _textLayout.Size.Width + _imageLayout.Size.Width;
975
size.
Width
= Math.Max(minimumSize.Width, containerSize.Width);
1103
minimumSize.
Width
= Math.Max(minimumSize.Width, RealMinimumSize.Width);
1136
size.
Width
= Math.Max(minWidth, size.Width);
1320
size.
Width
= Math.Max(size.Width, minSize.Width);
1331
size.
Width
= Math.Max(size.Width, activeDesignerSize.Width + ActiveDesignerPadding * 2);
1332
size.
Width
= Math.Max(size.Width, _titleBarLayout.Size.Width);
1333
size.
Width
= Math.Max(size.Width, _breadCrumbBarLayout.Size.Width);
1347
size.
Width
= Math.Max(size.Width, activeDesigner.Size.Width + ActiveDesignerPadding * 2);
1348
size.
Width
= Math.Max(size.Width, _designerLayout.Size.Width);
Designers\StateMachineWorkflowDesigner.cs (2)
81
minimumSize.
Width
= Math.Max(minimumSize.Width, MinSize.Width);
85
minimumSize.
Width
= Math.Max(minimumSize.Width, ParentView.ViewPortSize.Width - StateDesigner.Separator.Width * 2);
Designers\WhileDesigner.cs (1)
87
containerSize.
Width
+= 2 * compositeDesignerTheme.ConnectorSize.Width;
System.Workflow.ComponentModel (81)
AuthoringOM\Design\ActivityDesigner.cs (9)
237
value.
Width
= Math.Max(value.Width, MinimumSize.Width);
1713
requestedLineSize.
Width
/= Text.Length;
1714
requestedLineSize.
Width
+= ((requestedLineSize.Width % Text.Length) > 0) ? 1 : 0;
1715
requestedLineSize.
Width
*= Math.Min(Text.Length, ActivityDesigner.MaximumCharsPerLine - 1);
1717
this.textSize.
Width
= MinimumSize.Width - 2 * e.AmbientTheme.Margin.Width;
1719
this.textSize.
Width
-= e.DesignerTheme.ImageSize.Width + e.AmbientTheme.Margin.Width;
1720
this.textSize.
Width
= Math.Min(this.textSize.Width, actualTextSize.Width);
1721
this.textSize.
Width
= Math.Max(this.textSize.Width, requestedLineSize.Width);
1736
size.
Width
= 2 * e.AmbientTheme.Margin.Width + ((Image != null) ? (e.DesignerTheme.ImageSize.Width + e.AmbientTheme.Margin.Width) : 0) + this.textSize.Width;
AuthoringOM\Design\ActivityPreviewDesigner.cs (8)
613
containerSize.
Width
= Math.Max(containerSize.Width, this.previewStrip.Size.Width);
622
containerSize.
Width
= Math.Max(containerSize.Width, this.previewWindow.Size.Width);
623
containerSize.
Width
+= 2 * e.AmbientTheme.Margin.Width;
631
containerSize.
Width
= Math.Max(containerSize.Width, size.Width);
632
containerSize.
Width
+= 3 * e.AmbientTheme.Margin.Width;
633
containerSize.
Width
+= 2 * e.AmbientTheme.SelectionSize.Width;
637
containerSize.
Width
= Math.Max(containerSize.Width, MinimumSize.Width);
988
configErrorSize.
Width
= configErrorSize.Width * 3 / 4;
AuthoringOM\Design\CompositeActivityDesigner.cs (5)
339
requestedLineSize.
Width
/= Text.Length;
340
requestedLineSize.
Width
+= ((requestedLineSize.Width % Text.Length) > 0) ? 1 : 0;
341
requestedLineSize.
Width
*= Math.Min(Text.Length, CompositeActivityDesigner.MaximumCharsPerLine - 1);
344
textSize.
Width
= Math.Min(maxAvailableWidth, this.actualTextSize.Width);
345
textSize.
Width
= Math.Max(1, Math.Max(textSize.Width, requestedLineSize.Width));
AuthoringOM\Design\Connector.cs (1)
186
defaultSize.
Width
+= defaultSize.Width / 2;
AuthoringOM\Design\DesignerHelpers.cs (3)
442
offset.
Width
+= (shadowDepth + 1);
444
offset.
Width
-= (shadowDepth + 1);
1189
snapSize.
Width
/= 2; snapSize.Height /= 2;
AuthoringOM\Design\DesignerWidgets.cs (9)
754
reqdSize.
Width
= (this.items.Count * this.itemSize.Width) + ((this.items.Count + 1) * this.margin.Width);
759
reqdSize.
Width
= this.itemSize.Width + 2 * this.margin.Width;
1313
fittingOffset.
Width
+= this.workingRectangle.Left - bounds.Left;
1315
fittingOffset.
Width
-= bounds.Right - this.workingRectangle.Right;
1342
maxTextSize.
Width
= Math.Max(Convert.ToInt32(Math.Ceiling(size.Width)), maxTextSize.Width);
1346
maxTextSize.
Width
= Math.Min(maxTextSize.Width, this.maximumTextWidth);
2847
scrollButtonSize.
Width
= Math.Min(scrollButtonSize.Width, scrollButtonSize.Height);
3387
this.previewDescTextSize.
Width
= Math.Min(this.canvasBounds.Size.Width - margin.Width - this.previewModeButtonRectangle.Size.Width, this.previewDescTextSize.Width);
3394
totalSize.
Width
= this.canvasBounds.Width + 2 * margin.Width;
AuthoringOM\Design\FreeFormDesigner.cs (6)
176
margin.
Width
+= gridSize.Width / 2;
245
minimumSize.
Width
*= 4;
253
minimumSize.
Width
= Math.Max(minimumSize.Width, workflowView.ViewPortSize.Width - 2 * WorkflowRootLayout.Separator.Width);
262
minimumSize.
Width
= Math.Max(minimumSize.Width, childRectangle.Width);
823
size.
Width
+= Math.Max(bounds.Left - childRectangle.Left, 0);
824
size.
Width
+= Math.Max(childRectangle.Right - bounds.Right, 0);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (1)
143
indicatorSize.
Width
+= 2 * ambientTheme.Margin.Width;
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
570
size.
Width
= (2 * borderSize.Width) + (buttonCount * this.buttonSize.Width) + ((buttonCount + 1) * this.margin.Width);
AuthoringOM\Design\ParallelActivityDesigner.cs (6)
252
containerSize.
Width
+= e.AmbientTheme.SelectionSize.Width;
253
containerSize.
Width
+= compositeDesignerTheme.ConnectorSize.Width;
254
containerSize.
Width
+= childSize.Width;
255
containerSize.
Width
+= e.AmbientTheme.SelectionSize.Width;
258
containerSize.
Width
+= (ContainedDesigners.Count > 0) ? compositeDesignerTheme.ConnectorSize.Width : 0;
268
size.
Width
= Math.Max(size.Width, containerSize.Width);
AuthoringOM\Design\SequentialActivityDesigner.cs (5)
485
containerSize.
Width
= Math.Max(containerSize.Width, childSize.Width);
493
containerSize.
Width
= Math.Max(helpTextRectangle.Width, containerSize.Width);
498
containerSize.
Width
= Math.Max(containerSize.Width, compositeDesignerTheme.Size.Width);
499
containerSize.
Width
+= 3 * e.AmbientTheme.Margin.Width;
500
containerSize.
Width
+= 2 * e.AmbientTheme.SelectionSize.Width;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (2)
94
minimumSize.
Width
= Math.Max(minimumSize.Width, SequentialWorkflowRootDesigner.MinSize.Width);
98
minimumSize.
Width
= Math.Max(minimumSize.Width, ParentView.ViewPortSize.Width - 2 * WorkflowRootLayout.Separator.Width);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (4)
167
minimumSize.
Width
= Math.Max(minimumSize.Width, 160);
564
containerSize.
Width
= Math.Max(containerSize.Width, activeDesigner.Size.Width);
567
containerSize.
Width
+= 2 * e.AmbientTheme.SelectionSize.Width;
568
containerSize.
Width
+= 3 * e.AmbientTheme.Margin.Width;
AuthoringOM\Design\WorkflowLayouts.cs (14)
220
clientSize.
Width
= (int)(clientSize.Width / ((float)this.parentView.Zoom / 100.0f));
321
totalSize.
Width
= Math.Max(totalSize.Width, layoutExtent.Width);
372
maxSize.
Width
= (this.rowColumns.Width * this.pageSize.Width) + ((this.rowColumns.Width + 1) * (PageSeparator.Width));
425
deltaSize.
Width
-= deltaLocation.X;
460
deltaSize.
Width
-= deltaLocation.X;
729
rootDesignerSize.
Width
+= 3 * selectionSize.Width;
741
printableArea.
Width
= Math.Max(printableArea.Width, 1);
756
this.pageSize.
Width
= Convert.ToInt32(Math.Ceiling(((float)this.pageSize.Width) / this.scaling));
782
viewablePageSize.
Width
= Math.Max(viewablePageSize.Width, 1);
787
this.rowColumns.
Width
= rootDesignerSize.Width / viewablePageSize.Width;
788
this.rowColumns.
Width
+= ((rootDesignerSize.Width % viewablePageSize.Width) > 1) ? 1 : 0;
789
this.rowColumns.
Width
= Math.Max(1, this.rowColumns.Width);
829
size.
Width
= Math.Max(paperSize.Height, 1);
834
size.
Width
= Math.Max(paperSize.Width, 1);
AuthoringOM\Design\WorkflowPrinting.cs (3)
154
viewPortSize.
Width
= Convert.ToInt32(Math.Ceiling((float)printableArea.Width / this.scaling));
317
rootDesignerSize.
Width
+= 3 * selectionSize.Width;
327
printableArea.
Width
= Math.Max(printableArea.Width, 1);
AuthoringOM\Design\WorkflowView.cs (4)
449
viewPortSize.
Width
= Math.Max(0, viewPortSize.Width - VScrollBar.Width);
1745
scrollDelta.
Width
= (rect.Left + rect.Width / 2) - (clientRectangle.Left + clientRectangle.Width / 2);
1747
scrollDelta.
Width
= (rect.Left - clientRectangle.Left);
1749
scrollDelta.
Width
= (rect.Right - clientRectangle.Right);
1427 references to Width
System.Drawing (57)
commonui\System\Drawing\Advanced\PointF.cs (2)
169
return new PointF(pt.X + sz.
Width
, pt.Y + sz.Height);
178
return new PointF(pt.X - sz.
Width
, pt.Y - sz.Height);
commonui\System\Drawing\Bitmap.cs (4)
462
this(original, (object) newSize != null ? newSize.
Width
: 0, (object) newSize != null ? newSize.Height : 0) {
584
result = new Bitmap(size.
Width
, size.Height, PixelFormat.Format32bppArgb);
588
Rectangle rectangle = new Rectangle(0,0, size.
Width
, size.Height);
595
0,0, size.
Width
, size.Height,
commonui\System\Drawing\BufferedGraphics.cs (1)
161
SafeNativeMethods.BitBlt(refTargetDC, targetLoc.X, targetLoc.Y, virtualSize.
Width
, virtualSize.Height,
commonui\System\Drawing\BufferedGraphicsContext.cs (6)
94
if (value.
Width
<= 0 || value.Height <= 0) {
101
if (value.
Width
* value.Height < maximumBuffer.
Width
* maximumBuffer.Height) {
383
if (width > bufferSize.
Width
|| height > bufferSize.Height)
386
int optWidth = Math.Max(width, bufferSize.
Width
);
674
return (targetBounds.Width * targetBounds.Height) > (MaximumBuffer.
Width
* MaximumBuffer.Height);
commonui\System\Drawing\Graphics.cs (1)
917
int destWidth = blockRegionSize.
Width
;
commonui\System\Drawing\Icon.cs (19)
92
public Icon(string fileName, Size size) : this(fileName, size.
Width
, size.Height) {
121
public Icon(Icon original, Size size) : this(original, size.
Width
, size.Height) {
144
handle = SafeNativeMethods.CopyImage(new HandleRef(original, original.Handle), SafeNativeMethods.IMAGE_ICON, iconSize.
Width
, iconSize.Height, 0);
178
public Icon(Stream stream, Size size) : this(stream, size.
Width
, size.Height) {
215
Initialize(iconSize.
Width
, iconSize.Height);
355
get { return Size.
Width
;}
365
return new Icon(this, Size.
Width
, Size.Height);
438
imageWidth = cursorSize.
Width
;
449
targetWidth = cursorSize.
Width
;
457
drawWidth = cursorSize.
Width
* targetWidth / imageWidth;
463
drawWidth = cursorSize.
Width
;
493
Draw(graphics, new Rectangle(x, y, size.
Width
, size.Height));
966
bitmap = new Bitmap(Size.
Width
, Size.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
971
System.Drawing.Imaging.BitmapData bmpdata = bitmap.LockBits(new Rectangle(0, 0, Size.
Width
, Size.Height),
982
int lineLength = Size.
Width
* 4;
983
int width = Size.
Width
;
1065
bitmap = new Bitmap(size.
Width
, size.Height); // initialized to transparent
1074
graphics.DrawImage(tmpBitmap, new Rectangle(0, 0, size.
Width
, size.Height));
1081
Draw(graphics, new Rectangle(0, 0, size.
Width
, size.Height));
commonui\System\Drawing\Point.cs (3)
61
this.x = sz.
Width
;
191
return new Point(pt.X + sz.
Width
, pt.Y + sz.Height);
200
return new Point(pt.X - sz.
Width
, pt.Y - sz.Height);
commonui\System\Drawing\Printing\PreviewPrintController.cs (1)
122
Metafile metafile = new Metafile(dc.Hdc, new Rectangle(0,0, metafileSize.
Width
, metafileSize.Height), MetafileFrameUnit.GdiCompatible, EmfType.EmfPlusOnly);
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (1)
70
Convert(value.
Width
, fromUnit, toUnit),
commonui\System\Drawing\Rectangle.cs (3)
73
this.width = size.
Width
;
118
this.Width = value.
Width
;
405
Inflate(size.
Width
, size.Height);
commonui\System\Drawing\Size.cs (8)
78
return new SizeF(p.
Width
, p.Height);
108
return sz1.
Width
== sz2.
Width
&& sz1.Height == sz2.Height;
127
return new Point(size.
Width
, size.Height);
184
return new Size(sz1.
Width
+ sz2.
Width
, sz1.Height + sz2.Height);
202
return new Size(sz1.
Width
- sz2.
Width
, sz1.Height - sz2.Height);
commonui\System\Drawing\SizeConverter.cs (2)
127
args[nArg++] = intConverter.ConvertToString(context, culture, size.
Width
);
137
return new InstanceDescriptor(ctor, new object[] {size.
Width
, size.Height});
commonui\System\Drawing\ToolboxBitmapAttribute.cs (2)
219
img = new Bitmap((Bitmap)smallImage, largeSize.
Width
, largeSize.Height);
369
img = new Bitmap(b, largeSize.
Width
, largeSize.Height);
misc\DpiHelper.cs (4)
457
deviceImage = new Bitmap(deviceImageSize.
Width
, deviceImageSize.Height, logicalImage.PixelFormat);
463
RectangleF sourceRect = new RectangleF(0, 0, logicalImage.Size.
Width
, logicalImage.Size.Height);
464
RectangleF destRect = new RectangleF(0, 0, deviceImageSize.
Width
, deviceImageSize.Height);
558
return new Size(LogicalToDeviceUnits(logicalSize.
Width
, deviceDpi),
System.Web.DataVisualization (64)
Common\General\Legend.cs (47)
450
this.singleWCharacterSize.Width = doubleCharacterSize.
Width
- this.singleWCharacterSize.
Width
;
453
this._offset.Width = (int)Math.Ceiling(singleWCharacterSize.
Width
/ 2f);
454
this._offset.Height = (int)Math.Ceiling(singleWCharacterSize.
Width
/ 3f);
457
this._itemColumnSpacingRel = (int)(singleWCharacterSize.
Width
* (this._itemColumnSpacing / 100f));
511
legendPosition.Location.X + this.GetBorderSize() + this._offset.
Width
,
513
legendPosition.Width - (this.GetBorderSize() + this._offset.
Width
) * 2,
529
legendPosition.X + this._offset.
Width
+ this.GetBorderSize(),
531
legendPosition.Width - 2 * (this._offset.
Width
+ this.GetBorderSize()),
827
cellPosition.X += itemHalfSpacing.
Width
;
843
cellPosition.X += this.GetSeparatorSize(this.ItemColumnSeparator).
Width
;
917
this.singleWCharacterSize.Width = doubleCharacterSize.
Width
- this.singleWCharacterSize.
Width
;
920
this._offset.Width = (int)Math.Ceiling(singleWCharacterSize.
Width
/ 2f);
921
this._offset.Height = (int)Math.Ceiling(singleWCharacterSize.
Width
/ 3f);
922
this._itemColumnSpacingRel = (int)(singleWCharacterSize.
Width
* (this._itemColumnSpacing / 100f));
960
legenItemsMaxSize.Width -= 2 * (this._offset.
Width
+ this.GetBorderSize());
1034
optimalSize.Width = (legenItemsMaxSize.
Width
- horizSpaceLeft);
1035
optimalSize.Width = Math.Max(optimalSize.
Width
, titleSize.
Width
);
1036
optimalSize.Width += 2 * (this._offset.
Width
+ this.GetBorderSize());
1051
if(optimalSize.
Width
> maxSize.
Width
)
1053
optimalSize.Width = maxSize.
Width
;
1059
if(optimalSize.
Width
< 0)
1332
averageColumnWidth = (int)Math.Round((double)(legendSize.
Width
- horSpaceLeft) / columnNumber) / 2;
1742
this.singleWCharacterSize.Width = doubleCharacterSize.
Width
- this.singleWCharacterSize.
Width
;
1796
cellSize.Width = (int)Math.Max(cellSize.
Width
, legendColumn.MinimumWidth * singleWCharacterSize.
Width
/ 100f);
1800
cellSize.Width = (int)Math.Min(cellSize.
Width
, legendColumn.MaximumWidth * singleWCharacterSize.
Width
/ 100f);
1805
cellWidths[currentColumn, currentRow, cellIndex] = cellSize.
Width
;
1893
if(headerTextSize.
Width
> subColumnSizes[currentColumn, currentSubColumn])
1896
subColumnSizes[currentColumn, currentSubColumn] = headerTextSize.
Width
;
1902
(int)Math.Max(subColumnSizes[currentColumn, currentSubColumn], legendColumn.MinimumWidth * singleWCharacterSize.
Width
/ 100f);
1907
(int)Math.Min(subColumnSizes[currentColumn, currentSubColumn], legendColumn.MaximumWidth * singleWCharacterSize.
Width
/ 100f);
2006
totalTableColumnSpacingWidth += this.GetSeparatorSize(this.ItemColumnSeparator).
Width
;
2025
horizontalSpaceLeft = legendItemsAreaSize.
Width
- totalWidth - totalTableColumnSpacingWidth;
2495
separatorRect.X += this.GetBorderSize() + this._offset.
Width
;
2496
separatorRect.Width = this.GetSeparatorSize(this.ItemColumnSeparator).
Width
;
3977
titleMaxSize.Width -= this.GetBorderSize() * 2 + this._offset.
Width
;
3988
titleSize.Width += this._offset.
Width
;
4015
headerSize.Width += this._offset.
Width
;
4226
prevRightLocation += this.GetSeparatorSize(this.ItemColumnSeparator).
Width
;
4317
rect.X += this._offset.
Width
;
4319
rect.Width -= this.GetBorderSize() * 2 + this._offset.
Width
;
Common\General\LegendColumns.cs (16)
403
if(value.
Width
< 0 || value.Height < 0)
1194
if(value.
Width
< 0 || value.Height < 0)
1220
if(value.
Width
< 0 || value.Height < 0)
1447
this.cellPosition.X += (int)(this.Margins.Left * singleWCharacterSize.
Width
/ 100f);
1449
this.cellPosition.Width -= (int)(this.Margins.Left * singleWCharacterSize.
Width
/ 100f)
1450
+ (int)(this.Margins.Right * singleWCharacterSize.
Width
/ 100f);
1500
cellSize.Width = (int)(Math.Abs(this.SeriesSymbolSize.
Width
) * singleWCharacterSize.
Width
/ 100f);
1518
cellSize.Width = (int)(Math.Abs(this.ImageSize.
Width
) * singleWCharacterSize.
Width
/ 100f);
1538
cellSize.Width += (int)((this.Margins.Left + this.Margins.Right) * singleWCharacterSize.
Width
/ 100f);
2109
if(this.ImageSize.
Width
> 0)
2111
int newWidth = (int)(this.ImageSize.
Width
* singleWCharacterSize.
Width
/ 100f);
2224
if(this.SeriesSymbolSize.
Width
>= 0)
2226
int newWidth = (int)(this.SeriesSymbolSize.
Width
* singleWCharacterSize.Width / 100f);
Common\Utilities\XmlSerializer.cs (1)
2724
writer.Write(((Size)obj).
Width
);
System.Web.Mobile (6)
UI\MobileControls\Design\FormDesigner.cs (1)
162
GetDefaultSize().
Width
UI\MobileControls\Design\MobileContainerDesigner.cs (1)
638
SetBehaviorStyle("width", GetDefaultSize().
Width
);
UI\MobileControls\Design\PanelDesigner.cs (2)
135
GetDefaultSize().
Width
171
SetBehaviorStyle("width", ValidContainment? "100%" : GetDefaultSize().
Width
.ToString(CultureInfo.InvariantCulture) + "px");
UI\MobileControls\Design\Util\GenericUI.cs (1)
95
header.Width = dialog.ClientSize.
Width
- 10;
UI\MobileControls\Design\Util\GroupLabel.cs (1)
47
etchLeft += 6 + sz.
Width
;
System.Windows.Forms (648)
misc\DpiHelper.cs (4)
457
deviceImage = new Bitmap(deviceImageSize.
Width
, deviceImageSize.Height, logicalImage.PixelFormat);
463
RectangleF sourceRect = new RectangleF(0, 0, logicalImage.Size.
Width
, logicalImage.Size.Height);
464
RectangleF destRect = new RectangleF(0, 0, deviceImageSize.
Width
, deviceImageSize.Height);
558
return new Size(LogicalToDeviceUnits(logicalSize.
Width
, deviceDpi),
misc\GDI\DeviceContext2.cs (1)
462
IntUnsafeNativeMethods.SetViewportExtEx( new HandleRef( this, this.Hdc ), newExtent.
Width
, newExtent.Height, oldExtent );
misc\GDI\WindowsGraphics2.cs (5)
250
if( bounds.Width == MaxSize.
Width
)
478
if( proposedSize.
Width
<= minWidth ) {
485
IntNativeMethods.RECT rect = IntNativeMethods.RECT.FromXYWH(0, 0, proposedSize.
Width
, proposedSize.Height);
504
if (proposedSize.
Width
== MaxSize.
Width
)
winforms\Managed\System\WinForms\AxHost.cs (8)
1568
width = adjustedSize.
Width
;
1591
width = p.
Width
;
1775
b.Width = p.
Width
;
3616
if (setExtent.
Width
< ocxExtent.
Width
|| setExtent.Height < ocxExtent.Height)
3617
Bounds = new Rectangle(location.X, location.Y, ocxExtent.
Width
, ocxExtent.Height);
3619
Size newSize = SetExtent(setExtent.
Width
, setExtent.Height);
3621
Bounds = new Rectangle(location.X, location.Y, newSize.
Width
, newSize.Height);
winforms\Managed\System\WinForms\Button.cs (1)
122
if (systemSize.
Width
== InvalidDimensionValue) {
winforms\Managed\System\WinForms\ButtonBase.cs (2)
951
if( proposedSize.
Width
== 1 ) {
1133
ShowToolTip = (this.ClientRectangle.Width < preferredSize.
Width
|| this.ClientRectangle.Height < preferredSize.Height);
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (9)
975
xCompose(hComposition, checkSize.
Width
, imageSize.
Width
, textSize.
Width
),
1002
xDecompose(hComposition, checkSize.
Width
, imageSize.
Width
, proposedSize.
Width
),
1322
size = new Size(size.
Width
+ 1, size.Height + 1);
1384
if (textImageRelation == TextImageRelation.ImageBeforeText && layout.imageBounds.Size.
Width
!= 0) {
1447
textSize = Size.Ceiling(g.MeasureString(text, font, new SizeF(proposedSize.
Width
, proposedSize.Height), gdipStringFormat));
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (1)
114
layout.checkSize = CheckBoxRenderer.GetGlyphSize(g, CheckBoxRenderer.ConvertFromButtonState(GetState(), true, Control.MouseIsOver), Control.HandleInternal).
Width
;
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonStandardAdapter.cs (1)
75
layout.checkSize = RadioButtonRenderer.GetGlyphSize(g, RadioButtonRenderer.ConvertFromButtonState(GetState(), b.MouseIsOver), b.HandleInternal).
Width
;
winforms\Managed\System\WinForms\CheckedListBox.cs (1)
682
idealCheckSize = (int)(CheckBoxRenderer.GetGlyphSize(e.Graphics, cbState, HandleInternal)).
Width
;
winforms\Managed\System\WinForms\ComboBox.cs (2)
823
base.MaximumSize = new Size(value.
Width
, 0);
830
base.MinimumSize = new Size(value.
Width
, 0);
winforms\Managed\System\WinForms\Control.cs (14)
532
width = defaultSize.
Width
;
1617
SetClientSizeCore(value.
Width
, value.Height);
3896
SetBounds(x, y, value.
Width
, value.Height, BoundsSpecified.Size);
6448
return ApplyBoundsConstraints(0,0,proposedSize.
Width
,proposedSize.Height).Size;
11562
SetBoundsCore(rawScaledBounds.X, rawScaledBounds.Y, scaledSize.
Width
, scaledSize.Height, BoundsSpecified.All);
11624
size.Width = (int)Math.Round((float)size.
Width
* x);
11949
return SizeFromClientSize(clientSize.
Width
, clientSize.Height);
12460
return width != s.
Width
|| height != s.Height;
16959
Point pt = PixelToHiMetric(size.
Width
, size.Height);
18263
Size adjusted = new Size(size.
Width
, size.Height);
18264
bounds.Width = adjusted.
Width
;
19242
if (size.
Width
< 0 || size.Height < 0) {
19247
destRect = new NativeMethods.RECT(0, 0, size.
Width
, size.Height);
19252
hBitmap = new HandleRef(this, SafeNativeMethods.CreateBitmap(size.
Width
, size.Height, planes, bitsPixel, IntPtr.Zero));
winforms\Managed\System\WinForms\ControlPaint.cs (20)
92
if (szCtl.
Width
> result.Width) {
93
result.X = (szCtl.
Width
- result.Width) / 2;
102
float xRatio = (float)bounds.Width / (float)imageSize.
Width
;
120
result.Width = (int) ((imageSize.
Width
* yRatio) +.5);
224
graphics.FillRectangle(brush, 0, 0, size.
Width
, size.Height);
226
graphics.DrawImage(bitmap, 0, 0, size.
Width
, size.Height);
287
IntPtr mask = SafeNativeMethods.CreateBitmap(size.
Width
, size.Height, 1, /* 1bpp */ 1, bits);
323
SafeNativeMethods.BitBlt(new HandleRef(null, target), 0, 0, size.
Width
, size.Height, new HandleRef(null, source),
354
int destWidth = blockRegionSize.
Width
;
965
rc.left -= sz.
Width
;
966
rc.right += sz.
Width
;
1452
if (pixelsBetweenDots.
Width
<= 0 || pixelsBetweenDots.Height <= 0) {
1459
if (gridBrush == null || gridSize.
Width
!= pixelsBetweenDots.
Width
1473
int width = ((idealSize / pixelsBetweenDots.
Width
) + 1) * pixelsBetweenDots.
Width
;
1479
for (int x = 0; x < width; x += pixelsBetweenDots.
Width
)
1599
new Rectangle(0, 0, imageSize.
Width
, imageSize.Height),
1600
0, 0, imageSize.
Width
, imageSize.Height,
1610
0, 0, imageSize.
Width
, imageSize.Height,
winforms\Managed\System\WinForms\Cursor.cs (9)
365
return SafeNativeMethods.CopyImage(new HandleRef(this, Handle), NativeMethods.IMAGE_CURSOR, sz.
Width
, sz.Height, 0);
442
imageWidth = cursorSize.
Width
;
453
targetWidth = cursorSize.
Width
;
466
&& imageWidth == cursorSize.
Width
&& imageHeight == cursorSize.Height) {
471
drawWidth = cursorSize.
Width
* targetWidth / imageWidth;
481
&& cursorSize.
Width
<= targetWidth && cursorSize.Height <= targetHeight
482
&& cursorSize.
Width
== imageWidth && cursorSize.Height == imageHeight) {
487
drawWidth = cursorSize.
Width
;
641
picSize.
Width
, picSize.Height, 0);
winforms\Managed\System\WinForms\DataGrid.cs (2)
587
return SystemInformation.Border3DSize.
Width
;
4775
int width = column.GetPreferredSize(g, value).
Width
;
winforms\Managed\System\WinForms\DataGridCaption.cs (5)
434
return new Rectangle( bounds.Right - xOffset * 4 - downButtonWidth - backButtonSize.
Width
,
436
backButtonSize.
Width
,
444
width = detailsBmp.Size.
Width
;
455
int downButtonWidth = downButtonSize.
Width
;
482
Math.Min(textWidthLeft, 2 * textPadding + textSize.
Width
),
winforms\Managed\System\WinForms\DataGridParentRows.cs (1)
626
int size = columns[colNum].GetPreferredSize(g, value).
Width
;
winforms\Managed\System\WinForms\DataGridRow.cs (2)
561
Rectangle bmpRect = new Rectangle(alignToRight ? visualBounds.Right - xOffset - bmpSize.
Width
: visualBounds.X + xOffset,
563
bmpSize.
Width
,
winforms\Managed\System\WinForms\DataGridToolTip.cs (1)
49
UnsafeNativeMethods.SendMessage(new HandleRef(tipWindow, tipWindow.Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.
Width
);
winforms\Managed\System\WinForms\DataGridView.cs (1)
1457
return Application.RenderWithVisualStyles ? 1 : SystemInformation.Border3DSize.
Width
;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (6)
380
preferredSize = new Size(DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.Font, flags).
Width
,
388
constraintSize.
Width
- borderAndPaddingWidths - marginWidths - 2 * DATAGRIDVIEWBUTTONCELL_horizontalTextMargin > 0)
394
constraintSize.
Width
- borderAndPaddingWidths - marginWidths - 2 * DATAGRIDVIEWBUTTONCELL_horizontalTextMargin,
427
preferredSize.Width = Math.Max(preferredSize.
Width
, borderAndPaddingWidths + DATAGRIDVIEWCELL_iconMarginWidth * 2 + iconsWidth);
796
valBounds.Inflate(-SystemInformation.Border3DSize.
Width
, -SystemInformation.Border3DSize.Height);
938
valBounds.Width > 2 * SystemInformation.Border3DSize.
Width
+ 1 &&
winforms\Managed\System\WinForms\DataGridViewCell.cs (16)
1974
if (constraintSize.
Width
< 0 || constraintSize.Height < 0)
1978
if (constraintSize.
Width
== 0)
2616
widthTruncated = size.
Width
> maxWidth;
2633
return GetPreferredSize(g, dataGridViewCellStyle, rowIndex, new Size(0, height)).
Width
;
2868
widthTruncated = (requiredSize.
Width
> maxWidth);
2904
if ((float)(textOneLineSize.
Width
/ textOneLineSize.Height) <= maxRatio)
2910
float maxWidth = (float) (textOneLineSize.
Width
* textOneLineSize.
Width
) / (float) textOneLineSize.Height / maxRatio * 1.1F;
2916
if ((float)(textSize.
Width
/ textSize.Height) <= maxRatio || textSize.
Width
> (int)maxWidth)
2920
maxWidth = (float)textSize.
Width
* 0.9F;
2967
return oneLineSize.
Width
;
2972
int lastFittingWidth = oneLineSize.
Width
;
2979
if (textSize.Height > maxHeight || textSize.
Width
> (int)maxWidth)
2986
maxWidth = (float)textSize.
Width
* 0.9F;
4700
int requiredHeight = DataGridViewCell.MeasureTextHeight(graphics, text, font, maxBounds.
Width
, flags, out widthTruncated);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (26)
787
preferredSize = new Size(checkBoxSize.
Width
+ borderAndPaddingWidths + 2 * DATAGRIDVIEWCHECKBOXCELL_margin, 0);
797
preferredSize = new Size(checkBoxSize.
Width
+ borderAndPaddingWidths + 2 * DATAGRIDVIEWCHECKBOXCELL_margin,
809
checkBoxSize = CheckBoxRenderer.GetGlyphSize(graphics, CheckBoxState.UncheckedNormal).
Width
- 3;
812
checkBoxSize = CheckBoxRenderer.GetGlyphSize(graphics, CheckBoxState.UncheckedNormal).
Width
- 2;
815
checkBoxSize = SystemInformation.Border3DSize.
Width
* 2 + 9 + 2 * DATAGRIDVIEWCHECKBOXCELL_margin;
853
preferredSize.Width = Math.Max(preferredSize.
Width
,
1294
checkBoxSize = new Size(SystemInformation.Border3DSize.
Width
* 2 + 9, SystemInformation.Border3DSize.
Width
* 2 + 9);
1299
if (valBounds.Width >= checkBoxSize.
Width
&& valBounds.Height >= checkBoxSize.Height && (paint || computeContentBounds))
1305
checkBoxX = valBounds.Right - checkBoxSize.
Width
;
1309
checkBoxX = valBounds.Left + (valBounds.Width - checkBoxSize.
Width
) / 2;
1334
new Rectangle(checkBoxX, checkBoxY, checkBoxSize.
Width
, checkBoxSize.Height),
1338
resultBounds = new Rectangle(checkBoxX, checkBoxY, checkBoxSize.
Width
, checkBoxSize.Height);
1348
ControlPaint.DrawMixedCheckBox(g, checkBoxX, checkBoxY, checkBoxSize.
Width
, checkBoxSize.Height, bs);
1352
ControlPaint.DrawCheckBox(g, checkBoxX, checkBoxY, checkBoxSize.
Width
, checkBoxSize.Height, bs);
1356
resultBounds = new Rectangle(checkBoxX, checkBoxY, checkBoxSize.
Width
, checkBoxSize.Height);
1363
Rectangle checkBounds = new Rectangle(checkBoxX, checkBoxY, checkBoxSize.
Width
, checkBoxSize.Height);
1419
Rectangle fullSize = new Rectangle(checkBoxX-1, checkBoxY-1, checkBoxSize.
Width
+3, checkBoxSize.Height+3);
1463
Rectangle checkBounds = new Rectangle(checkBoxX, checkBoxY, checkBoxSize.
Width
- 1, checkBoxSize.Height - 1);
1473
checkBoxSize.
Width
,
1501
CheckBoxBaseAdapter.DrawCheckOnly(checkBoxSize.
Width
,
1521
checkBoxSize.
Width
,
1548
CheckBoxBaseAdapter.DrawCheckOnly(checkBoxSize.
Width
,
1565
checkBoxSize.
Width
,
1593
CheckBoxBaseAdapter.DrawCheckOnly(checkBoxSize.
Width
,
1621
Debug.Assert(valBounds.Width < checkBoxSize.
Width
|| valBounds.Height < checkBoxSize.Height, "the bounds are empty");
winforms\Managed\System\WinForms\DataGridViewColumn.cs (4)
1253
preferredCellThickness = this.HeaderCell.GetPreferredSize(-1).
Width
;
1273
preferredCellThickness = dataGridViewRow.Cells[this.Index].GetPreferredSize(rowIndex).
Width
;
1296
preferredCellThickness = dataGridViewRow.Cells[this.Index].GetPreferredSize(rowIndex).
Width
;
1319
preferredCellThickness = dataGridViewRow.Cells[this.Index].GetPreferredSize(rowIndex).
Width
;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (7)
568
flags).
Width
,
583
preferredSize.Width = Math.Max(preferredSize.
Width
, 1);
588
int allowedWidth = constraintSize.
Width
- borderAndPaddingWidths;
609
if (glyphSize.
Width
> 0 &&
614
glyphSize.
Width
> 0)
624
glyphSize.
Width
,
680
preferredSize.Width = Math.Max(preferredSize.
Width
, 1);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (7)
755
Size adjustedSize = new Size(size.
Width
- borderAndPaddingWidths.X - borderAndPaddingWidths.Width,
764
int dropWidth = Math.Min(SystemInformation.HorizontalScrollBarThumbWidth, adjustedSize.
Width
- 2 * DATAGRIDVIEWCOMBOBOXCELL_margin - 1);
780
if (x >= size.
Width
- borderAndPaddingWidths.Width - dropWidth - 1 &&
781
x <= size.
Width
- borderAndPaddingWidths.Width - 1)
831
if (preferredSize.
Width
> maxPreferredWidth)
833
maxPreferredWidth = preferredSize.
Width
;
1470
preferredSize.Width = Math.Max(preferredSize.
Width
, borderAndPaddingWidths + SystemInformation.HorizontalScrollBarThumbWidth + 1 + DATAGRIDVIEWCELL_iconMarginWidth * 2 + iconsWidth);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (3)
494
int imgWidthAllowed = constraintSize.
Width
- borderAndPaddingWidths;
506
int icoWidthAllowed = constraintSize.
Width
- borderAndPaddingWidths;
587
preferredSize.Width = Math.Max(preferredSize.
Width
, borderAndPaddingWidths + DATAGRIDVIEWCELL_iconMarginWidth * 2 + iconsWidth);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (3)
698
Math.Max(1, constraintSize.
Width
- borderAndPaddingWidths - DATAGRIDVIEWLINKCELL_horizontalTextMarginLeft - DATAGRIDVIEWLINKCELL_horizontalTextMarginRight),
719
preferredSize = new Size(DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.Font, flags).
Width
,
743
preferredSize.Width = Math.Max(preferredSize.
Width
, borderAndPaddingWidths + DATAGRIDVIEWCELL_iconMarginWidth * 2 + iconsWidth);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (18)
2022
preferredWidth = this.TopLeftHeaderCell.GetPreferredSize(-1).
Width
;
2038
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndex).HeaderCell.GetPreferredSize(rowIndex).
Width
);
2058
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.HeaderCell.GetPreferredSize(rowIndex).
Width
);
2077
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.HeaderCell.GetPreferredSize(rowIndex).
Width
);
2096
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndex).HeaderCell.GetPreferredSize(rowIndex).
Width
);
2195
preferredWidth = this.TopLeftHeaderCell.GetPreferredSize(-1).
Width
;
2211
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndexTmp).HeaderCell.GetPreferredSize(rowIndexTmp).
Width
);
2231
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.HeaderCell.GetPreferredSize(rowIndexTmp).
Width
);
2250
preferredWidth = Math.Max(preferredWidth, dataGridViewRow.HeaderCell.GetPreferredSize(rowIndexTmp).
Width
);
2269
preferredWidth = Math.Max(preferredWidth, this.Rows.SharedRow(rowIndexTmp).HeaderCell.GetPreferredSize(rowIndexTmp).
Width
);
5842
if (Math.Abs(dgvcme.X - this.lastMouseClickInfo.x) <= hotDoubleClickZone.
Width
/ 2 &&
9065
int bordersAndPaddingWidth = 2*(this.BorderWidth + this.Padding.Size.
Width
);
9080
int preferredWidth = Math.Min(minimumWidth + this.Columns.GetColumnsWidth(DataGridViewElementStates.Visible), proposedConstraints.
Width
);
13041
if (Math.Abs(this.ptMouseDownGridCoord.X - ptGridCoord.X) >= DataGridView.DragSize.
Width
||
19364
Invalidate(new Rectangle(new Point(ClientSize.
Width
- (pt.X - rect.Right) - step, ColumnHeadersHeight),
19372
new Size(-step, ClientSize.
Width
)));
19379
new Size(ClientSize.
Width
, ClientSize.Height - (pt.Y - rect.Bottom) - step)));
29938
UnsafeNativeMethods.SendMessage(new HandleRef(this, nmhdr->hwndFrom), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.
Width
);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (1)
200
if (DpiHelper.IsScalingRequired && (b.Size.
Width
!= iconsWidth || b.Size.Height != iconsHeight))
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (3)
468
Math.Max(1, constraintSize.
Width
- borderAndPaddingWidths - DATAGRIDVIEWTEXTBOXCELL_horizontalTextMarginLeft - DATAGRIDVIEWTEXTBOXCELL_horizontalTextMarginRight),
489
preferredSize = new Size(DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.Font, flags).
Width
,
513
preferredSize.Width = Math.Max(preferredSize.
Width
, borderAndPaddingWidths + DATAGRIDVIEWCELL_iconMarginWidth * 2 + iconsWidth);
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (12)
198
preferredWidth = DataGridViewCell.MeasureTextSize(graphics, val, cellStyle.Font, flags).
Width
;
221
int allowedWidth = constraintSize.
Width
- borderAndPaddingWidths;
324
if (sizeRequired.
Width
> cellBounds.Width)
332
if (sizeConstraint.
Width
> sizeCell.
Width
)
334
sizeConstraint.Width = sizeCell.
Width
;
394
ptTextLocation.X = cellBounds.X + (cellBounds.Width - sizeText.
Width
) / 2;
399
ptTextLocation.X = cellBounds.Right - sizeText.
Width
;
409
ptTextLocation.X = cellBounds.X + (cellBounds.Width - sizeText.
Width
) / 2;
414
ptTextLocation.X = cellBounds.Right - sizeText.
Width
;
424
ptTextLocation.X = cellBounds.X + (cellBounds.Width - sizeText.
Width
) / 2;
429
ptTextLocation.X = cellBounds.Right - sizeText.
Width
;
winforms\Managed\System\WinForms\DataObject.cs (2)
156
IntPtr hBitmapNew = SafeNativeMethods.CreateCompatibleBitmap(new HandleRef(null, hDC), bm.Size.
Width
, bm.Size.Height);
161
SafeNativeMethods.BitBlt(new HandleRef(null, dcDest), 0, 0, bm.Size.
Width
, bm.Size.Height, new HandleRef(null, dcSrc), 0, 0, 0x00CC0020);
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (5)
269
maxSize.
Width
, maxSize.Height);
282
int xFrame = SystemInformation.FixedFrameBorderSize.
Width
;
394
if (pageSize.
Width
> maxSize.
Width
)
395
maxSize.Width = pageSize.
Width
;
winforms\Managed\System\WinForms\DomainUpDown.cs (2)
606
int width = LayoutUtils.OldGetLargestStringSizeInCollection(Font, Items).
Width
;
609
width = SizeFromClientSize(width, height).
Width
+ upDownButtons.Width;
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (1)
212
int padding = TextRenderer.MeasureText(" ", font).
Width
;
winforms\Managed\System\WinForms\DrawListViewItemEventArgs.cs (1)
173
resultBounds = new Rectangle(originalBounds.X, originalBounds.Y, textSize.
Width
, textSize.Height);
winforms\Managed\System\WinForms\DrawListViewSubItemEventArgs.cs (1)
218
int padding = TextRenderer.MeasureText(" ", font).
Width
;
winforms\Managed\System\WinForms\ErrorProvider.cs (7)
969
UnsafeNativeMethods.SendMessage(new HandleRef(tipWindow, tipWindow.Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.
Width
);
1038
mirrordc.ViewportExtent = new Size(-(mirrordcExtent.
Width
), mirrordcExtent.Height);
1529
x = control.Left - size.
Width
- iconPadding;
1553
return new Rectangle(x, y, size.
Width
, size.Height);
1708
int widthInBytes = 2 * ((size.
Width
+15) / bitmapBitsAllocationSize); // its in bytes.
1713
for (int x = 0; x < size.
Width
; x++) {
1721
region.Intersect(new Rectangle(0, 0, size.
Width
, size.Height));
winforms\Managed\System\WinForms\Form.cs (47)
1584
if (value.
Width
< 0 || value.Height < 0 ) {
1588
Properties.SetInteger(PropMaxTrackSizeWidth, value.
Width
);
1595
if (Properties.GetInteger(PropMinTrackSizeWidth) > value.
Width
) {
1596
Properties.SetInteger(PropMinTrackSizeWidth, value.
Width
);
1607
if (!value.IsEmpty && (size.
Width
> value.
Width
|| size.Height > value.Height)) {
1608
Size = new Size(Math.Min(size.
Width
, value.
Width
), Math.Min(size.Height, value.Height));
1742
if (value.
Width
< 0 || value.Height < 0 ) {
1752
Properties.SetInteger(PropMinTrackSizeWidth, value.
Width
);
1759
if (Properties.GetInteger(PropMaxTrackSizeWidth) < value.
Width
) {
1760
Properties.SetInteger(PropMaxTrackSizeWidth, value.
Width
);
1771
if (size.
Width
< value.
Width
|| size.Height < value.Height) {
1772
Size = new Size(Math.Max(size.
Width
, value.
Width
), Math.Max(size.Height, value.Height));
1781
Size.
Width
,
3380
float percX = AdjustScale(((float)newVar.
Width
) / ((float)baseVar.
Width
));
3442
if (correctClientSize.
Width
!= currentClient.Width) {
3454
bounds.Width = correct.
Width
;
3593
NativeMethods.RECT result = new NativeMethods.RECT(0, 0, clientSize.
Width
, clientSize.Height);
3992
correct = ApplyBoundsConstraints(cp.X, cp.Y, correct.
Width
, correct.Height).Size;
3994
cp.Width = correct.
Width
;
4460
p.X = (ownerRect.left + ownerRect.right - s.
Width
) / 2;
4463
else if (p.X + s.
Width
> screenRect.X + screenRect.Width)
4464
p.X = screenRect.X + screenRect.Width - s.
Width
;
4820
form.SetBounds(new Rectangle(this.Left, this.Top, adjustedSize.
Width
, adjustedSize.Height), BoundsSpecified.None);
5067
sizeGripRenderer.DrawBackground(e.Graphics, new Rectangle(sz.
Width
- SizeGripSize, sz.Height - SizeGripSize, SizeGripSize, SizeGripSize));
5070
ControlPaint.DrawSizeGrip(e.Graphics, BackColor, sz.
Width
- SizeGripSize, sz.Height - SizeGripSize, SizeGripSize, SizeGripSize);
5191
m.Result = (IntPtr)(unchecked((Size.Height & 0xFFFF) << 16) | (Size.
Width
& 0xFFFF));
5682
restoredSize = SizeFromClientSize(restoredSize.
Width
, restoredSize.Height);
5685
formStateEx[FormStateExWindowBoundsWidthIsClientSize]==1 ? restoredSize.
Width
: restoredWindowBounds.Width,
5904
if (width > max.
Width
) {
5905
width = max.
Width
;
5922
if (width < min.
Width
) {
5923
width = min.
Width
;
6040
if (x != ClientSize.
Width
|| y != ClientSize.Height) {
7184
mmi.ptMinTrackSize.x = minTrack.
Width
;
7204
if (minTrack.
Width
> virtualScreen.
Width
) {
7212
mmi.ptMaxTrackSize.x = Math.Max(maxTrack.
Width
, minTrackWindowSize.
Width
);
7371
if( pt.x >= (clientSize.
Width
- SizeGripSize) &&
7854
Rectangle r = new Rectangle(owner.Left, owner.Top, s.
Width
, SystemInformation.CaptionHeight);
7918
UnsafeNativeMethods.SendMessage(new HandleRef(window, window.Handle), NativeMethods.TTM_TRACKPOSITION, 0, NativeMethods.Util.MAKELONG(owner.Left + s.
Width
/ 2, owner.Top + SystemInformation.CaptionHeight));
7938
UnsafeNativeMethods.SendMessage(new HandleRef(window, window.Handle), NativeMethods.TTM_TRACKPOSITION, 0, NativeMethods.Util.MAKELONG(owner.Left + s.
Width
/ 2, owner.Top + SystemInformation.CaptionHeight));
winforms\Managed\System\WinForms\GroupBox.cs (3)
220
return new Rectangle(padding.Left, fontHeight + padding.Top, Math.Max(size.
Width
- padding.Horizontal, 0), Math.Max(size.Height - fontHeight - padding.Vertical, 0));
618
textLeft += textRectangle.Width - textSize.
Width
;
622
int textRight = Math.Min( textLeft + textSize.
Width
, Width - 6);
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (2)
172
textBounds.Width = measuredBounds.
Width
;
265
textBounds.Width = measuredBounds.
Width
;
winforms\Managed\System\WinForms\HtmlWindow.cs (2)
210
ResizeTo(value.
Width
, value.Height);
434
this.NativeHtmlWindow.ResizeTo(size.
Width
, size.Height);
winforms\Managed\System\WinForms\ImageList.cs (17)
267
if (value.
Width
<= 0 || value.
Width
> maxImageWidth) {
268
throw new ArgumentOutOfRangeException("ImageSize", SR.GetString(SR.InvalidBoundArgument, "ImageSize.Width", value.
Width
.ToString(CultureInfo.CurrentCulture), (1).ToString(CultureInfo.CurrentCulture), maxImageWidth.ToString()));
275
if (imageSize.
Width
!= value.
Width
|| imageSize.Height != value.Height) {
276
imageSize = new Size(value.
Width
, value.Height);
464
if (size.
Width
== 0 || (size.
Width
% imageSize.
Width
) != 0)
544
nativeImageList = new NativeImageList(SafeNativeMethods.ImageList_Create(imageSize.
Width
, imageSize.Height, flags, INITIAL_CAPACITY, GROWBY));
616
Draw(g, x, y, imageSize.
Width
, imageSize.Height, index);
725
result = new Bitmap(imageSize.
Width
, imageSize.Height, PixelFormat.Format32bppArgb);
726
targetData = result.LockBits(new Rectangle(0, 0, imageSize.
Width
, imageSize.Height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb);
745
result = new Bitmap(imageSize.
Width
, imageSize.Height);
752
imageSize.
Width
, imageSize.Height, NativeMethods.CLR_NONE, NativeMethods.CLR_NONE, NativeMethods.ILD_TRANSPARENT);
1400
if (value.Width == 0 || (value.Width % owner.ImageSize.
Width
) != 0)
1405
int nImages = value.Width / owner.ImageSize.
Width
;
winforms\Managed\System\WinForms\Label.cs (9)
807
get { return PreferredSize.
Width
; }
1093
xLoc = (r.X+r.Width - 4)-pointImageSize.
Width
;
1096
xLoc = r.X + (r.Width - pointImageSize.
Width
)/2;
1110
return new Rectangle(xLoc, yLoc, pointImageSize.
Width
, pointImageSize.Height);
1268
if (proposedSize.
Width
== 1) {
1312
SizeF bounds = (proposedConstraints.
Width
== 1) ?
1314
new SizeF(proposedConstraints.
Width
, proposedConstraints.Height);
1539
showToolTip = (clientRect.Width < preferredSize.
Width
|| clientRect.Height < preferredSize.Height);
1678
width = preferredSize.
Width
;
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (2)
214
bounds.Width = Math.Min(bounds.Width, value.
Width
);
236
bounds.Width = Math.Max(bounds.Width, value.
Width
);
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (21)
58
if(bounds.Width < prefSize.
Width
|| bounds.Height < prefSize.Height) {
78
Debug.Assert((CommonProperties.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink || newSize.Height >= oldBounds.Height && newSize.
Width
>= oldBounds.Width),
83
location.X -= newSize.
Width
- oldBounds.Width;
278
Rectangle newElementBounds = new Rectangle(remainingBounds.X, remainingBounds.Y, elementSize.
Width
, elementSize.Height);
289
Rectangle newElementBounds = new Rectangle(remainingBounds.X, remainingBounds.Bottom - elementSize.Height, elementSize.
Width
, elementSize.Height);
300
Rectangle newElementBounds = new Rectangle(remainingBounds.X, remainingBounds.Y, elementSize.
Width
, elementSize.Height);
311
Rectangle newElementBounds = new Rectangle(remainingBounds.Right - elementSize.
Width
, remainingBounds.Y, elementSize.
Width
, elementSize.Height);
326
Rectangle newElementBounds = new Rectangle(remainingBounds.X, remainingBounds.Y, elementSize.
Width
, elementSize.Height);
390
Size newSize = xGetDockedSize(element, remainingSize, /* constraints = */ new Size(remainingSize.
Width
, 1), measureOnly);
393
newSize.Width = remainingSize.
Width
;
395
newSize.Width = Math.Max(newSize.
Width
, remainingSize.
Width
);
398
Debug.Assert((measureOnly && (newSize.
Width
>= remainingSize.
Width
)) || (newSize.
Width
== remainingSize.
Width
),
448
Debug.Assert((desiredSize.
Width
>= 0 && desiredSize.Height >= 0), "Error detected in xGetDockSize: Element size was negative.");
836
prefSize.Width = Math.Max(prefSize.
Width
, elementSpace.Right);
851
prefSize.Width = Math.Max(prefSize.
Width
, elementSpace.Right + anchorDest.Width);
854
prefSize.Width = Math.Max(prefSize.
Width
, anchorDest.Right);
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (9)
60
if(prefSize.
Width
> proposedConstraints.
Width
|| prefSize.Height> proposedConstraints.Height) {
131
rowSize.
Width
,
135
layoutSize.Width = Math.Max(layoutSize.
Width
, rowSize.
Width
);
190
elementConstraints.Width = rowBounds.Width - rowSize.
Width
- elementProxy.Margin.Size.
Width
;
220
Rectangle cellBounds = new Rectangle(location, new Size(requiredSize.
Width
, rowBounds.Height));
233
location.X += requiredSize.
Width
;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (36)
58
largestSize.Width = Math.Max(largestSize.
Width
, textSize.
Width
);
131
if(size.
Width
== 0) size.Width = Int32.MaxValue;
198
Math.Max(a.
Width
, b.
Width
),
204
Math.Min(a.
Width
, b.
Width
),
261
withinThis.X += withinThis.Width - alignThis.
Width
;
264
withinThis.X += (withinThis.Width - alignThis.
Width
) / 2;
266
withinThis.Width = alignThis.
Width
;
273
withinThis.X += withinThis.Width - alignThis.
Width
;
276
withinThis.X += (withinThis.Width - alignThis.
Width
) / 2;
278
withinThis.Width = alignThis.
Width
;
311
(anchorStyles & HorizontalAnchorStyles) == HorizontalAnchorStyles ? withinThis.
Width
: stretchThis.
Width
,
314
if (stretchedSize.
Width
> withinThis.
Width
) {
315
stretchedSize.Width = withinThis.
Width
;
345
currentSize.Width = Math.Max(currentSize.
Width
, contentSize.
Width
);
348
currentSize.Width += contentSize.
Width
;
395
int temp = size.
Width
;
429
return (size.
Width
== 0 || size.Height == 0);
433
return ((size1.
Width
>= size2.
Width
) && (size1.Height >= size2.Height));
440
region1.Width = specifiedContent.
Width
;
441
region2.X += specifiedContent.
Width
;
442
region2.Width -= specifiedContent.
Width
;
445
region1.X += bounds.Width - specifiedContent.
Width
;
446
region1.Width = specifiedContent.
Width
;
447
region2.Width -= specifiedContent.
Width
;
506
currentSize.Width -= contentSize.
Width
;
585
else if ((sizeCache.ConstrainingSize.
Width
== proposedConstraints.
Width
)
634
return GetUnconstrainedSize(text, font, flags).
Width
> size.
Width
;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (20)
196
containerSize.Width = Math.Max(containerSize.
Width
, 1);
255
containerSize.Width = Math.Max(containerSize.
Width
, 1);
258
containerInfo.ColumnStyles[0].SetSize(Math.Max(oldWidth, Math.Min(proposedConstraints.
Width
, containerSize.
Width
)));
268
proposedConstraints.Width = Math.Max(proposedConstraints.
Width
, 1);
312
if (cols.Length != 0 && totalSpace.
Width
> usedSpace.
Width
) {
313
cols[cols.Length - 1].MinSize += totalSpace.
Width
- usedSpace.
Width
;
665
int expandLastElementWidth = Math.Max(0,proposedConstraints.
Width
- preferredSize.
Width
);
706
if (dontHonorConstraint && (proposedConstraints.
Width
< Int16.MaxValue)) {
731
minWidth = GetElementSize(element, new Size(0, constrainingHeight)).
Width
;
735
minWidth = GetElementSize(element, new Size(1, 0)).
Width
;
736
maxWidth = GetElementSize(element, Size.Empty).
Width
;
750
int width = DistributeStyles(containerInfo.CellBorderWidth, containerInfo.ColumnStyles, containerInfo.Columns, proposedConstraints.
Width
, dontHonorConstraint);
753
if (dontHonorConstraint && width > proposedConstraints.
Width
&& proposedConstraints.
Width
> 1) {
778
int currentOverflow = width - proposedConstraints.
Width
;
1778
if (proposedContstraints.Height == 0 || proposedContstraints.
Width
== 0) {
winforms\Managed\System\WinForms\LinkLabel.cs (3)
703
textSize.
Width
- iRightMargin - iLeftMargin,
1146
showToolTip = (clientRect.Width < preferredSize.
Width
|| clientRect.Height < preferredSize.Height);
1184
finalrect.Width = requiredSize.
Width
;
winforms\Managed\System\WinForms\ListBox.cs (4)
640
Size = new Size(oldSize.
Width
+ 1, oldSize.Height);
778
width = SizeFromClientSize(new Size(MaxItemWidth, height)).
Width
;
1361
return Math.Max(oldMax, textSize.
Width
);
2280
Rectangle rect = new Rectangle(0, 0, this.Size.
Width
- 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\ListView.cs (6)
1653
if (value.IsEmpty || value.Height <= 0 || value.
Width
<= 0) {
1662
tileViewInfo.sizeTile = new NativeMethods.SIZE(tileSize.
Width
, tileSize.Height);
5126
textWidth = Size.Ceiling(g.MeasureString(text, this.Font)).
Width
;
5350
tileViewInfo.sizeTile = new NativeMethods.SIZE(this.TileSize.
Width
, this.TileSize.Height);
6150
UnsafeNativeMethods.SendMessage(new HandleRef(this, nmhdr->hwndFrom), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.
Width
);
6231
Rectangle rect = new Rectangle(0, 0, this.Size.
Width
- 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\MaskedTextBox.cs (1)
3181
Rectangle rect = new Rectangle(0, 0, this.Size.
Width
- 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\MonthCalendar.cs (10)
425
SetCalendarDimensions(value.
Width
, value.Height);
1494
Debug.Assert(minSize.
Width
> INSERT_WIDTH_SIZE, "Divide by 0");
1495
int nCols = (newDimensionLength - scaledExtraPadding) /minSize.
Width
;
1499
minSize.Width = (minSize.
Width
+ INSERT_WIDTH_SIZE) * dimensions.
Width
- INSERT_WIDTH_SIZE;
1506
if (maxTodayWidth > minSize.
Width
) {
1562
return preferredSize.
Width
;
1960
if (width > max.
Width
)
1961
width = max.
Width
;
2058
if (dimensions.
Width
!= x || dimensions.Height != y) {
winforms\Managed\System\WinForms\NativeMethods.cs (1)
2732
hicon = SafeNativeMethods.CopyImage(new HandleRef(icon, icon.Handle), NativeMethods.IMAGE_ICON, icon.Size.
Width
, icon.Size.Height, 0);
winforms\Managed\System\WinForms\NumericUpDown.cs (5)
855
int textWidth = TextRenderer.MeasureText(GetNumberText(testNumber), this.Font).
Width
;
865
int shortTextWidth = TextRenderer.MeasureText(shortText, this.Font).
Width
;
872
int width = SizeFromClientSize(textWidth, height).
Width
+ upDownButtons.Width;
890
if(digitSize.
Width
>= digitWidth) {
891
digitWidth = digitSize.
Width
;
winforms\Managed\System\WinForms\PictureBox.cs (2)
462
float ratio = Math.Min((float)ClientRectangle.Width / (float)imageSize.
Width
, (float)ClientRectangle.Height / (float)imageSize.Height);
463
result.Width = (int)(imageSize.
Width
* ratio);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (15)
436
double zoomX = ((double) controlPhysicalSize.
Width
- border*(columns + 1)) / (columns*pageSize.
Width
);
441
imageSize = new Size((int) (zoom*pageSize.
Width
), (int) (zoom*pageSize.Height));
442
int virtualX = (imageSize.
Width
* columns) + border * (columns +1);
579
Point offset = new Point(Math.Max(0, (Size.
Width
- virtualPixels.X) / 2),
605
double zoomX = ((double) controlPhysicalSize.
Width
- border*(columns + 1)) / (columns*pageSize.
Width
);
610
imageSize = new Size((int) (zoom*pageSize.
Width
), (int) (zoom*pageSize.Height));
679
return new Size(PhysicalToPixels(physicalSize.
Width
, dpi.X),
693
return new Size(PixelsToPhysical(pixels.
Width
, dpi.X),
733
int maxPos = Math.Max(Width, virtualSize.
Width
/*- Width*/);
743
position.X = Math.Min(position.X, virtualSize.
Width
- Width);
773
info.nMax = Math.Max(Width, virtualSize.
Width
) - 1;
839
maxPos = Math.Max(Width, virtualSize.
Width
/*- Width*/);
903
maxPos = Math.Max(Width, virtualSize.
Width
/*- Width*/);
winforms\Managed\System\WinForms\PropertyGrid.cs (12)
1654
if (DpiHelper.IsScalingRequired && (image.Size.
Width
!= normalButtonSize.
Width
|| image.Size.Height != normalButtonSize.Height)) {
2064
if (size.
Width
!= 16 || size.Height != 16) {
2464
this.imageList[LARGE_BUTTONS].Images.Add(new Bitmap((Bitmap)images[i], largeButtonSize.
Width
, largeButtonSize.Height));
3038
dcOptHeight = doccomment.GetOptimalHeight(Size.
Width
- cyDivider);
3051
hcOptHeight = hotcommands.GetOptimalHeight(Size.
Width
- cyDivider);
3084
doccomment.SetBounds(0, endSize - height, Size.
Width
, height);
3123
hotcommands.SetBounds(0, endSize - height, Size.
Width
, height);
3128
gridView.Size = new Size(Size.
Width
, endSize - gridView.Location.Y);
3208
Invalidate(new Rectangle(0, me.Y - cyDivider, Size.
Width
, me.Y + cyDivider));
3212
gridView.Invalidate(new Rectangle(0, gridView.Size.Height - cyDivider, Size.
Width
, cyDivider));
3288
int width = Size.
Width
;
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (3)
144
size.Width = Math.Max(0, size.
Width
- 2 * cBorder);
149
size.
Width
,
155
size.
Width
,
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (2)
189
int overHang = (Location.X + Size.
Width
) - SystemInformation.VirtualScreen.Width;
216
UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.
Width
);
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (1)
68
return new Rectangle(4, 4, sz.
Width
- 8, sz.Height - 8);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (42)
330
if ((DpiHelper.IsScalingRequired || DpiHelper.EnableDpiChangedHighDpiImprovements) && (b.Size.
Width
!= iconsWidth || b.Size.Height != iconsHeight)) {
1257
return ptOurLocation.X + GetIPELabelIndent(gridEntry) + size.
Width
;
1636
size.Width = Math.Max(rect.Width + 1, size.
Width
);
1641
loc.X = Math.Min(rectScreen.X + rectScreen.Width - size.
Width
,
1642
Math.Max(rectScreen.X, loc.X + rect.X + rect.Width - size.
Width
));
1659
if (this.Width == size.
Width
&& this.Height == size.Height) {
1663
SafeNativeMethods.SetWindowPos(new HandleRef(this.dropDownHolder, this.dropDownHolder.Handle), NativeMethods.NullHandleRef, loc.X, loc.Y, size.
Width
, size.Height, flags);
1665
dropDownHolder.SetBounds(loc.X, loc.Y, size.
Width
, size.Height);
1715
size.Width = Math.Max(rect.Width + 1, size.
Width
);
1720
loc.X = Math.Min(rectScreen.X + rectScreen.Width - size.
Width
,
1721
Math.Max(rectScreen.X, loc.X + rect.X + rect.Width - size.
Width
));
1736
dropDownHolder.SetBounds(loc.X, loc.Y, size.
Width
, size.Height);
1923
if (x < 0 || x > size.
Width
+ ptOurLocation.X)
2116
if (size.
Width
== 0) {
2118
if (sizeWindow.
Width
> 10) {
2120
size.Width = sizeWindow.
Width
;
2126
size.Width -= sizeScroll.
Width
;
2144
rect.Width = size.
Width
- 1;
2152
rect.Width = size.
Width
- InternalLabelWidth;
2227
boundsScroll.X = sizeWindow.
Width
- boundsScroll.Width - 1;
2347
int widthPS = GetOurSize().
Width
;
2367
Invalidate(new Rectangle(left, 0, Size.
Width
- left, Size.Height));
2446
if ((Size.
Width
> doubleOffset) && (Size.Height > doubleOffset)) {
2448
ControlPaint.DrawFocusRectangle(g, new Rectangle(offset_2Units, offset_2Units, Size.
Width
- doubleOffset, Size.Height - doubleOffset));
2607
Rectangle clearRect = new Rectangle(1, 1, Size.
Width
- 2, Size.Height - 2);
2813
if (Math.Abs(screenPoint.X - rowSelectPos.X) < SystemInformation.DoubleClickSize.
Width
&&
3516
int cLineEnd = loc.X + size.
Width
;
3558
Rectangle clearRect = new Rectangle(1, yPos, Size.
Width
- 2, Size.Height - yPos - 1);
3566
g.DrawRectangle(borderPen, 0, 0, sizeWindow.
Width
- 1, sizeWindow.Height - 1);
4428
Rectangle rectTarget = new Rectangle(rect.X+rect.Width-sizeBtn.
Width
,
4430
sizeBtn.
Width
,rect.Height);
4433
rect.Width -= (sizeBtn.
Width
);
4534
if (size.
Width
>= 0) {
4536
labelWidth = ptOurLocation.X + (int) ((double)size.
Width
/ labelRatio);
4552
if (adjustWidth && size.
Width
>= 0) {
4553
labelRatio = ((double) GetOurSize().
Width
/ (double) (oldWidth - ptOurLocation.X));
4895
if (labelWidth != -1 && size.
Width
> 0) {
4896
if (labelWidth > ptOurLocation.X + size.
Width
) {
4897
labelWidth = ptOurLocation.X + (int) ((double)size.
Width
/ labelRatio);
4900
labelRatio = ((double) GetOurSize().
Width
/ (double) (labelWidth - ptOurLocation.X));
5860
if ((dragBaseRect.Width - delta) > MinDropDownSize.
Width
)
6049
this.Size = new Size(this.Size.
Width
, this.PreferredSize.Height);
winforms\Managed\System\WinForms\ScrollableControl.cs (12)
166
if (value.
Width
< 0 || value.Height < 0) {
169
SetAutoScrollMargin(value.
Width
, value.Height);
287
if(AutoScrollMinSize.
Width
!= 0 && AutoScrollMinSize.Height != 0) {
288
displayRectangle.Width = Math.Max(displayRectangle.Width, AutoScrollMinSize.
Width
);
477
scrollMargin.Width += current.Size.
Width
;
485
maxX = userAutoScrollMinSize.
Width
+ scrollMargin.
Width
;
498
if (layoutBounds.
Width
> maxX) {
500
maxX = layoutBounds.
Width
;
557
int ctlRight = -display.X + bounds.X + bounds.Width + scrollMargin.
Width
;
948
int xMargin = scrollMargin.
Width
;
1054
if (x != requestedScrollMargin.
Width
winforms\Managed\System\WinForms\SplitContainer.cs (2)
1447
if (DesignMode && Width != DefaultSize.
Width
&& value + Panel2MinSize + SplitterWidth > Width) {
1471
if (DesignMode && Width != DefaultSize.
Width
&& value + Panel1MinSize + SplitterWidth > Width) {
winforms\Managed\System\WinForms\Splitter.cs (1)
749
maxSize = clientSize.
Width
- dockWidth - minExtra;
winforms\Managed\System\WinForms\StatusBar.cs (5)
105
sizeGripWidth = elementSize.
Width
;
111
sizeGripWidth += elementSize.
Width
;
598
offsets[0] = sz.
Width
;
1002
int border = SystemInformation.Border3DSize.
Width
;
1823
UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.
Width
);
winforms\Managed\System\WinForms\StatusBarPanel.cs (4)
204
if (value != null && (((Icon)value).Height > SystemInformation.SmallIconSize.Height || ((Icon)value).Width > SystemInformation.SmallIconSize.
Width
)) {
558
sz.Width += this.icon.Size.
Width
+ 5;
562
int width = sz.
Width
+ SystemInformation.BorderSize.
Width
*2 + PANELTEXTINSET*2 + PANELGAP;
winforms\Managed\System\WinForms\StatusStrip.cs (3)
234
return new Rectangle(statusStripSize.
Width
- gripWidth, statusStripSize.Height - gripHeight, gripWidth, gripHeight);
308
if (proposedSize.
Width
== 1) {
378
noMansLand.X += ClientSize.
Width
+ 1;
winforms\Managed\System\WinForms\SystemInformation.cs (1)
1041
return new Rectangle(0, 0, size.
Width
, size.Height);
winforms\Managed\System\WinForms\TabControl.cs (4)
574
if (value.
Width
< 0 || value.Height < 0) {
1077
SendMessage(NativeMethods.TCM_SETITEMSIZE, 0, (int)NativeMethods.Util.MAKELPARAM(itemSize.
Width
, itemSize.Height));
1636
Size = new Size(size.
Width
+ 1, size.Height);
2205
UnsafeNativeMethods.SendMessage(new HandleRef(nmhdr, nmhdr.hwndFrom), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.
Width
);
winforms\Managed\System\WinForms\TextBox.cs (1)
849
Rectangle rect = new Rectangle(0, 0, this.Size.
Width
- 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (4)
243
textSize = Size.Ceiling(g.MeasureString(messageText, Font, textSize.
Width
));
249
if (textSize.
Width
< scaledMaxTextWidth) textSize.Width = scaledMaxTextWidth;
252
int width = textSize.
Width
+ scaledPaddingWidth;
293
textSize.
Width
, textSize.Height);
winforms\Managed\System\WinForms\ToolBar.cs (5)
399
if (value.
Width
< 0 || value.Height < 0)
772
maxWidth = ButtonSize.
Width
;
1310
Size = new Size(size.
Width
+ 1, size.Height);
1440
SendMessage(NativeMethods.TB_SETBUTTONSIZE, 0, NativeMethods.Util.MAKELPARAM((int)(buttonSize.
Width
*currentScaleDX), (int)(buttonSize.Height*currentScaleDY)));
1750
leftTop.x -= (this.ButtonSize.
Width
+ tooltipWidth + 2);
winforms\Managed\System\WinForms\ToolBarButton.cs (16)
481
width = buttonSize.
Width
;
488
if (textSize.
Width
== 0)
489
width = imageSize.
Width
+ edge.
Width
* 4;
491
width = imageSize.
Width
+ textSize.
Width
+ edge.
Width
* 6;
494
if (imageSize.
Width
> textSize.
Width
)
495
width = imageSize.
Width
+ edge.
Width
* 4;
497
width = textSize.
Width
+ edge.
Width
* 4;
504
width = this.parent.ButtonSize.
Width
;
509
width = edge.
Width
* 2;
553
int buttonWidth = Parent.ButtonSize.
Width
;
winforms\Managed\System\WinForms\ToolStrip.cs (9)
2450
if (proposedSize.
Width
== 1) {
2495
maxSize.Width += itemMargin.Horizontal + prefItemSize.
Width
;
2551
maxSize.Width = Math.Max(maxSize.
Width
, itemMargin.Horizontal + preferredSize.
Width
);
3728
SafeNativeMethods.BitBlt(itemHDC, 0, 0, item.Size.
Width
, item.Size.Height, toolStripHDC, item.Bounds.X, item.Bounds.Y, NativeMethods.SRCCOPY);
3736
SafeNativeMethods.BitBlt(toolStripHDC, item.Bounds.X, item.Bounds.Y, item.Size.
Width
, item.Size.Height, itemHDC, 0, 0, NativeMethods.SRCCOPY);
5226
if ((cachedHDCSize.
Width
< bitmapSize.
Width
)
5236
cachedItemBitmap = new HandleRef(this, SafeNativeMethods.CreateCompatibleBitmap(toolStripHDC, bitmapSize.
Width
, bitmapSize.Height));
winforms\Managed\System\WinForms\ToolStripButton.cs (1)
211
prefSize.Width = Math.Max(prefSize.
Width
, standardButtonWidth);
winforms\Managed\System\WinForms\ToolStripComboBox.cs (1)
496
preferredSize.Width = Math.Max(preferredSize.
Width
, 75);
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (3)
278
int widthOfDropDown = dropDownArrowSize.
Width
+ scaledDropDownArrowPadding.Horizontal;
285
dropDownArrowRect = new Rectangle(scaledDropDownArrowPadding.Left,0, dropDownArrowSize.
Width
, ownerItem.Bounds.Height);
289
dropDownArrowRect = new Rectangle(options.client.Right,0, dropDownArrowSize.
Width
, ownerItem.Bounds.Height);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (19)
352
tabWidth = TextRenderer.MeasureText("\t", this.Font).
Width
;
354
menuItemTextSize.Width += tabWidth + shortcutTextSize.
Width
;
359
maxTextSize.Width = Math.Max(maxTextSize.
Width
, menuItemTextSize.
Width
);
368
maxImageSize.Width = Math.Max(maxImageSize.
Width
, imageSize.
Width
);
373
maxCheckSize.Width = Math.Max(checkedImageSize.
Width
, maxCheckSize.
Width
);
379
maxNonMenuItemSize.Width = Math.Max(item.Bounds.Width, maxNonMenuItemSize.
Width
);
390
bool useDefaultCheckMarginWidth = (ShowCheckMargin && (maxCheckSize.
Width
== 0));
391
bool useDefaultImageMarginWidth = (ShowImageMargin && (maxImageSize.
Width
== 0));
400
maxTextSize.Width = Math.Max(maxTextSize.
Width
, maxNonMenuItemSize.
Width
);
405
int extraImageWidth = Math.Max(0, maxImageSize.
Width
- scaledDefaultImageSize.
Width
);
417
checkRectangle = LayoutUtils.Align(maxCheckSize, new Rectangle(nextPoint.X, nextPoint.Y, maxCheckSize.
Width
, maxItemSize.Height), ContentAlignment.MiddleCenter);
422
imageRectangle = LayoutUtils.Align(maxImageSize, new Rectangle(nextPoint.X, nextPoint.Y, maxImageSize.
Width
, maxItemSize.Height), ContentAlignment.MiddleCenter);
490
int width = maxItemSize.
Width
;
834
preferredSize.Width = dropDownMenu.MaxItemSize.
Width
- dropDownMenu.PaddingToTrim;
winforms\Managed\System\WinForms\ToolStripGrip.cs (4)
117
if (preferredSize.
Width
> constrainingSize.
Width
) {
118
preferredSize.Width = constrainingSize.
Width
;
163
if (deltaX >= DragSize.
Width
) {
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
4788
|| cachedSize.
Width
<= proposedConstraints.
Width
)) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
339
if (DpiHelper.IsScalingRequired && (b.Size.
Width
!= desiredIconSize.
Width
|| b.Size.Height != desiredIconSize.Height))
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (1)
110
preferredSize.Width = Math.Min(constrainingSize.
Width
, maxWidth);
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (9)
179
if (MaximumSize.
Width
>= Control.PreferredSize.
Width
) {
187
if (MaximumSize.
Width
+ growBy >= Control.PreferredSize.
Width
) {
188
int freed = Control.PreferredSize.
Width
- MaximumSize.
Width
;
196
if (MaximumSize.
Width
+ growBy < Control.PreferredSize.
Width
) {
243
preferredSize.Width = constrainingSize.
Width
;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (6)
448
if (cachedBounds.Width > minSize.
Width
) {
449
spaceToFree -= (cachedBounds.Width - minSize.
Width
);
451
cachedBounds.Width = (spaceToFree < 0) ? minSize.
Width
+ -spaceToFree : minSize.
Width
;
996
return totalSize.
Width
< DisplayRectangle.Width;
1311
int controlToDragWidth = (toolStripToDrag.AutoSize) ? toolStripToDrag.PreferredSize.
Width
: toolStripToDrag.Width;
winforms\Managed\System\WinForms\ToolStripRenderer.cs (4)
937
using (Bitmap textBmp = new Bitmap(textSize.
Width
, textSize.Height,PixelFormat.Format32bppPArgb)) {
1079
Bitmap disabledBitmap = new Bitmap(size.
Width
, size.Height);
1083
new Rectangle(0, 0, size.
Width
, size.Height),
1084
0, 0, size.
Width
, size.Height,
winforms\Managed\System\WinForms\ToolStripScrollButton.cs (1)
154
preferredSize.Width = (ParentInternal != null) ? ParentInternal.Width - 2 : preferredSize.
Width
; // Two for border
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
432
return new Size(constrainingSize.
Width
, WINBAR_SEPARATORTHICKNESS);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (18)
123
currentWidth += itemSize.
Width
+ item.Margin.Horizontal;
125
int overflowWidth = (OverflowRequired) ? OverflowButtonSize.
Width
: 0;
231
noMansLand.X += toolStrip.ClientSize.
Width
+ 1;
261
bool needOverflow = toolStrip.CanOverflow && ((OverflowRequired) || (OverflowSpace >= OverflowButtonSize.
Width
));
329
x = lastRight - (itemMargin.Right + itemSize.
Width
);
332
alignedRightItems = (alignedRightItems == Rectangle.Empty) ? new Rectangle(x,y,itemSize.
Width
, itemSize.Height)
333
: Rectangle.Union(alignedRightItems, new Rectangle(x,y,itemSize.
Width
, itemSize.Height));
344
lastLeft = x + itemSize.
Width
+ itemMargin.Right;
345
alignedLeftItems = (alignedLeftItems == Rectangle.Empty) ? new Rectangle(x,y,itemSize.
Width
, itemSize.Height)
346
: Rectangle.Union(alignedLeftItems, new Rectangle(x,y,itemSize.
Width
, itemSize.Height));
462
alignedRightItems = (alignedRightItems == Rectangle.Empty) ? new Rectangle(x,y,itemSize.
Width
, itemSize.Height)
463
: Rectangle.Union(alignedRightItems, new Rectangle(x,y,itemSize.
Width
, itemSize.Height));
470
alignedLeftItems = (alignedLeftItems == Rectangle.Empty) ? new Rectangle(x,y,itemSize.
Width
, itemSize.Height)
471
: Rectangle.Union(alignedLeftItems, new Rectangle(x,y,itemSize.
Width
, itemSize.Height));
488
itemSize.Width = Math.Max(toolStripPreferredSize.
Width
- itemMargin.Horizontal -1, 0);
615
freedSpace += (horizontal) ? itemSize.
Width
+ itemMargin.Horizontal : itemSize.Height + itemMargin.Vertical;
626
spaceNeeded += (horizontal) ? OverflowButtonSize.
Width
: OverflowButtonSize.Height;
633
this.OverflowSpace += (horizontal) ? itemSize.
Width
+ itemMargin.Horizontal : itemSize.Height + itemMargin.Vertical;
winforms\Managed\System\WinForms\ToolTip.cs (8)
906
UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.
Width
);
1763
Point optimalPoint = this.GetOptimalToolTipPosition(tool, toolRectangle, bubbleSize.
Width
, bubbleSize.Height);
2164
if (moveToLocation.X + tipSize.
Width
> screen.WorkingArea.Right) {
2165
moveToLocation.X = screen.WorkingArea.Right - tipSize.
Width
;
2175
moveToLocation.X, moveToLocation.Y, tipSize.
Width
, tipSize.Height,
2337
Math.Min(currentTooltipSize.
Width
-2*XBALLOONOFFSET, screen.WorkingArea.Width):
2338
Math.Min(currentTooltipSize.
Width
, screen.WorkingArea.Width);
2355
r.left, r.top, currentTooltipSize.
Width
, currentTooltipSize.Height,
winforms\Managed\System\WinForms\TreeNode.cs (1)
640
visible = (rc.bottom > 0 && rc.right > 0 && rc.top < size.Height && rc.left < size.
Width
);
winforms\Managed\System\WinForms\TreeView.cs (4)
1764
UnsafeNativeMethods.SendMessage(new HandleRef(toolTip, toolTip.Handle), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.
Width
);
2828
bounds = new Rectangle(textLoc, new Size(textSize.
Width
, bounds.Height));
3137
Rectangle rect = new Rectangle(0, 0, this.Size.
Width
- 1, this.Size.Height - 1);
3210
UnsafeNativeMethods.SendMessage(new HandleRef(nmhdr, nmhdr.hwndFrom), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.
Width
);
winforms\Managed\System\WinForms\UpDownBase.cs (2)
456
base.MaximumSize = new Size(value.
Width
, 0);
464
base.MinimumSize = new Size(value.
Width
, 0);
winforms\Managed\System\WinForms\WebBrowserBase.cs (4)
849
extent = SetExtent(extent.
Width
, extent.Height);
852
Bounds = new Rectangle(location.X, location.Y, extent.
Width
, extent.Height);
1985
if (s.
Width
== -1) { // Invalid value. Use WebBrowserBase.Bounds instead, when this is the case.
1990
wp->cx = s.
Width
;
System.Windows.Forms.DataVisualization (70)
Common\General\Legend.cs (47)
450
this.singleWCharacterSize.Width = doubleCharacterSize.
Width
- this.singleWCharacterSize.
Width
;
453
this._offset.Width = (int)Math.Ceiling(singleWCharacterSize.
Width
/ 2f);
454
this._offset.Height = (int)Math.Ceiling(singleWCharacterSize.
Width
/ 3f);
457
this._itemColumnSpacingRel = (int)(singleWCharacterSize.
Width
* (this._itemColumnSpacing / 100f));
511
legendPosition.Location.X + this.GetBorderSize() + this._offset.
Width
,
513
legendPosition.Width - (this.GetBorderSize() + this._offset.
Width
) * 2,
529
legendPosition.X + this._offset.
Width
+ this.GetBorderSize(),
531
legendPosition.Width - 2 * (this._offset.
Width
+ this.GetBorderSize()),
827
cellPosition.X += itemHalfSpacing.
Width
;
843
cellPosition.X += this.GetSeparatorSize(this.ItemColumnSeparator).
Width
;
917
this.singleWCharacterSize.Width = doubleCharacterSize.
Width
- this.singleWCharacterSize.
Width
;
920
this._offset.Width = (int)Math.Ceiling(singleWCharacterSize.
Width
/ 2f);
921
this._offset.Height = (int)Math.Ceiling(singleWCharacterSize.
Width
/ 3f);
922
this._itemColumnSpacingRel = (int)(singleWCharacterSize.
Width
* (this._itemColumnSpacing / 100f));
960
legenItemsMaxSize.Width -= 2 * (this._offset.
Width
+ this.GetBorderSize());
1034
optimalSize.Width = (legenItemsMaxSize.
Width
- horizSpaceLeft);
1035
optimalSize.Width = Math.Max(optimalSize.
Width
, titleSize.
Width
);
1036
optimalSize.Width += 2 * (this._offset.
Width
+ this.GetBorderSize());
1051
if(optimalSize.
Width
> maxSize.
Width
)
1053
optimalSize.Width = maxSize.
Width
;
1059
if(optimalSize.
Width
< 0)
1332
averageColumnWidth = (int)Math.Round((double)(legendSize.
Width
- horSpaceLeft) / columnNumber) / 2;
1742
this.singleWCharacterSize.Width = doubleCharacterSize.
Width
- this.singleWCharacterSize.
Width
;
1796
cellSize.Width = (int)Math.Max(cellSize.
Width
, legendColumn.MinimumWidth * singleWCharacterSize.
Width
/ 100f);
1800
cellSize.Width = (int)Math.Min(cellSize.
Width
, legendColumn.MaximumWidth * singleWCharacterSize.
Width
/ 100f);
1805
cellWidths[currentColumn, currentRow, cellIndex] = cellSize.
Width
;
1893
if(headerTextSize.
Width
> subColumnSizes[currentColumn, currentSubColumn])
1896
subColumnSizes[currentColumn, currentSubColumn] = headerTextSize.
Width
;
1902
(int)Math.Max(subColumnSizes[currentColumn, currentSubColumn], legendColumn.MinimumWidth * singleWCharacterSize.
Width
/ 100f);
1907
(int)Math.Min(subColumnSizes[currentColumn, currentSubColumn], legendColumn.MaximumWidth * singleWCharacterSize.
Width
/ 100f);
2006
totalTableColumnSpacingWidth += this.GetSeparatorSize(this.ItemColumnSeparator).
Width
;
2025
horizontalSpaceLeft = legendItemsAreaSize.
Width
- totalWidth - totalTableColumnSpacingWidth;
2495
separatorRect.X += this.GetBorderSize() + this._offset.
Width
;
2496
separatorRect.Width = this.GetSeparatorSize(this.ItemColumnSeparator).
Width
;
3977
titleMaxSize.Width -= this.GetBorderSize() * 2 + this._offset.
Width
;
3988
titleSize.Width += this._offset.
Width
;
4015
headerSize.Width += this._offset.
Width
;
4226
prevRightLocation += this.GetSeparatorSize(this.ItemColumnSeparator).
Width
;
4317
rect.X += this._offset.
Width
;
4319
rect.Width -= this.GetBorderSize() * 2 + this._offset.
Width
;
Common\General\LegendColumns.cs (16)
403
if(value.
Width
< 0 || value.Height < 0)
1194
if(value.
Width
< 0 || value.Height < 0)
1220
if(value.
Width
< 0 || value.Height < 0)
1447
this.cellPosition.X += (int)(this.Margins.Left * singleWCharacterSize.
Width
/ 100f);
1449
this.cellPosition.Width -= (int)(this.Margins.Left * singleWCharacterSize.
Width
/ 100f)
1450
+ (int)(this.Margins.Right * singleWCharacterSize.
Width
/ 100f);
1500
cellSize.Width = (int)(Math.Abs(this.SeriesSymbolSize.
Width
) * singleWCharacterSize.
Width
/ 100f);
1518
cellSize.Width = (int)(Math.Abs(this.ImageSize.
Width
) * singleWCharacterSize.
Width
/ 100f);
1538
cellSize.Width += (int)((this.Margins.Left + this.Margins.Right) * singleWCharacterSize.
Width
/ 100f);
2109
if(this.ImageSize.
Width
> 0)
2111
int newWidth = (int)(this.ImageSize.
Width
* singleWCharacterSize.
Width
/ 100f);
2224
if(this.SeriesSymbolSize.
Width
>= 0)
2226
int newWidth = (int)(this.SeriesSymbolSize.
Width
* singleWCharacterSize.Width / 100f);
Common\Utilities\XmlSerializer.cs (1)
2724
writer.Write(((Size)obj).
Width
);
WinForm\ChartWinControl.cs (6)
743
chartPicture.Width = this.Size.
Width
;
1380
chartPicture.InspectChartDimensions(value.
Width
, value.Height);
2147
ControlPaint.DrawFocusRectangle(g, new Rectangle(1, 1, Size.
Width
- 2, Size.Height - 2));
2164
Rectangle topBorder = new Rectangle(1, 1, Size.
Width
- 2, 1);
2167
Rectangle rightBorder = new Rectangle(Size.
Width
- 2, 1, 1, Size.Height - 2);
2170
Rectangle bottomBorder = new Rectangle(1, Size.Height - 2, Size.
Width
- 2, 1);
System.Workflow.Activities (101)
Designers\SetStateDesigner.cs (2)
94
bounds.Left + margin.
Width
,
97
bounds.Width - margin.
Width
* 2,
Designers\StateDesigner.cs (5)
1463
Size newSize = new Size(this.Size.
Width
, this.Size.Height + ((maximumY + DefaultStateDesignerAutoLayoutDistance) - this.Bounds.Bottom));
1503
bounds.Offset(Separator.
Width
- this.Location.X, Separator.Height - this.Location.Y);
1504
newSize.Width = Math.Max(newSize.
Width
, bounds.Right);
1508
newSize.Width = Math.Max(newSize.
Width
, this.MinimumSize.
Width
);
Designers\StateDesigner.Layouts.cs (53)
449
int width = _imageSize.
Width
+ ImagePadding + _textSize.
Width
;
450
width += ambientTheme.Margin.
Width
* 2;
462
origin.X += ambientTheme.Margin.
Width
;
465
origin.X += _imageSize.
Width
+ ImagePadding;
647
int maxEventDrivenWidth = newSize.
Width
- (EventDrivenPadding * 2);
651
if (size.
Width
> maxEventDrivenWidth)
668
int layoutWidth = layout.Size.
Width
+ 2 * (selectionSize.
Width
+ ambientTheme.Margin.
Width
);
669
minimumSize.Width = Math.Max(minimumSize.
Width
, layoutWidth);
678
size.Width = Math.Max(containerSize.
Width
, minimumSize.Height);
773
size.Width += layout.Size.
Width
+ _breadCrumbSeparatorSize.
Width
;
788
location.X += layout.Size.
Width
+ _breadCrumbSeparatorSize.
Width
;
811
_breadCrumbSeparatorSize.
Width
,
969
minimumSize.Width = designerTheme.BorderWidth * 2 + 10 + _textLayout.Size.
Width
+ _imageLayout.Size.
Width
;
975
size.Width = Math.Max(minimumSize.
Width
, containerSize.
Width
);
983
origin.X += margin.
Width
;
1044
int maxStringWidth = _textLayout.Size.
Width
;
1045
int xPos = (this.Location.X + this.Size.
Width
/ 2 - maxStringWidth / 2);
1049
if ((xPos + maxStringWidth) > (this.Bounds.Right - margin.
Width
))
1050
maxStringWidth = (this.Bounds.Right - margin.
Width
) - xPos;
1103
minimumSize.Width = Math.Max(minimumSize.
Width
, RealMinimumSize.
Width
);
1132
int minWidth = Math.Max(_titleBarLayout.MinimumSize.
Width
, _eventHandlersLayout.MinimumSize.
Width
);
1136
size.Width = Math.Max(minWidth, size.
Width
);
1141
int maximumX = size.
Width
;
1159
maximumX = Math.Max(maximumX, designer.Size.
Width
);
1172
_titleBarLayout.ResizeLayout(new Size(size.
Width
, _titleBarLayout.Size.Height));
1204
Size size = new Size(this.Size.
Width
, this.Size.Height - _titleBarLayout.Bounds.Height);
1244
_eventHandlersLayout.ResizeLayout(new Size(newSize.
Width
, _eventHandlersLayout.Size.Height));
1245
_titleBarLayout.ResizeLayout(new Size(newSize.
Width
, _titleBarLayout.Size.Height));
1320
size.Width = Math.Max(size.
Width
, minSize.
Width
);
1331
size.Width = Math.Max(size.
Width
, activeDesignerSize.
Width
+ ActiveDesignerPadding * 2);
1332
size.Width = Math.Max(size.
Width
, _titleBarLayout.Size.
Width
);
1333
size.Width = Math.Max(size.
Width
, _breadCrumbBarLayout.Size.
Width
);
1342
_titleBarLayout.ResizeLayout(new Size(size.
Width
, _titleBarLayout.Size.Height));
1347
size.Width = Math.Max(size.
Width
, activeDesigner.Size.
Width
+ ActiveDesignerPadding * 2);
1348
size.Width = Math.Max(size.
Width
, _designerLayout.Size.
Width
);
1377
bounds.Left + (bounds.Width - _designerLayout.Size.
Width
) / 2,
1385
origin.X = bounds.Left + (bounds.Width - activeDesignerSize.
Width
) / 2;
1406
_titleBarLayout.ResizeLayout(new Size(newSize.
Width
, _titleBarLayout.Size.Height));
Designers\StateDesignerConnector.cs (4)
174
Size arrowCapSize = new Size(theme.ConnectorSize.
Width
/ 5, theme.ConnectorSize.Height / 5);
211
Size arrowCapSize = new Size(theme.ConnectorSize.
Width
/ 5, theme.ConnectorSize.Height / 5);
229
Rectangle bounds = new Rectangle(point.X - size.
Width
/ 2, point.Y - size.Height / 2, size.
Width
, size.Height);
Designers\StateMachineDesignerPaint.cs (19)
44
textSize = graphics.MeasureString(text, font, new SizeF(maxSize.
Width
, maxSize.Height), format);
121
int capSize = (startSegment[0].Y == startSegment[1].Y) ? connectorCapSize.
Width
: connectorCapSize.Height;
123
capSize = Math.Min(Math.Min(capSize, maxCapSize.
Width
), maxCapSize.Height);
148
int capSize = (endSegment[0].Y == endSegment[1].Y) ? connectorCapSize.
Width
: connectorCapSize.Height;
150
capSize = Math.Min(Math.Min(capSize, maxCapSize.
Width
), maxCapSize.Height);
387
lineCapPath.AddLine(capSize.
Width
/ 2, -capSize.Height, 0, 0);
388
lineCapPath.AddLine(0, 0, -capSize.
Width
/ 2, -capSize.Height);
389
lineCapPath.AddLine(-capSize.
Width
/ 2, -capSize.Height, 0, -capSize.Height + arcRadius);
390
lineCapPath.AddLine(0, -capSize.Height + arcRadius, capSize.
Width
/ 2, -capSize.Height);
396
lineCapPath.AddLine(0, -capSize.Height, capSize.
Width
/ 2, -capSize.Height / 2);
397
lineCapPath.AddLine(capSize.
Width
/ 2, -capSize.Height / 2, 0, 0);
398
lineCapPath.AddLine(0, 0, -capSize.
Width
/ 2, -capSize.Height / 2);
399
lineCapPath.AddLine(-capSize.
Width
/ 2, -capSize.Height / 2, 0, -capSize.Height);
404
lineCapPath.AddEllipse(new Rectangle(-capSize.
Width
/ 2, -capSize.Height, capSize.
Width
, capSize.Height));
409
lineCapPath.AddRectangle(new Rectangle(-capSize.
Width
/ 2, -capSize.Height, capSize.
Width
, capSize.Height));
415
lineCapPath.AddPath(ActivityDesignerPaint.GetRoundedRectanglePath(new Rectangle(-capSize.
Width
/ 2, -capSize.Height, capSize.
Width
, capSize.Height), arcRadius), true);
Designers\StateMachineWorkflowDesigner.cs (5)
81
minimumSize.Width = Math.Max(minimumSize.
Width
, MinSize.
Width
);
85
minimumSize.Width = Math.Max(minimumSize.
Width
, ParentView.ViewPortSize.
Width
- StateDesigner.Separator.
Width
* 2);
Designers\WhileDesigner.cs (6)
47
connectionPoint = new Point(imageRectangle.Right + e.AmbientTheme.Margin.
Width
/ 2, imageRectangle.Top + imageRectangle.Height / 2);
49
connectionPoint = new Point(textRectangle.Right + e.AmbientTheme.Margin.
Width
/ 2, textRectangle.Top + textRectangle.Height / 2);
51
connectionPoint = new Point(bounds.Left + bounds.Width / 2 + e.AmbientTheme.Margin.
Width
/ 2, bounds.Top + e.AmbientTheme.Margin.Height / 2);
56
points[1].X = bounds.Right - compositeDesignerTheme.ConnectorSize.
Width
/ 3;
58
points[2].X = bounds.Right - compositeDesignerTheme.ConnectorSize.
Width
/ 3;
87
containerSize.Width += 2 * compositeDesignerTheme.ConnectorSize.
Width
;
Rules\Design\Dialogs\IntellisenseTextBox.cs (7)
59
this.listBoxAutoComplete.Columns.Add(Messages.No, this.listBoxAutoComplete.Size.
Width
);
442
if (listboxRectangle.Right > topLevelControlSize.
Width
)
444
if (this.listBoxAutoComplete.Size.
Width
> topLevelControlSize.
Width
)
445
this.listBoxAutoComplete.Size = new Size(topLevelControlSize.
Width
, this.listBoxAutoComplete.Height);
447
locationInDialog = new Point(topLevelControlSize.
Width
- this.listBoxAutoComplete.Size.
Width
, locationInDialog.Y);
System.Workflow.ComponentModel (472)
AuthoringOM\Design\ActivityDesigner.cs (35)
237
value.Width = Math.Max(value.
Width
, MinimumSize.
Width
);
540
textRectangle.X = bounds.Left + ambientTheme.Margin.
Width
;
541
textRectangle.X += (Image != null) ? designerTheme.ImageSize.
Width
+ ambientTheme.Margin.
Width
: 0;
564
imageRectangle.X = bounds.Left + WorkflowTheme.CurrentTheme.AmbientTheme.Margin.
Width
;
1060
Bitmap designerImage = new Bitmap(Size.
Width
+ (4 * ambientTheme.Margin.
Width
), Size.Height + (4 * ambientTheme.Margin.Height), PixelFormat.Format32bppArgb);
1068
graphics.TranslateTransform(-Location.X + 2 * ambientTheme.Margin.
Width
, -Location.Y + 2 * ambientTheme.Margin.Height);
1714
requestedLineSize.Width += ((requestedLineSize.
Width
% Text.Length) > 0) ? 1 : 0;
1717
this.textSize.Width = MinimumSize.
Width
- 2 * e.AmbientTheme.Margin.
Width
;
1719
this.textSize.Width -= e.DesignerTheme.ImageSize.
Width
+ e.AmbientTheme.Margin.
Width
;
1720
this.textSize.Width = Math.Min(this.textSize.
Width
, actualTextSize.
Width
);
1721
this.textSize.Width = Math.Max(this.textSize.
Width
, requestedLineSize.
Width
);
1725
int textLines = actualTextSize.
Width
/ this.textSize.
Width
;
1726
textLines += ((actualTextSize.
Width
% this.textSize.
Width
) > 0) ? 1 : 0;
1736
size.Width = 2 * e.AmbientTheme.Margin.
Width
+ ((Image != null) ? (e.DesignerTheme.ImageSize.
Width
+ e.AmbientTheme.Margin.
Width
) : 0) + this.textSize.
Width
;
1978
using (Bitmap temporaryBitmap = new Bitmap(designerTheme.Size.
Width
, designerTheme.Size.Height, PixelFormat.Format32bppArgb))
3042
smartTagRectangle.X = rectangle.Left - margin.
Width
/ 2;
3044
smartTagRectangle.Width = imageSize.
Width
+ glyphSize.
Width
/ 2 + 3 * margin.
Width
;
3095
imageRectangle.X += margin.
Width
/ 2;
3102
dropDownRectangle.X += imageSize.
Width
+ 3 * margin.
Width
/ 2;
3104
dropDownRectangle.Width = glyphSize.
Width
/ 2;
AuthoringOM\Design\ActivityPreviewDesigner.cs (33)
160
this.previewStrip.Location = new Point(this.previewStrip.Location.X + moveDelta.
Width
, this.previewStrip.Location.Y + moveDelta.Height);
164
this.previewWindow.Location = new Point(this.previewWindow.Location.X + moveDelta.
Width
, this.previewWindow.Location.Y + moveDelta.Height);
165
this.separatorLine[0] = new Point(this.separatorLine[0].X + moveDelta.
Width
, this.separatorLine[0].Y + moveDelta.Height);
166
this.separatorLine[1] = new Point(this.separatorLine[1].X + moveDelta.
Width
, this.separatorLine[1].Y + moveDelta.Height);
172
PreviewedDesigner.Location = new Point(Location.X + (Size.
Width
- PreviewedDesigner.Size.
Width
) / 2, Location.Y + headerHeight + 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height);
572
this.previewStrip.Location = new Point(bounds.Left + bounds.Width / 2 - this.previewStrip.Size.
Width
/ 2, Location.Y + TitleHeight + e.AmbientTheme.Margin.Height);
581
this.previewWindow.Location = new Point(bounds.Left + bounds.Width / 2 - this.previewWindow.Size.
Width
/ 2, previewStripRectangle.Bottom + 3 * e.AmbientTheme.Margin.Height);
583
this.separatorLine[0].X = bounds.Left + e.AmbientTheme.Margin.
Width
;
587
this.separatorLine[1].X = bounds.Right - e.AmbientTheme.Margin.
Width
;
595
PreviewedDesigner.Location = new Point(Location.X + (Size.
Width
- PreviewedDesigner.Size.
Width
) / 2, Location.Y + headerHeight + 2 * e.AmbientTheme.Margin.Height);
613
containerSize.Width = Math.Max(containerSize.
Width
, this.previewStrip.Size.
Width
);
620
this.previewWindow.OnLayoutSize(e.Graphics, containerSize.
Width
);
622
containerSize.Width = Math.Max(containerSize.
Width
, this.previewWindow.Size.
Width
);
623
containerSize.Width += 2 * e.AmbientTheme.Margin.
Width
;
631
containerSize.Width = Math.Max(containerSize.
Width
, size.
Width
);
632
containerSize.Width += 3 * e.AmbientTheme.Margin.
Width
;
633
containerSize.Width += 2 * e.AmbientTheme.SelectionSize.
Width
;
637
containerSize.Width = Math.Max(containerSize.
Width
, MinimumSize.
Width
);
650
Size margins = new Size(2 * e.AmbientTheme.Margin.
Width
+ 2 * e.AmbientTheme.SelectionSize.
Width
, 2 * e.AmbientTheme.Margin.Height + 2 * e.AmbientTheme.SelectionSize.Height);
651
PreviewedDesigner.Size = new Size(containerSize.
Width
- margins.
Width
, containerSize.Height - (TitleHeight + this.previewStrip.Size.Height + margins.Height));
799
dropConnector.Width = (dropConnector.Width > ((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0)) ? ((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0) : dropConnector.Width;
988
configErrorSize.Width = configErrorSize.
Width
* 3 / 4;
991
Point configErrorLocation = new Point(rectangle.Right - configErrorSize.
Width
/ 2, rectangle.Top - configErrorSize.Height / 2);
998
rectangle.Inflate(ambientTheme.Margin.
Width
/ 2, ambientTheme.Margin.Height / 2);
AuthoringOM\Design\CommandSet.cs (2)
289
int newZoom = (int)(100.0f / this.workflowView.ActiveLayout.Scaling * Math.Min((float)this.workflowView.ViewPortSize.
Width
/ (float)this.workflowView.ActiveLayout.Extent.
Width
, (float)this.workflowView.ViewPortSize.Height / (float)this.workflowView.ActiveLayout.Extent.Height));
AuthoringOM\Design\CompositeActivityDesigner.cs (21)
216
activityDesigner.Location = new Point(activityDesigner.Location.X + moveDelta.
Width
, activityDesigner.Location.Y + moveDelta.Height);
244
expandButtonRectangle.X += (bounds.Width - ((3 * designerTheme.ExpandButtonSize.
Width
/ 2) + anchorSize.
Width
)) / 2;
303
if (textSize.
Width
> 0)
305
imageRectangle.X += (bounds.Width - imageSize.
Width
) / 2;
309
imageRectangle.X += (bounds.Width - (imageSize.
Width
+ 3 * expandButtonSize.
Width
/ 2)) / 2;
310
imageRectangle.X += 3 * expandButtonSize.
Width
/ 2;
336
int maxAvailableWidth = bounds.Width - (2 * margin.
Width
+ 3 * expandButtonSize.
Width
/ 2);
340
requestedLineSize.Width += ((requestedLineSize.
Width
% Text.Length) > 0) ? 1 : 0;
344
textSize.Width = Math.Min(maxAvailableWidth, this.actualTextSize.
Width
);
345
textSize.Width = Math.Max(1, Math.Max(textSize.
Width
, requestedLineSize.
Width
));
348
int textLines = this.actualTextSize.
Width
/ textSize.
Width
;
349
textLines += ((this.actualTextSize.
Width
% textSize.
Width
) > 0) ? 1 : 0;
355
textRectangle.X += (bounds.Width - (3 * expandButtonSize.
Width
/ 2 + textSize.
Width
)) / 2;
356
textRectangle.X += 3 * expandButtonSize.
Width
/ 2;
AuthoringOM\Design\Connector.cs (18)
137
Rectangle enclosingBounds = new Rectangle(new Point(location.X - size.
Width
/ 2, location.Y - size.Height / 2), size);
186
defaultSize.Width += defaultSize.
Width
/ 2;
189
defaultSize = new Size(Math.Max(defaultSize.
Width
, (int)this.associatedDesigner.DesignerTheme.ForegroundPen.Width * 4), Math.Max(defaultSize.Height, (int)this.associatedDesigner.DesignerTheme.ForegroundPen.Width * 4));
346
this.segments[i] = new Point(this.segments[i].X + size.
Width
, this.segments[i].Y + size.Height);
443
Size arrowCapSize = new Size(theme.ConnectorSize.
Width
/ 5, theme.ConnectorSize.Height / 5);
457
Size arrowCapSize = new Size(theme.ConnectorSize.
Width
/ 5, theme.ConnectorSize.Height / 5);
485
Size arrowCapSize = new Size(theme.ConnectorSize.
Width
/ 5, theme.ConnectorSize.Height / 5);
518
Rectangle bounds = new Rectangle(point.X - size.
Width
/ 2, point.Y - size.Height / 2, size.
Width
, size.Height);
1496
return new Rectangle(this.point.X - controlPointSize.
Width
/ 2, this.point.Y - controlPointSize.Height / 2, controlPointSize.
Width
, controlPointSize.Height);
1530
Point[] routedPoints = ConnectorRouter.Route(sourcePoint, targetPoint, new Size(2 * ambientTheme.Margin.
Width
, 2 * ambientTheme.Margin.Height), rootDesigner.Bounds, rectanglesToExclude.ToArray(), linesToExclude.ToArray(), pointsToExclude.ToArray());
1826
int width = Math.Max(margin.
Width
/ 2, 1), height = Math.Max(margin.Height / 2, 1);
2128
r2.X -= margin.
Width
;
2174
r4.X += margin.
Width
;
2253
escapePoint = new Point(p.X + direction.X * margin.
Width
, Z.Y);
2474
int steps = Math.Max(Math.Abs(direction.X / margin.
Width
), Math.Abs(direction.Y / margin.Height)); //one of the values will be null
2480
Point k = new Point(a1.X + i * margin.
Width
* direction.X, a1.Y + i * margin.Height * direction.Y);
AuthoringOM\Design\DesignerHelpers.cs (67)
76
textSize = graphics.MeasureString(text, font, new SizeF(maxSize.
Width
, maxSize.Height), format);
203
rectangle.Width = Math.Min(size.
Width
, destination.Width);
242
selectionRect.Inflate(selectionSize.
Width
, selectionSize.Height);
244
selectionRect.Inflate(-selectionSize.
Width
/ 2, -selectionSize.Height / 2);
247
selectionRect.Inflate(selectionSize.
Width
/ 2, selectionSize.Height / 2);
332
gridStart.X = viewableRectangle.X - (viewableRectangle.X % ambientTheme.GridSize.
Width
);
335
for (int gridCoOrdX = gridStart.X; gridCoOrdX <= viewableRectangle.Right; gridCoOrdX += Math.Max(ambientTheme.GridSize.
Width
, 1))
341
if (((gridCoOrdX + ambientTheme.GridSize.
Width
/ 2) >= viewableRectangle.Left && (gridCoOrdX + ambientTheme.GridSize.
Width
/ 2) <= viewableRectangle.Right) &&
343
graphics.FillRectangle(ambientTheme.MinorGridBrush, new Rectangle(new Point(gridCoOrdX + ambientTheme.GridSize.
Width
/ 2, gridCoOrdY + ambientTheme.GridSize.Height / 2), new Size(1, 1)));
449
shadowRectangle.Offset(offset.
Width
, offset.Height);
515
bounds.Inflate(-margin.
Width
, -margin.Height);
546
bounds.X -= inflate.
Width
;
547
bounds.Width += inflate.
Width
;
551
bounds.Width += inflate.
Width
;
600
int capSize = (startSegment[0].Y == startSegment[1].Y) ? connectorCapSize.
Width
: connectorCapSize.Height;
602
capSize = Math.Min(Math.Min(capSize, maxCapSize.
Width
), maxCapSize.Height);
630
int capSize = (endSegment[0].Y == endSegment[1].Y) ? connectorCapSize.
Width
: connectorCapSize.Height;
632
capSize = Math.Min(Math.Min(capSize, maxCapSize.
Width
), maxCapSize.Height);
705
lineCapPath.AddLine(capSize.
Width
/ 2, -capSize.Height, 0, 0);
706
lineCapPath.AddLine(0, 0, -capSize.
Width
/ 2, -capSize.Height);
707
lineCapPath.AddLine(-capSize.
Width
/ 2, -capSize.Height, 0, -capSize.Height + arcRadius);
708
lineCapPath.AddLine(0, -capSize.Height + arcRadius, capSize.
Width
/ 2, -capSize.Height);
714
lineCapPath.AddLine(0, -capSize.Height, capSize.
Width
/ 2, -capSize.Height / 2);
715
lineCapPath.AddLine(capSize.
Width
/ 2, -capSize.Height / 2, 0, 0);
716
lineCapPath.AddLine(0, 0, -capSize.
Width
/ 2, -capSize.Height / 2);
717
lineCapPath.AddLine(-capSize.
Width
/ 2, -capSize.Height / 2, 0, -capSize.Height);
722
lineCapPath.AddEllipse(new Rectangle(-capSize.
Width
/ 2, -capSize.Height, capSize.
Width
, capSize.Height));
727
lineCapPath.AddRectangle(new Rectangle(-capSize.
Width
/ 2, -capSize.Height, capSize.
Width
, capSize.Height));
733
lineCapPath.AddPath(GetRoundedRectanglePath(new Rectangle(-capSize.
Width
/ 2, -capSize.Height, capSize.
Width
, capSize.Height), arcRadius), true);
784
scrollIndicatorPath.AddLine(bounds.Left + (bounds.Width - arrowSize.
Width
) / 2, bounds.Top, bounds.Left + (bounds.Width - arrowSize.
Width
) / 2, bounds.Top + arrowSize.Height);
785
scrollIndicatorPath.AddLine(bounds.Left + (bounds.Width - arrowSize.
Width
) / 2, bounds.Top + arrowSize.Height, bounds.Left + (bounds.Width - arrowSize.
Width
) / 2 + arrowSize.
Width
, bounds.Top + midPoint);
786
scrollIndicatorPath.AddLine(bounds.Left + (bounds.Width - arrowSize.
Width
) / 2 + arrowSize.
Width
, bounds.Top + midPoint, bounds.Left + (bounds.Width - arrowSize.
Width
) / 2, bounds.Top);
790
scrollIndicatorPath.AddLine(bounds.Left + (bounds.Width - arrowSize.
Width
) / 2, bounds.Top + midPoint, bounds.Left + (bounds.Width - arrowSize.
Width
) / 2 + arrowSize.
Width
, bounds.Top + arrowSize.Height);
791
scrollIndicatorPath.AddLine(bounds.Left + (bounds.Width - arrowSize.
Width
) / 2 + arrowSize.
Width
, bounds.Top + arrowSize.Height, bounds.Left + (bounds.Width - arrowSize.
Width
) / 2 + arrowSize.
Width
, bounds.Top);
792
scrollIndicatorPath.AddLine(bounds.Left + (bounds.Width - arrowSize.
Width
) / 2 + arrowSize.
Width
, bounds.Top, bounds.Left + (bounds.Width - arrowSize.
Width
) / 2, bounds.Top + midPoint);
803
scrollIndicatorPath.AddLine(bounds.Left, bounds.Top + (bounds.Height - arrowSize.Height) / 2, bounds.Left + arrowSize.
Width
, bounds.Top + (bounds.Height - arrowSize.Height) / 2);
804
scrollIndicatorPath.AddLine(bounds.Left + arrowSize.
Width
, bounds.Top + (bounds.Height - arrowSize.Height) / 2, bounds.Left + midPoint, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height);
809
scrollIndicatorPath.AddLine(bounds.Left + midPoint, bounds.Top + (bounds.Height - arrowSize.Height) / 2, bounds.Left + arrowSize.
Width
, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height);
810
scrollIndicatorPath.AddLine(bounds.Left + arrowSize.
Width
, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height, bounds.Left, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height);
1028
gridStart.X = viewableRectangle.X - (viewableRectangle.X % gridUnit.
Width
);
1034
for (int gridCoOrd = gridStart.X; gridCoOrd <= viewableRectangle.Right; gridCoOrd += Math.Max(gridUnit.
Width
, 1))
1045
if (showMinorGrid && (gridCoOrd + gridUnit.
Width
/ 2) >= viewableRectangle.Left && (gridCoOrd + gridUnit.
Width
/ 2) <= viewableRectangle.Right)
1051
if (!NativeMethods.MoveToEx(this.hdc, gridCoOrd + gridUnit.
Width
/ 2, viewableRectangle.Top + 1, null))
1054
if (!NativeMethods.LineTo(this.hdc, gridCoOrd + gridUnit.
Width
/ 2, viewableRectangle.Bottom - 1))
1190
location.X = ((location.X / snapSize.
Width
) * snapSize.
Width
) + (((location.X % snapSize.
Width
) > snapSize.
Width
/ 2) ? snapSize.
Width
: 0);
1908
if (distance < hitAreaSize.
Width
&& distance < hitAreaSize.Height)
AuthoringOM\Design\DesignerWidgets.cs (74)
160
buttonBounds.Inflate(-base.itemStrip.ItemSize.
Width
/ 6, -base.itemStrip.ItemSize.Height / 4);
162
buttonBounds.Inflate(-base.itemStrip.ItemSize.
Width
/ 4, -base.itemStrip.ItemSize.Height / 6);
169
buttonBounds.Inflate(inflateSize.
Width
, inflateSize.Height);
174
buttonBounds.Inflate(-inflateSize.
Width
, -inflateSize.Height);
276
this.buttonSize = new Size(itemSize.
Width
* 2 / 3, itemSize.Height);
278
this.buttonSize = new Size(itemSize.
Width
, itemSize.Height * 2 / 3);
366
availableSize = this.bounds.Width - (2 * (2 * this.margin.
Width
+ this.buttonSize.
Width
));
367
availableSize -= this.margin.
Width
;
368
if (this.margin.
Width
+ this.itemStrip.ItemSize.
Width
> 0)
369
availableSize -= (availableSize % (this.margin.
Width
+ this.itemStrip.ItemSize.
Width
));
370
this.itemStrip.Size = new Size(Math.Min(availableSize, reqdSize.
Width
), Math.Min(this.bounds.Height, reqdSize.Height));
378
this.itemStrip.Size = new Size(Math.Min(this.bounds.Width, reqdSize.
Width
), Math.Min(availableSize, reqdSize.Height));
480
buttonRectangle.X = this.bounds.X + this.margin.
Width
;
487
buttonRectangle.X = this.bounds.X + this.margin.
Width
+ buttonRectangle.Size.
Width
+ this.itemStrip.Size.
Width
;
489
buttonRectangle.X = this.bounds.Right - buttonRectangle.Size.
Width
;
495
buttonRectangle.X = this.bounds.X + this.margin.
Width
;
715
itemRectangle.X = bounds.Left + (itemIndex * this.itemSize.
Width
) + ((itemIndex + 1) * this.margin.
Width
);
720
itemRectangle.X = bounds.Left + this.margin.
Width
;
754
reqdSize.Width = (this.items.Count * this.itemSize.
Width
) + ((this.items.Count + 1) * this.margin.
Width
);
759
reqdSize.Width = this.itemSize.
Width
+ 2 * this.margin.
Width
;
841
int totalStripSize = this.bounds.Width - this.margin.
Width
;
842
visibleItemCount = totalStripSize / Math.Max((this.itemSize.
Width
+ this.margin.
Width
), 1);
1342
maxTextSize.Width = Math.Max(Convert.ToInt32(Math.Ceiling(size.Width)), maxTextSize.
Width
);
1346
maxTextSize.Width = Math.Min(maxTextSize.
Width
, this.maximumTextWidth);
1349
this.itemWidth = this.imageRectangle.
Width
+ 2 * this.selectionItemMargin.
Width
+ this.leftTextMargin + maxTextSize.
Width
+ this.rightTextMargin;
1810
tabItemSize += this.drawItems[i].TextSize.
Width
;
1981
tabItemSize += this.drawItems[i].TextSize.
Width
+ TabMargin;
2537
rectangles[j].X = stripRectangle.Left + (i * (itemSize.
Width
+ itemMargin.
Width
));
2539
rectangles[j].Size = new Size(itemMargin.
Width
, itemSize.Height + itemMargin.Height);
2564
itemRectangle.X = stripRectangle.Left + (itemIndex * itemSize.
Width
) + ((itemIndex + 1) * itemMargin.
Width
);
2659
this.bounds.Width = 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.
Width
;
2660
this.bounds.Width += (itemSize.
Width
* ((designerTheme != null) ? designerTheme.PreviewItemCount : 0));
2661
this.bounds.Width += (itemMargin.
Width
* (((designerTheme != null) ? designerTheme.PreviewItemCount : 0) + 1));
2662
this.bounds.Width += GetButtonBounds(ScrollButton.Left).Size.
Width
;
2663
this.bounds.Width += GetButtonBounds(ScrollButton.Right).Size.
Width
;
2711
int selectionSize = Math.Max(Math.Min(itemMargin.
Width
/ 4, itemMargin.Height / 2), 1);
2758
dropTargets[activeDropTarget].Width = itemMargin.
Width
;
2831
stripRectangle.X = scrollLeftButton.Right + margin.
Width
;
2833
stripRectangle.Width = (scrollRightButton.Left - margin.
Width
) - (scrollLeftButton.Right + margin.
Width
);
2846
scrollButtonSize.Height = Math.Min(scrollButtonSize.
Width
, Math.Min(scrollButtonSize.Height, ItemSize.Height));
2847
scrollButtonSize.Width = Math.Min(scrollButtonSize.
Width
, scrollButtonSize.Height);
2849
int startLocation = (scrollButton == ScrollButton.Left) ? this.bounds.X : this.bounds.Right - scrollButtonSize.
Width
;
2893
return new Size(itemSize.
Width
/ 2, itemSize.Height / 4);
3245
descRectanglePos.X = this.bounds.Left + this.bounds.Width / 2 - this.previewModeDescRectangle.Width / 2 + this.previewModeButtonRectangle.Width + margin.
Width
;
3250
previewModeBitmapPos.X = descRectanglePos.X - (this.previewModeButtonRectangle.Width + margin.
Width
);
3260
location.X = this.canvasBounds.Left + this.canvasBounds.Width / 2 - PreviewDesigner.Size.
Width
/ 2;
3375
this.canvasBounds.Inflate(margin.
Width
* 2, margin.Height * 2);
3376
this.canvasBounds.Size = new Size(Math.Max(this.canvasBounds.Width, designerTheme.PreviewWindowSize.
Width
), Math.Max(this.canvasBounds.Height, designerTheme.PreviewWindowSize.Height));
3387
this.previewDescTextSize.Width = Math.Min(this.canvasBounds.Size.
Width
- margin.
Width
- this.previewModeButtonRectangle.Size.
Width
, this.previewDescTextSize.
Width
);
3394
totalSize.Width = this.canvasBounds.Width + 2 * margin.
Width
;
3444
descriptionRectangle.Inflate(-margin.
Width
, -margin.Height);
3459
Size maxBitmapSize = new Size(this.canvasBounds.Width - 2 * margin.
Width
, this.canvasBounds.Height - 2 * margin.Height);
3460
double stretchFactor = ((double)previewedActivityImage.Width) / maxBitmapSize.
Width
;
3474
indicatorBounds.Inflate(-margin.
Width
, -margin.Height);
3482
previewDesignerViewPort.Inflate(margin.
Width
, margin.Height);
3564
float stretchFactor = ((float)previewSize.
Width
) / previewDesignerSize.
Width
;
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (7)
545
e.Graphics.DrawRectangle(SystemPens.ControlDark, 0, 0, this.themePanel.ClientSize.
Width
- 1, this.themePanel.ClientSize.Height - 2);
558
e.Graphics.DrawLine(framePen, this.designerPreview.Left - margin.
Width
, this.designerPreview.Top - 1, this.designerPreview.Right + margin.
Width
, this.designerPreview.Top - 1);
559
e.Graphics.DrawLine(framePen, this.designerPreview.Left - margin.
Width
, this.designerPreview.Bottom + 1, this.designerPreview.Right + margin.
Width
, this.designerPreview.Bottom + 1);
1218
PointF zoom = new PointF((float)size.
Width
/ (float)maxExtent.
Width
, (float)size.Height / (float)maxExtent.Height);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
809
this.helpTextWindow.Size = new Size(this.helpTextHolder.Size.
Width
- 6, this.helpTextHolder.Size.Height - 6);
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (1)
1079
if (horizontalMarginsSum < physicalPageSize.
Width
&& verticalMarginsSum < physicalPageSize.Height)
AuthoringOM\Design\FreeFormDesigner.cs (6)
176
margin.Width += gridSize.
Width
/ 2;
253
minimumSize.Width = Math.Max(minimumSize.
Width
, workflowView.ViewPortSize.
Width
- 2 * WorkflowRootLayout.Separator.
Width
);
262
minimumSize.Width = Math.Max(minimumSize.
Width
, childRectangle.Width);
919
designer.Location = new Point(location.X + autoSizeMargin.
Width
, location.Y + autoSizeMargin.Height);
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (5)
52
Point configErrorLocation = new Point(designer.Bounds.Right - configErrorSize.
Width
- margin.
Width
/ 2, designer.Bounds.Top - configErrorSize.Height + margin.Height);
59
bounds.Inflate(ambientTheme.Margin.
Width
/ 2, ambientTheme.Margin.Height / 2);
86
activatedBounds.X += bounds.Width + ambientTheme.Margin.
Width
;
87
activatedBounds.Width -= (bounds.Width + 2 * ambientTheme.Margin.
Width
);
AuthoringOM\Design\Glyphs\ConnectorDragDropGlyph.cs (1)
21
this.glyphPoint = new Point(connectorCenter.X - ambientTheme.DropIndicatorSize.
Width
/ 2, connectorCenter.Y - ambientTheme.DropIndicatorSize.Height / 2);
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (11)
21
rectangle.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize.
Width
/ 2, WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize.Height / 2);
43
Size grabHandleSize = new Size(selectionSize.
Width
, selectionSize.Height);
45
selectionRect.Inflate(selectionSize.
Width
, selectionSize.Height);
56
grabHandles[1] = new Rectangle(new Point(selectionRect.Left + (selectionRect.Width - grabHandleSize.
Width
) / 2, selectionRect.Top), grabHandleSize);
57
grabHandles[2] = new Rectangle(selectionRect.Right - grabHandleSize.
Width
, selectionRect.Top, grabHandleSize.
Width
, grabHandleSize.Height);
58
grabHandles[3] = new Rectangle(new Point(selectionRect.Right - grabHandleSize.
Width
, selectionRect.Top + (selectionRect.Height - grabHandleSize.Height) / 2), grabHandleSize);
59
grabHandles[4] = new Rectangle(selectionRect.Right - grabHandleSize.
Width
, selectionRect.Bottom - grabHandleSize.Height, grabHandleSize.
Width
, grabHandleSize.Height);
60
grabHandles[5] = new Rectangle(new Point(selectionRect.Left + (selectionRect.Width - grabHandleSize.
Width
) / 2, selectionRect.Bottom - grabHandleSize.Height), grabHandleSize);
61
grabHandles[6] = new Rectangle(selectionRect.Left, selectionRect.Bottom - grabHandleSize.Height, grabHandleSize.
Width
, grabHandleSize.Height);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (9)
143
indicatorSize.Width += 2 * ambientTheme.Margin.
Width
;
145
return (viewPortSize.
Width
> 2 * indicatorSize.
Width
&& viewPortSize.Height > 2 * indicatorSize.Height);
160
scrollIndicatorRectangles[0].X = indicatorMargins.
Width
;
165
scrollIndicatorRectangles[1].X = clientRectangle.Right - indicatorMargins.
Width
- scrollIndicatorSize.
Width
;
170
scrollIndicatorRectangles[2].X = (clientRectangle.Width - scrollIndicatorSize.
Width
) / 2;
175
scrollIndicatorRectangles[3].X = (clientRectangle.Width - scrollIndicatorSize.
Width
) / 2;
216
if (scrollPosition.X < parentView.HScrollBar.Maximum - viewPortSize.
Width
)
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (1)
125
(Math.Abs(this.initialDragPoint.Value.X - logicalPoint.X) > SystemInformation.DragSize.
Width
||
AuthoringOM\Design\MessageFilters\DragDropManager.cs (8)
117
else if (parentView.RootDesigner != null && this.dragStarted && (eventArgs.Button & MouseButtons.Left) > 0 && (Math.Abs(this.dragInitiationPoint.X - logicalPoint.X) > SystemInformation.DragSize.
Width
|| Math.Abs(this.dragInitiationPoint.Y - logicalPoint.Y) > SystemInformation.DragSize.Height))
272
this.dragImagePointInClientCoOrd = new Point(clientPoint.X + SystemInformation.CursorSize.
Width
/ 4, clientPoint.Y + SystemInformation.CursorSize.Height / 4);
306
this.dragImagePointInClientCoOrd = new Point(midPointInClientCoOrd.X - dragImageIconSize.
Width
/ 2, midPointInClientCoOrd.Y - dragImageIconSize.Height / 2);
332
this.dragImagePointInClientCoOrd = new Point(clientPoint.X + SystemInformation.CursorSize.
Width
/ 4, clientPoint.Y + SystemInformation.CursorSize.Height / 4);
383
this.dragImagePointInClientCoOrd = new Point(midPointInClientCoOrd.X - dragImageIconSize.
Width
/ 2, midPointInClientCoOrd.Y - dragImageIconSize.Height / 2);
674
Rectangle descriptionRectangle = (description.Length > 0) ? new Rectangle(Point.Empty, new Size(AmbientTheme.DragImageTextSize.
Width
, parentView.Font.Height + 2)) : Rectangle.Empty;
676
descriptionRectangle.Offset(imageRectangle.Width + AmbientTheme.DragImageMargins.
Width
, 0);
679
draggedImage = new Bitmap(draggedImageSize.
Width
, draggedImageSize.Height, PixelFormat.Format32bppArgb);
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (1)
66
(Math.Abs(this.startDrag.X - logicalPoint.X) > (int)(dragMultiply * (float)SystemInformation.DragSize.
Width
) || Math.Abs(this.startDrag.Y - logicalPoint.Y) > (int)(dragMultiply * (float)SystemInformation.DragSize.Height)))
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (7)
324
bounds.Inflate(-action.DockMargin.
Width
, -action.DockMargin.Height);
570
size.Width = (2 * borderSize.
Width
) + (buttonCount * this.buttonSize.
Width
) + ((buttonCount + 1) * this.margin.
Width
);
582
rectangle.X = this.borderSize.
Width
+ (buttonIndex * this.buttonSize.
Width
) + ((buttonIndex + 1) * this.margin.
Width
);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (3)
170
ActivityDesignerPaint.DrawImage(eventArgs.Graphics, this.draggedDesignerImages[i], new Rectangle(new Point(locations[i].X - 2 * ambientTheme.Margin.
Width
, locations[i].Y - 2 * ambientTheme.Margin.Height), imageSize), new Rectangle(Point.Empty, imageSize), DesignerContentAlignment.Fill, 0.4f, false);
233
rectangle.Inflate(2 * ambientTheme.Margin.
Width
, 2 * ambientTheme.Margin.Height);
256
location = new Point(designerToMove.Location.X + delta.
Width
, designerToMove.Location.Y + delta.Height);
AuthoringOM\Design\MessageFilters\PanningMessageFilter.cs (1)
76
parentView.ScrollPosition = new Point(parentView.ScrollPosition.X - panSize.
Width
, parentView.ScrollPosition.Y - panSize.Height);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (6)
195
if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Top), new Point(designerBounds.Left, designerBounds.Bottom) })) <= selectionSize.
Width
+ 1)
199
if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Right, designerBounds.Top), new Point(designerBounds.Right, designerBounds.Bottom) })) <= selectionSize.
Width
+ 1)
279
clipBounds.Inflate(-2 * selectionSize.
Width
, -2 * selectionSize.Height);
291
int delta = (designerBounds.Width < designerToSize.MinimumSize.
Width
) ? designerBounds.Width - designerToSize.MinimumSize.
Width
: 0;
314
designerBounds.Width = Math.Max(designerBounds.Width, designerToSize.MinimumSize.
Width
);
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (2)
119
Point center = new Point((this.currentState == ZoomState.In) ? eventArgs.X : parentView.ViewPortSize.
Width
/ 2, (this.currentState == ZoomState.In) ? eventArgs.Y : parentView.ViewPortSize.Height / 2);
171
int zoom = (int)(Math.Min((float)parentView.ViewPortSize.
Width
/ (float)dragRectangle.Width, (float)parentView.ViewPortSize.Height / (float)dragRectangle.Height) * 100.0f);
AuthoringOM\Design\ParallelActivityDesigner.cs (20)
227
width += e.AmbientTheme.SelectionSize.
Width
;
228
width += compositeDesignerTheme.ConnectorSize.
Width
;
231
width += designerSize.
Width
;
232
width += e.AmbientTheme.SelectionSize.
Width
;
252
containerSize.Width += e.AmbientTheme.SelectionSize.
Width
;
253
containerSize.Width += compositeDesignerTheme.ConnectorSize.
Width
;
254
containerSize.Width += childSize.
Width
;
255
containerSize.Width += e.AmbientTheme.SelectionSize.
Width
;
258
containerSize.Width += (ContainedDesigners.Count > 0) ? compositeDesignerTheme.ConnectorSize.
Width
: 0;
262
activityDesigner.Size = new Size(activityDesigner.Size.
Width
, containerSize.Height);
268
size.Width = Math.Max(size.
Width
, containerSize.
Width
);
290
dropTargets[0].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0), firstDesigner.Size.Height);
300
dropTargets[i + 1].Location = new Point(designerBounds1.Right + (designerBounds2.Left - designerBounds1.Right) / 2 - ((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0) / 2, designerBounds1.Top);
301
dropTargets[i + 1].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0), designerBounds1.Height);
306
dropTargets[containedDesigners.Count].Location = new Point(bounds.Right - ((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0), lastDesigner.Location.Y);
307
dropTargets[containedDesigners.Count].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0), lastDesigner.Size.Height);
311
dropTargets[0].Location = new Point(Location.X + (Size.
Width
- ((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0)) / 2, TextRectangle.Bottom);
312
dropTargets[0].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0), Location.Y + Size.Height - dropTargets[0].Location.Y);
AuthoringOM\Design\SequentialActivityDesigner.cs (22)
163
helpTextRectangle.X = connectors[0].Left + connectors[0].Width / 2 - this.helpTextSize.
Width
/ 2;
213
connectorBounds[0].Location = new Point(containerStartConnection.X - ((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0) / 2, containerStartConnection.Y);
214
connectorBounds[0].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0), startDesignerConnections[0].Y - containerStartConnection.Y);
226
connectorBounds[i + 1].Location = new Point(designerFromConnections[designerFromPointCount - 1].X - ((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0) / 2, designerFromConnections[designerFromPointCount - 1].Y);
227
connectorBounds[i + 1].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0), designerToConnections[0].Y - designerFromConnections[designerFromPointCount - 1].Y);
243
connectorBounds[connectorCount - 1].Location = new Point(endDesignerConnections[endDesignerConnections.Count - 1].X - ((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0) / 2, endDesignerConnections[endDesignerConnections.Count - 1].Y);
244
connectorBounds[connectorCount - 1].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0), containerEndConnection.Y - endDesignerConnections[endDesignerConnections.Count - 1].Y);
249
connectorBounds[0].Location = new Point(containerStartConnection.X - ((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0) / 2, containerStartConnection.Y);
250
connectorBounds[0].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.
Width
: 0), containerEndConnection.Y - containerStartConnection.Y);
463
activityDesigner.Location = new Point(location.X - (designerSize.
Width
/ 2), location.Y + height);
485
containerSize.Width = Math.Max(containerSize.
Width
, childSize.
Width
);
493
containerSize.Width = Math.Max(helpTextRectangle.Width, containerSize.
Width
);
498
containerSize.Width = Math.Max(containerSize.
Width
, compositeDesignerTheme.Size.
Width
);
499
containerSize.Width += 3 * e.AmbientTheme.Margin.
Width
;
500
containerSize.Width += 2 * e.AmbientTheme.SelectionSize.
Width
;
528
glyphLocation = new Point(connectors[i].Location.X + connectors[i].Size.
Width
/ 2 + 1, connectors[i].Location.Y + connectors[i].Size.Height / 2);
567
grabHandles[0] = new Rectangle(bounds.X + bounds.Width / 2 - ambientTheme.SelectionSize.
Width
/ 2, bounds.Y, ambientTheme.SelectionSize.
Width
, ambientTheme.SelectionSize.Height);
568
grabHandles[1] = new Rectangle(bounds.X + bounds.Width / 2 - ambientTheme.SelectionSize.
Width
/ 2, bounds.Bottom - ambientTheme.SelectionSize.Height, ambientTheme.SelectionSize.
Width
, ambientTheme.SelectionSize.Height);
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (2)
111
bounds.Width = Math.Max(imageBounds.Width, textBounds.Width) + 2 * margin.
Width
;
140
bounds.X = designerBounds.Left + designerBounds.Width / 2 - this.textSize.
Width
/ 2;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (8)
94
minimumSize.Width = Math.Max(minimumSize.
Width
, SequentialWorkflowRootDesigner.MinSize.
Width
);
95
minimumSize.Height = Math.Max(minimumSize.
Width
, SequentialWorkflowRootDesigner.MinSize.Height);
98
minimumSize.Width = Math.Max(minimumSize.
Width
, ParentView.ViewPortSize.
Width
- 2 * WorkflowRootLayout.Separator.
Width
);
304
bounds.Inflate(-e.AmbientTheme.Margin.
Width
, -e.AmbientTheme.Margin.Height);
401
headerBarRectangle.Width = AssociatedDesigner.Size.
Width
;
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (8)
167
minimumSize.Width = Math.Max(minimumSize.
Width
, 160);
478
arrowCapSize = new Size(compositeDesignerTheme.ConnectorSize.
Width
/ 3, compositeDesignerTheme.ConnectorSize.Height / 3);
544
location.X += (Size.
Width
- activeDesigner.Size.
Width
) / 2;
564
containerSize.Width = Math.Max(containerSize.
Width
, activeDesigner.Size.
Width
);
567
containerSize.Width += 2 * e.AmbientTheme.SelectionSize.
Width
;
568
containerSize.Width += 3 * e.AmbientTheme.Margin.
Width
;
AuthoringOM\Design\WorkflowLayouts.cs (52)
86
Size totalSize = new Size(rootDesignerSize.
Width
+ DefaultWorkflowLayout.Separator.
Width
* 2, rootDesignerSize.Height + DefaultWorkflowLayout.Separator.Height * 2);
88
return new Size(Math.Max(totalSize.
Width
, clientSize.
Width
), Math.Max(totalSize.Height, clientSize.Height));
162
transformationMatrix.Translate(-logicalViewPortOrigin[0].X + viewPortData.ShadowDepth.
Width
, -logicalViewPortOrigin[0].Y + viewPortData.ShadowDepth.Height, MatrixOrder.Append);
217
Size totalSize = new Size(rootDesignerSize.
Width
+ DefaultWorkflowLayout.Separator.
Width
* 2, rootDesignerSize.Height + DefaultWorkflowLayout.Separator.Height * 2);
220
clientSize.Width = (int)(clientSize.
Width
/ ((float)this.parentView.Zoom / 100.0f));
223
return new Size(Math.Max(totalSize.
Width
, clientSize.
Width
), Math.Max(totalSize.Height, clientSize.Height));
250
transformationMatrix.Translate(-logicalViewPortOrigin[0].X + viewPortData.ShadowDepth.
Width
, -logicalViewPortOrigin[0].Y + viewPortData.ShadowDepth.Height, MatrixOrder.Append);
259
rootBounds.Inflate(ActivityRootLayout.Separator.
Width
/ 2, ActivityRootLayout.Separator.Height / 2);
285
logicalRectangle.X -= offSet.
Width
;
293
logicalRectangle.X += offSet.
Width
;
301
logicalPoint.Offset(-offSet.
Width
, -offSet.Height);
308
logicalPoint.Offset(offSet.
Width
, offSet.Height);
321
totalSize.Width = Math.Max(totalSize.
Width
, layoutExtent.
Width
);
323
return new Size(Math.Max(0, (totalSize.
Width
- layoutExtent.
Width
) / 2), Math.Max(0, (totalSize.Height - layoutExtent.Height) / 2));
372
maxSize.Width = (this.rowColumns.
Width
* this.pageSize.
Width
) + ((this.rowColumns.
Width
+ 1) * (PageSeparator.
Width
));
383
Size printableAreaPerPage = new Size(this.pageSize.
Width
- (PageMargins.Left + PageMargins.Right), this.pageSize.Height - (PageMargins.Top + PageMargins.Bottom));
384
Size totalPrintableArea = new Size(this.rowColumns.
Width
* printableAreaPerPage.
Width
, this.rowColumns.Height * printableAreaPerPage.Height);
389
alignment.X = (totalPrintableArea.
Width
- rootDesignerSize.
Width
) / 2;
390
alignment.X = Math.Max(alignment.X, selectionSize.
Width
+ selectionSize.
Width
/ 2);
434
insersectedLogicalViewPort.Width -= deltaSize.
Width
;
469
insersectedPhysicalViewPort.Width -= deltaSize.
Width
;
729
rootDesignerSize.Width += 3 * selectionSize.
Width
;
740
Size printableArea = new Size(paperSize.
Width
- (margins.Left + margins.Right), paperSize.Height - (margins.Top + margins.Bottom));
741
printableArea.Width = Math.Max(printableArea.
Width
, 1);
745
((float)this.printDocument.PageSetupData.PagesWide * (float)printableArea.
Width
/ (float)rootDesignerSize.
Width
),
756
this.pageSize.Width = Convert.ToInt32(Math.Ceiling(((float)this.pageSize.
Width
) / this.scaling));
766
PageSeparator = new Size(Convert.ToInt32(Math.Ceiling(((float)PageSeparator.
Width
) / this.scaling)), Convert.ToInt32(Math.Ceiling(((float)PageSeparator.Height) / this.scaling)));
781
Size viewablePageSize = new Size(this.pageSize.
Width
- (PageMargins.Left + PageMargins.Right), this.pageSize.Height - (PageMargins.Top + PageMargins.Bottom));
782
viewablePageSize.Width = Math.Max(viewablePageSize.
Width
, 1);
787
this.rowColumns.Width = rootDesignerSize.
Width
/ viewablePageSize.
Width
;
788
this.rowColumns.Width += ((rootDesignerSize.
Width
% viewablePageSize.
Width
) > 1) ? 1 : 0;
789
this.rowColumns.Width = Math.Max(1, this.rowColumns.
Width
);
802
for (int column = 0; column < this.rowColumns.
Width
; column++)
805
pageLocation.X = (column * this.pageSize.
Width
) + ((column + 1) * PageSeparator.
Width
);
812
Rectangle logicalBounds = new Rectangle(column * viewablePageSize.
Width
, row * viewablePageSize.Height, viewablePageSize.
Width
, viewablePageSize.Height);
AuthoringOM\Design\WorkflowPrinting.cs (17)
126
Size printableArea = new Size(printPageArg.PageBounds.Size.
Width
- (margins.Left + margins.Right), printPageArg.PageBounds.Size.Height - (margins.Top + margins.Bottom));
127
Rectangle boundingRectangle = new Rectangle(margins.Left, margins.Top, printableArea.
Width
, printableArea.Height);
148
Point pageOffset = new Point(this.currentPrintablePage.X * printableArea.
Width
- this.workflowAlignment.X, this.currentPrintablePage.Y * printableArea.Height - this.workflowAlignment.Y);
154
viewPortSize.Width = Convert.ToInt32(Math.Ceiling((float)printableArea.
Width
/ this.scaling));
161
Rectangle viewPort = new Rectangle(this.currentPrintablePage.X * viewPortSize.
Width
- scaledAlignment.X, this.currentPrintablePage.Y * viewPortSize.Height - scaledAlignment.Y, viewPortSize.
Width
, viewPortSize.Height);
317
rootDesignerSize.Width += 3 * selectionSize.
Width
;
326
Size printableArea = new Size(paperSize.
Width
- (margins.Left + margins.Right), paperSize.Height - (margins.Top + margins.Bottom));
327
printableArea.Width = Math.Max(printableArea.
Width
, 1);
337
float xScaling = (float)this.pageSetupData.PagesWide * (float)printableArea.
Width
/ (float)rootDesignerSize.
Width
;
346
this.totalPrintablePages.X = Convert.ToInt32(Math.Ceiling((this.scaling * (float)rootDesignerSize.
Width
) / (float)printableArea.
Width
));
355
this.workflowAlignment.X = (int)(((float)this.totalPrintablePages.X * (float)printableArea.
Width
/ this.scaling - (float)rootDesignerSize.
Width
) / 2.0f * this.scaling);
360
this.workflowAlignment.X = Math.Max(this.workflowAlignment.X, selectionSize.
Width
+ selectionSize.
Width
/ 2);
AuthoringOM\Design\WorkflowView.cs (23)
449
viewPortSize.Width = Math.Max(0, viewPortSize.
Width
- VScrollBar.Width);
943
if (HScrollBar.Maximum > ViewPortSize.
Width
|| VScrollBar.Maximum > ViewPortSize.Height)
945
int newZoom = (int)(100.0f / ActiveLayout.Scaling * Math.Min((float)ViewPortSize.
Width
/ (float)ActiveLayout.Extent.
Width
, (float)ViewPortSize.Height / (float)ActiveLayout.Extent.Height));
1034
this.viewPortBitmap = new Bitmap(Math.Max(1, ViewPortSize.
Width
), Math.Max(1, ViewPortSize.Height), e.Graphics);
1535
viewPortData.LogicalViewPort = new Rectangle(Point.Empty, new Size(rootDesigner.Bounds.Width + 2 * DefaultWorkflowLayout.Separator.
Width
, rootDesigner.Bounds.Height + 2 * DefaultWorkflowLayout.Separator.Height));
1584
transformationMatrix.Translate(-logicalViewPortOrigin[0].X + viewPortData.ShadowDepth.
Width
, -logicalViewPortOrigin[0].Y + viewPortData.ShadowDepth.Height, MatrixOrder.Append);
1660
viewPortGraphics.FillRectangle(shadowDepthBrush, new Rectangle(Point.Empty, new Size(memoryBitmap.Size.
Width
- viewPortData.ShadowDepth.
Width
- 1, memoryBitmap.Size.Height - viewPortData.ShadowDepth.Height - 1)));
1668
viewPortGraphics.DrawImage(temporaryBitmap, new Rectangle(-viewPortData.ShadowDepth.
Width
, -viewPortData.ShadowDepth.Height, memoryBitmap.Width, memoryBitmap.Height), 0, 0, memoryBitmap.Width, memoryBitmap.Height, GraphicsUnit.Pixel, transparentColorKey);
1762
ScrollPosition = new Point(scrollPosition.X + scrollDelta.
Width
, scrollPosition.Y + scrollDelta.Height);
1793
if (ViewPortSize.
Width
< 0 || ViewPortSize.Height < 0)
1798
Size largeChangeSize = new Size(Math.Min(maximumScrollSize.
Width
, currentSize.
Width
), Math.Min(maximumScrollSize.Height, currentSize.Height));
1800
if (hScrollBar.Maximum != maximumScrollSize.
Width
)
1801
hScrollBar.Maximum = maximumScrollSize.
Width
;
1805
if (hScrollBar.LargeChange != largeChangeSize.
Width
)
1807
hScrollBar.SmallChange = largeChangeSize.
Width
/ 15;
1808
hScrollBar.LargeChange = largeChangeSize.
Width
+ 1;
1816
int xMaxScrollPos = maximumScrollSize.
Width
- hScrollBar.LargeChange;
1830
hScrollBar.Visible = (hScrollBar.Maximum > currentSize.
Width
);
1863
if (HScrollBar.Maximum > ViewPortSize.
Width
|| VScrollBar.Maximum > ViewPortSize.Height)
1891
if (HScrollBar.Maximum > ViewPortSize.
Width
|| VScrollBar.Maximum > ViewPortSize.Height)
System.WorkflowServices (9)
System\Workflow\Activities\Design\GradientPanel.cs (2)
78
frameRect = new Rectangle(6, 0, this.Size.
Width
- 14, this.Size.Height - 8);
82
frameRect = new Rectangle(0, 0, this.Size.
Width
- 1, this.Size.Height - 1);
System\Workflow\Activities\Design\RichListBox.cs (1)
245
listItemBitmapCache.Add(viewType.Name, new Bitmap(listItemRenderer.Size.
Width
, listItemRenderer.Size.Height));
System\Workflow\Activities\SendActivityDesigner.cs (2)
136
Rectangle outgoingArrowRect = new Rectangle(this.Location.X + this.Size.
Width
- 24, this.Location.Y + 10, 24, 24);
137
Rectangle incomingArrowRect = new Rectangle(this.Location.X + this.Size.
Width
, this.Location.Y + this.Size.Height - 35, -24, 24);
System\Workflow\ComponentModel\Design\ActivityDesignerHighlighter.cs (4)
105
if (scrollPosition.X > viewSize.
Width
/ 2)
107
scrollPosition.X -= viewSize.
Width
/ 2;
127
if (scrollPosition.X > viewSize.
Width
/ 2)
129
scrollPosition.X -= viewSize.
Width
/ 2;