261 writes to Height
System.Drawing (1)
commonui\System\Drawing\BufferedGraphicsContext.cs (1)
57maximumBuffer.Height = 32 * 3;
System.Web.DataVisualization (22)
Common\General\Legend.cs (17)
454 this._offset.Height = (int)Math.Ceiling(singleWCharacterSize.Width / 3f); 502 highestHeader.Height = Math.Max(highestHeader.Height, headerSize.Height); 710 itemHalfSpacing.Height = (int)(this._verticalSpaceLeft / this.GetMaximumNumberOfRows() / 2); 921 this._offset.Height = (int)Math.Ceiling(singleWCharacterSize.Width / 3f); 952 highestHeader.Height = Math.Max(highestHeader.Height, headerSize.Height); 961 legenItemsMaxSize.Height -= 2 * (this._offset.Height + this.GetBorderSize()); 962 legenItemsMaxSize.Height -= titleSize.Height; 963 legenItemsMaxSize.Height -= highestHeader.Height; 1038 optimalSize.Height = (legenItemsMaxSize.Height - vertSpaceLeft) + titleSize.Height + highestHeader.Height; 1039 optimalSize.Height += 2 * (this._offset.Height + this.GetBorderSize()); 1045 optimalSize.Height += this._truncatedDotsSize; 1057 optimalSize.Height = maxSize.Height; 1065 optimalSize.Height = 0; 3987 titleSize.Height += this._offset.Height; 3991 titleSize.Height += this.GetSeparatorSize(this.TitleSeparator).Height; 4014 headerSize.Height += this._offset.Height; 4018 headerSize.Height += this.GetSeparatorSize(this.HeaderSeparator).Height;
Common\General\LegendColumns.cs (5)
1501 cellSize.Height = (int)(Math.Abs(this.SeriesSymbolSize.Height) * singleWCharacterSize.Height / 100f); 1513cellSize.Height = (int)imageSize.Height; 1519 cellSize.Height = (int)(Math.Abs(this.ImageSize.Height) * singleWCharacterSize.Height / 100f); 1539 cellSize.Height += (int)((this.Margins.Top + this.Margins.Bottom) * singleWCharacterSize.Height / 100f); 1545 cellSize.Height += this.Legend.GetSeparatorSize(LegendItem.SeparatorType).Height;
System.Web.Entity.Design (2)
System\Data\WebControls\Design\EntityDataSourceStatementEditorForm.cs (2)
125size.Height += moveUp; 129size.Height -= moveUp;
System.Windows.Forms (119)
misc\GDI\WindowsGraphics2.cs (1)
482proposedSize.Height = 1;
winforms\Managed\System\WinForms\Button.cs (1)
135requiredSize.Height += 9;
winforms\Managed\System\WinForms\ButtonBase.cs (1)
955proposedSize.Height = 0;
winforms\Managed\System\WinForms\CheckBox.cs (1)
381size.Height = DpiHelper.EnableDpiChangedHighDpiImprovements ? Math.Max(size.Height + 5, flatSystemStyleMinimumHeight) : size.Height + 5; // ensure minimum height to avoid truncation of check-box or text
winforms\Managed\System\WinForms\Control.cs (1)
11627size.Height = (int)Math.Round((float)size.Height * y);
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (1)
336extents.Height += yMargin;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (2)
432preferredSize.Height += borderAndPaddingHeights + marginHeights + 2 * DATAGRIDVIEWBUTTONCELL_verticalTextMargin; 436preferredSize.Height = Math.Max(preferredSize.Height, borderAndPaddingHeights + DATAGRIDVIEWCELL_iconMarginHeight * 2 + iconsHeight);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (8)
776checkBoxSize.Height -= 3; 780checkBoxSize.Height -= 2; 846preferredSize.Height += borderWidths.Y; 858preferredSize.Height = Math.Max(preferredSize.Height, 1271checkBoxSize.Height -= 3; 1275checkBoxSize.Height -= 2; 1286checkBoxSize.Height -= 3; 1291checkBoxSize.Height -= 2;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (6)
648preferredSize.Height = Math.Max(preferredSize.Height, glyphSize.Height); 649preferredSize.Height = Math.Max(preferredSize.Height, 1); 678preferredSize.Height = Math.Max(preferredSize.Height, sortGlyphHeight); 681preferredSize.Height = Math.Max(preferredSize.Height, 1); 696preferredSize.Height += 2 * DATAGRIDVIEWCOLUMNHEADERCELL_verticalMargin + borderAndPaddingHeights; 707preferredSize.Height += rectThemeMargins.Y + rectThemeMargins.Height;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (5)
1461preferredSize.Height = 0; 1477preferredSize.Height += 6; 1481preferredSize.Height += 8; 1483preferredSize.Height += borderAndPaddingHeights; 1487preferredSize.Height = Math.Max(preferredSize.Height, borderAndPaddingHeights + DATAGRIDVIEWCELL_iconMarginHeight * 2 + iconsHeight);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (3)
577preferredSize.Height = 0; 592preferredSize.Height += borderAndPaddingHeights; 596preferredSize.Height = Math.Max(preferredSize.Height, borderAndPaddingHeights + DATAGRIDVIEWCELL_iconMarginHeight * 2 + iconsHeight);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (3)
748preferredSize.Height += DATAGRIDVIEWLINKCELL_verticalTextMarginTop + DATAGRIDVIEWLINKCELL_verticalTextMarginBottom + borderAndPaddingHeights; 751preferredSize.Height += DATAGRIDVIEWLINKCELL_verticalTextMarginBottom; 756preferredSize.Height = Math.Max(preferredSize.Height, borderAndPaddingHeights + DATAGRIDVIEWCELL_iconMarginHeight * 2 + iconsHeight);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (2)
519preferredSize.Height += verticalTextMarginTop + DATAGRIDVIEWTEXTBOXCELL_verticalTextMarginBottom + borderAndPaddingHeights; 523preferredSize.Height = Math.Max(preferredSize.Height, borderAndPaddingHeights + DATAGRIDVIEWCELL_iconMarginHeight * 2 + iconsHeight);
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (4)
281preferredSize.Height += 2*DATAGRIDVIEWROWHEADERCELL_verticalTextMargin; 297preferredSize.Height = Math.Max(preferredSize.Height, 301preferredSize.Height += borderAndPaddingHeights; 338sizeConstraint.Height = sizeCell.Height;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
397maxSize.Height = pageSize.Height;
winforms\Managed\System\WinForms\Form.cs (2)
3424correctClientSize.Height += SystemInformation.HorizontalScrollBarHeight; 3452correct.Height += SystemInformation.HorizontalScrollBarHeight;
winforms\Managed\System\WinForms\Label.cs (3)
1246bordersAndPadding.Height += 6; // taken from Everett.PreferredHeight 1250bordersAndPadding.Height += 3; // taken from Everett.PreferredHeight 1272proposedSize.Height = 0;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (8)
45proposedConstraints.Height = bounds.Height; 358neededSize.Height = 0; 408newSize.Height = remainingSize.Height; 410newSize.Height = Math.Max(newSize.Height, remainingSize.Height); 524preferredSizeForAnchoring.Height -= containerPadding.Top; 842prefSize.Height = Math.Max(prefSize.Height, elementSpace.Bottom); 863prefSize.Height = Math.Max(prefSize.Height, elementSpace.Bottom + anchorDest.Height); 866prefSize.Height = Math.Max(prefSize.Height, anchorDest.Bottom);
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (4)
136layoutSize.Height += rowSize.Height; 204prefSize.Height = 0; 209prefSize.Height = elementProxy.MinimumSize.Height; 252rowSize.Height = Math.Max(rowSize.Height, requiredSize.Height);
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (7)
59largestSize.Height = Math.Max(largestSize.Height, textSize.Height); 132if(size.Height == 0) size.Height = Int32.MaxValue; 318stretchedSize.Height = withinThis.Height; 346currentSize.Height += contentSize.Height; 349currentSize.Height = Math.Max(currentSize.Height, contentSize.Height); 397size.Height = temp; 504currentSize.Height -= contentSize.Height;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (4)
197containerSize.Height = Math.Max(containerSize.Height, 1); 256containerSize.Height = Math.Max(containerSize.Height, 1); 269proposedConstraints.Height = Math.Max(proposedConstraints.Height, 1); 666preferredSize.Height = InflateRows(containerInfo, proposedConstraints, expandLastElementWidth, measureOnly);
winforms\Managed\System\WinForms\MonthCalendar.cs (4)
1490this.dimensions.Height = (nRows < 1) ? 1 : nRows; 1500minSize.Height = (calendarHeight + INSERT_HEIGHT_SIZE) * dimensions.Height - INSERT_HEIGHT_SIZE + todayHeight; 1514minSize.Height += scaledExtraPadding; 2060this.dimensions.Height = y;
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
3202size.Height = Math.Max(0,yNew);
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (1)
145size.Height = Math.Max(0, size.Height - 2 * cBorder);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (5)
2121size.Height = sizeWindow.Height; 2129size.Height -= 2; 5704newSize.Height += ResizeBarSize; 6021sz.Height += (linkHeight + (DropDownHolderBorder * 2)); 6027sz.Height += ResizeBarSize;
winforms\Managed\System\WinForms\RadioButton.cs (1)
324size.Height = DpiHelper.EnableDpiChangedHighDpiImprovements ? Math.Max(size.Height + 5, flatSystemStyleMinimumHeight) : size.Height + 5; // ensure minimum height to avoid truncation of RadioButton circle or text
winforms\Managed\System\WinForms\RichTextBox.cs (1)
563scrollBarPadding.Height += SystemInformation.HorizontalScrollBarHeight;
winforms\Managed\System\WinForms\ScrollableControl.cs (2)
454scrollMargin.Height += Padding.Bottom; 474scrollMargin.Height += current.Size.Height;
winforms\Managed\System\WinForms\StatusStrip.cs (1)
312proposedSize.Height = Int32.MaxValue;
winforms\Managed\System\WinForms\TextBox.cs (1)
443scrollBarPadding.Height += SystemInformation.GetHorizontalScrollBarHeightForDpi(deviceDpi);
winforms\Managed\System\WinForms\TextBoxBase.cs (2)
973bordersAndPadding.Height +=2; 990textSize.Height = Math.Max(textSize.Height, FontHeight);
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (2)
246textSize.Height += scaledExceptionMessageVerticalPadding; 250if (textSize.Height > scaledMaxHeight) textSize.Height = scaledMaxHeight;
winforms\Managed\System\WinForms\ToolStrip.cs (7)
2454proposedSize.Height = Int32.MaxValue; 2482maxSize.Height = Math.Max(0, defaultSize.Height); 2496maxSize.Height = Math.Max(maxSize.Height, itemMargin.Vertical + prefItemSize.Height); 2550maxSize.Height += itemMargin.Vertical + preferredSize.Height; 2569maxSize.Height += overflowItemMargin.Vertical + overflowItem.Bounds.Height; 2572maxSize.Height += 2; //add Padding to the bottom if not Overflow. 2578 maxSize.Height += gripMargin.Vertical + toolStrip.Grip.GripThickness;
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
263preferredSize.Height += DropDownArrowRect.Height + scaledDropDownArrowPadding.Vertical;
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (11)
355menuItemTextSize.Height = Math.Max(menuItemTextSize.Height, shortcutTextSize.Height); 360maxTextSize.Height = Math.Max(maxTextSize.Height, menuItemTextSize.Height); 369maxImageSize.Height = Math.Max(maxImageSize.Height, imageSize.Height); 374maxCheckSize.Height = Math.Max(checkedImageSize.Height, maxCheckSize.Height); 378maxNonMenuItemSize.Height = Math.Max(item.Bounds.Height, maxNonMenuItemSize.Height); 383this.maxItemSize.Height = Math.Max(maxTextSize.Height + scaledTextPadding.Vertical, Math.Max(maxCheckSize.Height + scaledCheckPadding.Vertical, maxArrowSize.Height + scaledArrowPadding.Vertical)); 387this.maxItemSize.Height = Math.Max(maxImageSize.Height + scaledImagePadding.Vertical, maxItemSize.Height); 395maxTextSize.Height = maxItemSize.Height - scaledTextPadding.Vertical; 396maxImageSize.Height = maxItemSize.Height - scaledImagePadding.Vertical; 397maxCheckSize.Height = maxItemSize.Height - scaledCheckPadding.Vertical; 508this.maxItemSize.Height += this.maxItemSize.Height%2;
winforms\Managed\System\WinForms\ToolStripGrip.cs (1)
122preferredSize.Height = constrainingSize.Height;
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (1)
113preferredSize.Height = Math.Min(constrainingSize.Height, maxHeight);
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (3)
167maxSize.Height += growBy; 246constrainingSize.Height = ToolStripPanelRow.Bounds.Height; 248preferredSize.Height = constrainingSize.Height;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (1)
675preferredSize.Height = DisplayRectangle.Height;
winforms\Managed\System\WinForms\ToolStripScrollButton.cs (1)
153preferredSize.Height = (Label.Image != null) ? Label.Image.Height + 4 : 0;
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
426constrainingSize.Height = WINBAR_SEPARATORHEIGHT;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (1)
363itemSize.Height = Math.Max(displayRectangle.Height - itemMargin.Vertical, 0);
winforms\Managed\System\WinForms\ToolTip.cs (1)
2326if (r.Size.Height > currentTooltipSize.Height) currentTooltipSize.Height = r.Size.Height;
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
257this.webBrowserBaseChangingSize.Height = height;
System.Windows.Forms.DataVisualization (22)
Common\General\Legend.cs (17)
454 this._offset.Height = (int)Math.Ceiling(singleWCharacterSize.Width / 3f); 502 highestHeader.Height = Math.Max(highestHeader.Height, headerSize.Height); 710 itemHalfSpacing.Height = (int)(this._verticalSpaceLeft / this.GetMaximumNumberOfRows() / 2); 921 this._offset.Height = (int)Math.Ceiling(singleWCharacterSize.Width / 3f); 952 highestHeader.Height = Math.Max(highestHeader.Height, headerSize.Height); 961 legenItemsMaxSize.Height -= 2 * (this._offset.Height + this.GetBorderSize()); 962 legenItemsMaxSize.Height -= titleSize.Height; 963 legenItemsMaxSize.Height -= highestHeader.Height; 1038 optimalSize.Height = (legenItemsMaxSize.Height - vertSpaceLeft) + titleSize.Height + highestHeader.Height; 1039 optimalSize.Height += 2 * (this._offset.Height + this.GetBorderSize()); 1045 optimalSize.Height += this._truncatedDotsSize; 1057 optimalSize.Height = maxSize.Height; 1065 optimalSize.Height = 0; 3987 titleSize.Height += this._offset.Height; 3991 titleSize.Height += this.GetSeparatorSize(this.TitleSeparator).Height; 4014 headerSize.Height += this._offset.Height; 4018 headerSize.Height += this.GetSeparatorSize(this.HeaderSeparator).Height;
Common\General\LegendColumns.cs (5)
1501 cellSize.Height = (int)(Math.Abs(this.SeriesSymbolSize.Height) * singleWCharacterSize.Height / 100f); 1513cellSize.Height = (int)imageSize.Height; 1519 cellSize.Height = (int)(Math.Abs(this.ImageSize.Height) * singleWCharacterSize.Height / 100f); 1539 cellSize.Height += (int)((this.Margins.Top + this.Margins.Bottom) * singleWCharacterSize.Height / 100f); 1545 cellSize.Height += this.Legend.GetSeparatorSize(LegendItem.SeparatorType).Height;
System.Workflow.Activities (18)
Designers\SetStateDesigner.cs (1)
162size.Height += targetStateSize.Height;
Designers\StateDesigner.cs (2)
1505newSize.Height = Math.Max(newSize.Height, bounds.Bottom); 1509newSize.Height = Math.Max(newSize.Height, this.MinimumSize.Height);
Designers\StateDesigner.Layouts.cs (12)
666minimumSize.Height += layout.Size.Height; 667minimumSize.Height += selectionSize.Height; 673minimumSize.Height += EventDrivenPadding; 679size.Height = minimumSize.Height; 774size.Height = Math.Max(size.Height, layout.Size.Height); 970minimumSize.Height = Math.Max(_textLayout.Size.Height, _imageLayout.Size.Height); 971minimumSize.Height += designerTheme.BorderWidth * 2 + 4; 1104minimumSize.Height = Math.Max(minimumSize.Height, RealMinimumSize.Height); 1137size.Height = Math.Max(minHeight, size.Height); 1321size.Height = Math.Max(size.Height, minSize.Height); 1341size.Height = Math.Max(size.Height, minHeight); 1349size.Height = Math.Max(size.Height, activeDesigner.Size.Height + ActiveDesignerPadding * 2 + _designerLayout.Size.Height + ambientTheme.SelectionSize.Height * 2);
Designers\StateMachineWorkflowDesigner.cs (2)
82minimumSize.Height = Math.Max(minimumSize.Height, MinSize.Height); 86minimumSize.Height = Math.Max(minimumSize.Height, ParentView.ViewPortSize.Height - StateDesigner.Separator.Height * 2);
Designers\WhileDesigner.cs (1)
88containerSize.Height += compositeDesignerTheme.ConnectorSize.Height;
System.Workflow.ComponentModel (77)
AuthoringOM\Design\ActivityDesigner.cs (4)
238value.Height = Math.Max(value.Height, MinimumSize.Height); 1724this.textSize.Height = requestedLineSize.Height; 1728this.textSize.Height *= textLines; 1737size.Height = e.AmbientTheme.Margin.Height + Math.Max(e.DesignerTheme.ImageSize.Height, this.textSize.Height) + e.AmbientTheme.Margin.Height;
AuthoringOM\Design\ActivityPreviewDesigner.cs (12)
614containerSize.Height += this.previewStrip.Size.Height; 615containerSize.Height += e.AmbientTheme.Margin.Height; 624containerSize.Height += TitleHeight; 625containerSize.Height += 4 * e.AmbientTheme.Margin.Height; 626containerSize.Height += this.previewWindow.Size.Height; 627containerSize.Height += e.AmbientTheme.Margin.Height; 634containerSize.Height += size.Height; 638containerSize.Height = Math.Max(containerSize.Height, MinimumSize.Height); 645containerSize.Height -= previewDesignerTheme.ConnectorSize.Height; 646containerSize.Height -= 2 * e.AmbientTheme.Margin.Height; 647containerSize.Height -= 2 * e.AmbientTheme.SelectionSize.Height; 989configErrorSize.Height = configErrorSize.Height * 3 / 4;
AuthoringOM\Design\CompositeActivityDesigner.cs (4)
347textSize.Height = requestedLineSize.Height; 351textSize.Height *= textLines; 1295containerSize.Height = TitleHeight; 1297containerSize.Height = TitleHeight + WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height;
AuthoringOM\Design\Connector.cs (1)
187defaultSize.Height += defaultSize.Height / 2;
AuthoringOM\Design\DesignerHelpers.cs (3)
446offset.Height += (shadowDepth + 1); 448offset.Height -= (shadowDepth + 1); 1189snapSize.Width /= 2; snapSize.Height /= 2;
AuthoringOM\Design\DesignerWidgets.cs (9)
755reqdSize.Height = this.itemSize.Height + 2 * this.margin.Height; 760reqdSize.Height = (this.items.Count * this.itemSize.Height) + ((this.items.Count + 1) * this.margin.Height); 1308fittingOffset.Height += this.workingRectangle.Top - bounds.Top; 1310fittingOffset.Height -= bounds.Bottom - this.workingRectangle.Bottom; 1343maxTextSize.Height = Math.Max(Convert.ToInt32(Math.Ceiling(size.Height)), maxTextSize.Height); 2846scrollButtonSize.Height = Math.Min(scrollButtonSize.Width, Math.Min(scrollButtonSize.Height, ItemSize.Height)); 3395totalSize.Height = Math.Max(this.previewModeButtonRectangle.Size.Height, this.previewDescTextSize.Height); 3396totalSize.Height += margin.Height; 3397totalSize.Height += this.canvasBounds.Height;
AuthoringOM\Design\FreeFormDesigner.cs (6)
177margin.Height += gridSize.Height / 2; 246minimumSize.Height *= 4; 254minimumSize.Height = Math.Max(minimumSize.Height, workflowView.ViewPortSize.Height - 2 * WorkflowRootLayout.Separator.Height); 263minimumSize.Height = Math.Max(minimumSize.Height, childRectangle.Height); 825size.Height += Math.Max(bounds.Top - childRectangle.Top, 0); 826size.Height += Math.Max(childRectangle.Bottom - bounds.Bottom, 0);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (1)
144indicatorSize.Height += 2 * ambientTheme.Margin.Height;
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
571size.Height = (2 * borderSize.Height) + this.buttonSize.Height + (2 * this.margin.Height);
AuthoringOM\Design\ParallelActivityDesigner.cs (3)
256containerSize.Height = Math.Max(containerSize.Height, childSize.Height); 265containerSize.Height += 3 * compositeDesignerTheme.ConnectorSize.Height; 269size.Height += containerSize.Height;
AuthoringOM\Design\SequentialActivityDesigner.cs (6)
480containerSize.Height += compositeDesignerTheme.ConnectorSize.Height; //Add the height of first connector 486containerSize.Height += childSize.Height; 487containerSize.Height += compositeDesignerTheme.ConnectorSize.Height; 494containerSize.Height += helpTextRectangle.Height; 495containerSize.Height += compositeDesignerTheme.ConnectorSize.Height; //Add the height of last connector 501containerSize.Height = Math.Max(containerSize.Height, compositeDesignerTheme.Size.Height);
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (3)
95minimumSize.Height = Math.Max(minimumSize.Width, SequentialWorkflowRootDesigner.MinSize.Height); 99minimumSize.Height = Math.Max(minimumSize.Height, ParentView.ViewPortSize.Height - 2 * WorkflowRootLayout.Separator.Height); 280size.Height += footer.ImageRectangle.Height + 2 * e.AmbientTheme.Margin.Height + footer.FooterBarRectangle.Size.Height;
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (4)
168minimumSize.Height = Math.Max(minimumSize.Height, 160); 565containerSize.Height += activeDesigner.Size.Height; 569containerSize.Height += e.AmbientTheme.Margin.Height; 570containerSize.Height += 2 * e.AmbientTheme.SelectionSize.Height;
AuthoringOM\Design\WorkflowLayouts.cs (14)
221clientSize.Height = (int)(clientSize.Height / ((float)this.parentView.Zoom / 100.0f)); 322totalSize.Height = Math.Max(totalSize.Height, layoutExtent.Height); 373maxSize.Height = (this.rowColumns.Height * this.pageSize.Height) + ((this.rowColumns.Height + 1) * (PageSeparator.Height)); 426deltaSize.Height -= deltaLocation.Y; 461deltaSize.Height -= deltaLocation.Y; 730rootDesignerSize.Height += 3 * selectionSize.Height; 742printableArea.Height = Math.Max(printableArea.Height, 1); 757this.pageSize.Height = Convert.ToInt32(Math.Ceiling(((float)this.pageSize.Height) / this.scaling)); 783viewablePageSize.Height = Math.Max(viewablePageSize.Height, 1); 792this.rowColumns.Height = rootDesignerSize.Height / viewablePageSize.Height; 793this.rowColumns.Height += ((rootDesignerSize.Height % viewablePageSize.Height) > 1) ? 1 : 0; 794this.rowColumns.Height = Math.Max(1, this.rowColumns.Height); 830size.Height = Math.Max(paperSize.Width, 1); 835size.Height = Math.Max(paperSize.Height, 1);
AuthoringOM\Design\WorkflowPrinting.cs (3)
155viewPortSize.Height = Convert.ToInt32(Math.Ceiling((float)printableArea.Height / this.scaling)); 318rootDesignerSize.Height += 3 * selectionSize.Height; 328printableArea.Height = Math.Max(printableArea.Height, 1);
AuthoringOM\Design\WorkflowView.cs (3)
447viewPortSize.Height = Math.Max(0, viewPortSize.Height - HScrollBar.Height); 1755scrollDelta.Height = (rect.Top - clientRectangle.Top); 1757scrollDelta.Height = rect.Bottom - clientRectangle.Bottom;
1335 references to Height
System.Drawing (57)
commonui\System\Drawing\Advanced\PointF.cs (2)
169return new PointF(pt.X + sz.Width, pt.Y + sz.Height); 178return new PointF(pt.X - sz.Width, pt.Y - sz.Height);
commonui\System\Drawing\Bitmap.cs (5)
462this(original, (object) newSize != null ? newSize.Width : 0, (object) newSize != null ? newSize.Height : 0) { 555transparent = GetPixel(0, Size.Height - 1); 584result = new Bitmap(size.Width, size.Height, PixelFormat.Format32bppArgb); 588Rectangle rectangle = new Rectangle(0,0, size.Width, size.Height); 5950,0, size.Width, size.Height,
commonui\System\Drawing\BufferedGraphics.cs (1)
161SafeNativeMethods.BitBlt(refTargetDC, targetLoc.X, targetLoc.Y, virtualSize.Width, virtualSize.Height,
commonui\System\Drawing\BufferedGraphicsContext.cs (6)
94if (value.Width <= 0 || value.Height <= 0) { 101if (value.Width * value.Height < maximumBuffer.Width * maximumBuffer.Height) { 383if (width > bufferSize.Width || height > bufferSize.Height) 387int optHeight = Math.Max(height, bufferSize.Height); 674return (targetBounds.Width * targetBounds.Height) > (MaximumBuffer.Width * MaximumBuffer.Height);
commonui\System\Drawing\Graphics.cs (1)
918int destHeight = blockRegionSize.Height;
commonui\System\Drawing\Icon.cs (18)
92public Icon(string fileName, Size size) : this(fileName, size.Width, size.Height) { 121public Icon(Icon original, Size size) : this(original, size.Width, size.Height) { 144handle = SafeNativeMethods.CopyImage(new HandleRef(original, original.Handle), SafeNativeMethods.IMAGE_ICON, iconSize.Width, iconSize.Height, 0); 178public Icon(Stream stream, Size size) : this(stream, size.Width, size.Height) { 215Initialize(iconSize.Width, iconSize.Height); 316get { return Size.Height;} 365return new Icon(this, Size.Width, Size.Height); 439imageHeight = cursorSize.Height; 450targetHeight = cursorSize.Height; 458drawHeight = cursorSize.Height * targetHeight / imageHeight; 464drawHeight = cursorSize.Height; 493Draw(graphics, new Rectangle(x, y, size.Width, size.Height)); 966bitmap = new Bitmap(Size.Width, Size.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb); 971System.Drawing.Imaging.BitmapData bmpdata = bitmap.LockBits(new Rectangle(0, 0, Size.Width, Size.Height), 984for(int j=(Size.Height-1)*4;j>=0;j-=4) 1065bitmap = new Bitmap(size.Width, size.Height); // initialized to transparent 1074graphics.DrawImage(tmpBitmap, new Rectangle(0, 0, size.Width, size.Height)); 1081Draw(graphics, new Rectangle(0, 0, size.Width, size.Height));
commonui\System\Drawing\Point.cs (3)
62this.y = sz.Height; 191return new Point(pt.X + sz.Width, pt.Y + sz.Height); 200return new Point(pt.X - sz.Width, pt.Y - sz.Height);
commonui\System\Drawing\Printing\PreviewPrintController.cs (1)
122Metafile metafile = new Metafile(dc.Hdc, new Rectangle(0,0, metafileSize.Width, metafileSize.Height), MetafileFrameUnit.GdiCompatible, EmfType.EmfPlusOnly);
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (1)
71Convert(value.Height, fromUnit, toUnit)
commonui\System\Drawing\Rectangle.cs (3)
74this.height = size.Height; 119this.Height = value.Height; 405Inflate(size.Width, size.Height);
commonui\System\Drawing\Size.cs (8)
78return new SizeF(p.Width, p.Height); 108return sz1.Width == sz2.Width && sz1.Height == sz2.Height; 127return new Point(size.Width, size.Height); 184return new Size(sz1.Width + sz2.Width, sz1.Height + sz2.Height); 202return new Size(sz1.Width - sz2.Width, sz1.Height - sz2.Height);
commonui\System\Drawing\SizeConverter.cs (2)
128args[nArg++] = intConverter.ConvertToString(context, culture, size.Height); 137return new InstanceDescriptor(ctor, new object[] {size.Width, size.Height});
commonui\System\Drawing\ToolboxBitmapAttribute.cs (2)
219img = new Bitmap((Bitmap)smallImage, largeSize.Width, largeSize.Height); 369img = new Bitmap(b, largeSize.Width , largeSize.Height);
misc\DpiHelper.cs (4)
457deviceImage = new Bitmap(deviceImageSize.Width, deviceImageSize.Height, logicalImage.PixelFormat); 463RectangleF sourceRect = new RectangleF(0, 0, logicalImage.Size.Width, logicalImage.Size.Height); 464RectangleF destRect = new RectangleF(0, 0, deviceImageSize.Width, deviceImageSize.Height); 559LogicalToDeviceUnits(logicalSize.Height, deviceDpi));
System.Web.DataVisualization (55)
Common\General\Legend.cs (36)
477 Math.Min(legendPosition.Height, titleSize.Height)); 502 highestHeader.Height = Math.Max(highestHeader.Height, headerSize.Height); 514 Math.Min(legendPosition.Height - this._titlePosition.Height, highestHeader.Height)); 530 legendPosition.Y + this._offset.Height + this.GetBorderSize() + this._titlePosition.Height + this._headerPosition.Height, 532 legendPosition.Height - 2 * (this._offset.Height + this.GetBorderSize()) ); 815 if(itemHalfSpacing.Height > 0) 817 cellPosition.Y += itemHalfSpacing.Height * rowIndex * 2 + itemHalfSpacing.Height; 952 highestHeader.Height = Math.Max(highestHeader.Height, headerSize.Height); 961 legenItemsMaxSize.Height -= 2 * (this._offset.Height + this.GetBorderSize()); 962 legenItemsMaxSize.Height -= titleSize.Height; 963 legenItemsMaxSize.Height -= highestHeader.Height; 1038 optimalSize.Height = (legenItemsMaxSize.Height - vertSpaceLeft) + titleSize.Height + highestHeader.Height; 1039 optimalSize.Height += 2 * (this._offset.Height + this.GetBorderSize()); 1055 if(optimalSize.Height > maxSize.Height) 1057 optimalSize.Height = maxSize.Height; 1063 if(optimalSize.Height < 0) 1540 (columnHeight + nextColumnFirstItemHeight) < legendSize.Height) 1808 cellHeights[currentColumn, currentRow] = cellSize.Height; 1813 Math.Max(cellHeights[currentColumn, currentRow], cellSize.Height); 2031 verticalSpaceLeft = legendItemsAreaSize.Height - totalHeight; 2473 separatorPosition.Height = this.GetSeparatorSize(legendItem.SeparatorType).Height; 2542 this._legendItemsAreaPosition.Bottom + (this._truncatedDotsSize + this._offset.Height) / 2); 3987 titleSize.Height += this._offset.Height; 3991 titleSize.Height += this.GetSeparatorSize(this.TitleSeparator).Height; 4014 headerSize.Height += this._offset.Height; 4018 headerSize.Height += this.GetSeparatorSize(this.HeaderSeparator).Height; 4041 legendPosition.Height -= 2 * (this._offset.Height + this.GetBorderSize()); 4101 fillRect.Y -= this._offset.Height; 4102 fillRect.Height += this._offset.Height; 4316 rect.Y += this._offset.Height;
Common\General\LegendColumns.cs (18)
403 if(value.Width < 0 || value.Height < 0) 1194 if(value.Width < 0 || value.Height < 0) 1220 if(value.Width < 0 || value.Height < 0) 1448 this.cellPosition.Y += (int)(this.Margins.Top * singleWCharacterSize.Height / 100f); 1451 this.cellPosition.Height -= (int)(this.Margins.Top * singleWCharacterSize.Height / 100f) 1452 + (int)(this.Margins.Bottom * singleWCharacterSize.Height / 100f); 1458 this.cellPosition.Height -= this.Legend.GetSeparatorSize(LegendItem.SeparatorType).Height; 1501 cellSize.Height = (int)(Math.Abs(this.SeriesSymbolSize.Height) * singleWCharacterSize.Height / 100f); 1519 cellSize.Height = (int)(Math.Abs(this.ImageSize.Height) * singleWCharacterSize.Height / 100f); 1539 cellSize.Height += (int)((this.Margins.Top + this.Margins.Bottom) * singleWCharacterSize.Height / 100f); 1545 cellSize.Height += this.Legend.GetSeparatorSize(LegendItem.SeparatorType).Height; 2118 if(this.ImageSize.Height > 0) 2120 int newHeight = (int)(this.ImageSize.Height * singleWCharacterSize.Height / 100f); 2233 if(this.SeriesSymbolSize.Height >= 0) 2235 int newHeight = (int)(this.SeriesSymbolSize.Height * singleWCharacterSize.Height / 100f);
Common\Utilities\XmlSerializer.cs (1)
2725 writer.Write(((Size)obj).Height);
System.Web.Mobile (1)
UI\MobileControls\Design\MobileContainerDesigner.cs (1)
637SetBehaviorStyle("height", GetDefaultSize().Height);
System.Windows.Forms (577)
misc\DpiHelper.cs (4)
457deviceImage = new Bitmap(deviceImageSize.Width, deviceImageSize.Height, logicalImage.PixelFormat); 463RectangleF sourceRect = new RectangleF(0, 0, logicalImage.Size.Width, logicalImage.Size.Height); 464RectangleF destRect = new RectangleF(0, 0, deviceImageSize.Width, deviceImageSize.Height); 559LogicalToDeviceUnits(logicalSize.Height, deviceDpi));
misc\GDI\DeviceContext2.cs (1)
462IntUnsafeNativeMethods.SetViewportExtEx( new HandleRef( this, this.Hdc ), newExtent.Width, newExtent.Height, oldExtent );
misc\GDI\WindowsGraphics2.cs (5)
254if( bounds.Height == MaxSize.Height ) 481if( proposedSize.Height <= 0 ) { 485IntNativeMethods.RECT rect = IntNativeMethods.RECT.FromXYWH(0, 0, proposedSize.Width, proposedSize.Height); 498if (proposedSize.Height >= MaxSize.Height && (flags & IntTextFormatFlags.SingleLine) != 0)
winforms\Managed\System\WinForms\AxHost.cs (8)
1569height = adjustedSize.Height; 1592height = p.Height; 1776b.Height = p.Height; 3616if (setExtent.Width < ocxExtent.Width || setExtent.Height < ocxExtent.Height) 3617Bounds = new Rectangle(location.X, location.Y, ocxExtent.Width, ocxExtent.Height); 3619Size newSize = SetExtent(setExtent.Width, setExtent.Height); 3621Bounds = new Rectangle(location.X, location.Y, newSize.Width, newSize.Height);
winforms\Managed\System\WinForms\ButtonBase.cs (2)
954if( proposedSize.Height == 1 ) { 1133ShowToolTip = (this.ClientRectangle.Width < preferredSize.Width || this.ClientRectangle.Height < preferredSize.Height);
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (9)
976xCompose(vComposition, checkSize.Height, imageSize.Height, textSize.Height) 1003xDecompose(vComposition, checkSize.Height, imageSize.Height, proposedSize.Height) 1322size = new Size(size.Width + 1, size.Height + 1); 1389if (textImageRelation == TextImageRelation.ImageAboveText && layout.imageBounds.Size.Height != 0) { 1447textSize = Size.Ceiling(g.MeasureString(text, font, new SizeF(proposedSize.Width, proposedSize.Height), gdipStringFormat));
winforms\Managed\System\WinForms\CheckBox.cs (2)
381size.Height = DpiHelper.EnableDpiChangedHighDpiImprovements ? Math.Max(size.Height + 5, flatSystemStyleMinimumHeight) : size.Height + 5; // ensure minimum height to avoid truncation of check-box or text
winforms\Managed\System\WinForms\ComboBox.cs (9)
937prefHeightCache = (short)(textSize.Height + SystemInformation.BorderSize.Height * 8 + Padding.Size.Height); 952prefHeightCache = (short)(textSize.Height * itemCount + SystemInformation.BorderSize.Height * 16 + Padding.Size.Height); 983int dyEdit = textExtent.Height + SystemInformation.Border3DSize.Height; 994cyCombo = 2 * fixedFrameBoderSize.Height + dyEdit;
winforms\Managed\System\WinForms\Control.cs (14)
533height = defaultSize.Height; 1617SetClientSizeCore(value.Width, value.Height); 3896SetBounds(x, y, value.Width, value.Height, BoundsSpecified.Size); 6448return ApplyBoundsConstraints(0,0,proposedSize.Width,proposedSize.Height).Size; 11562SetBoundsCore(rawScaledBounds.X, rawScaledBounds.Y, scaledSize.Width, scaledSize.Height, BoundsSpecified.All); 11627size.Height = (int)Math.Round((float)size.Height * y); 11949return SizeFromClientSize(clientSize.Width, clientSize.Height); 12460return width != s.Width || height != s.Height; 16959Point pt = PixelToHiMetric(size.Width, size.Height); 18263Size adjusted = new Size(size.Width, size.Height); 18265bounds.Height = adjusted.Height; 19242if (size.Width < 0 || size.Height < 0) { 19247destRect = new NativeMethods.RECT(0, 0, size.Width, size.Height); 19252hBitmap = new HandleRef(this, SafeNativeMethods.CreateBitmap(size.Width, size.Height, planes, bitsPixel, IntPtr.Zero));
winforms\Managed\System\WinForms\ControlPaint.cs (20)
95if (szCtl.Height > result.Height) { 96result.Y = (szCtl.Height - result.Height) / 2; 103float yRatio = (float)bounds.Height / (float)imageSize.Height; 109result.Height = (int) ((imageSize.Height * xRatio) +.5); 224graphics.FillRectangle(brush, 0, 0, size.Width, size.Height); 226graphics.DrawImage(bitmap, 0, 0, size.Width, size.Height); 287IntPtr mask = SafeNativeMethods.CreateBitmap(size.Width, size.Height, 1, /* 1bpp */ 1, bits); 323SafeNativeMethods.BitBlt(new HandleRef(null, target), 0, 0, size.Width, size.Height, new HandleRef(null, source), 355int destHeight = blockRegionSize.Height; 967rc.top -= sz.Height; 968rc.bottom += sz.Height; 1452if (pixelsBetweenDots.Width <= 0 || pixelsBetweenDots.Height <= 0) { 1460|| gridSize.Height != pixelsBetweenDots.Height || invert != gridInvert) { 1474int height = ((idealSize / pixelsBetweenDots.Height) + 1) * pixelsBetweenDots.Height; 1480for (int y = 0; y < height; y += pixelsBetweenDots.Height) 1599new Rectangle(0, 0, imageSize.Width, imageSize.Height), 16000, 0, imageSize.Width, imageSize.Height, 16100, 0, imageSize.Width, imageSize.Height,
winforms\Managed\System\WinForms\Cursor.cs (9)
365return SafeNativeMethods.CopyImage(new HandleRef(this, Handle), NativeMethods.IMAGE_CURSOR, sz.Width, sz.Height, 0); 443imageHeight = cursorSize.Height; 454targetHeight = cursorSize.Height; 466&& imageWidth == cursorSize.Width && imageHeight == cursorSize.Height) { 472drawHeight = cursorSize.Height * targetHeight / imageHeight; 481&& cursorSize.Width <= targetWidth && cursorSize.Height <= targetHeight 482&& cursorSize.Width == imageWidth && cursorSize.Height == imageHeight) { 488drawHeight = cursorSize.Height; 641picSize.Width, picSize.Height, 0);
winforms\Managed\System\WinForms\DataGrid.cs (1)
4254int dragHeight = SystemInformation.DragSize.Height;
winforms\Managed\System\WinForms\DataGridCaption.cs (3)
437backButtonSize.Height); 459downButtonSize.Height); 4832 * textPadding + textSize.Height);
winforms\Managed\System\WinForms\DataGridRow.cs (1)
564bmpSize.Height);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (6)
369constraintSize.Height - borderAndPaddingHeights - marginHeights - 2 * DATAGRIDVIEWBUTTONCELL_verticalTextMargin > 0) 374constraintSize.Height - borderAndPaddingHeights - marginHeights - 2 * DATAGRIDVIEWBUTTONCELL_verticalTextMargin, 403flags).Height); 436preferredSize.Height = Math.Max(preferredSize.Height, borderAndPaddingHeights + DATAGRIDVIEWCELL_iconMarginHeight * 2 + iconsHeight); 796valBounds.Inflate(-SystemInformation.Border3DSize.Width, -SystemInformation.Border3DSize.Height); 939valBounds.Height > 2 * SystemInformation.Border3DSize.Height + 1)
winforms\Managed\System\WinForms\DataGridViewCell.cs (13)
1974if (constraintSize.Width < 0 || constraintSize.Height < 0) 1980if (constraintSize.Height == 0) 1991if (constraintSize.Height == 0) 2576return GetPreferredSize(g, dataGridViewCellStyle, rowIndex, new Size(width, 0)).Height; 2617return size.Height; 2869return requiredSize.Height; 2904if ((float)(textOneLineSize.Width / textOneLineSize.Height) <= maxRatio) 2910float maxWidth = (float) (textOneLineSize.Width * textOneLineSize.Width) / (float) textOneLineSize.Height / maxRatio * 1.1F; 2916if ((float)(textSize.Width / textSize.Height) <= maxRatio || textSize.Width > (int)maxWidth) 2965if (oneLineSize.Height >= maxHeight || (flags & TextFormatFlags.SingleLine) != 0) 2979if (textSize.Height > maxHeight || textSize.Width > (int)maxWidth) 2990Debug.Assert(textSize.Height <= maxHeight); 4701return requiredHeight <= maxBounds.Height && !widthTruncated;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (15)
792preferredSize = new Size(0, checkBoxSize.Height + borderAndPaddingHeights + 2 * DATAGRIDVIEWCHECKBOXCELL_margin); 798checkBoxSize.Height + borderAndPaddingHeights + 2 * DATAGRIDVIEWCHECKBOXCELL_margin); 858preferredSize.Height = Math.Max(preferredSize.Height, 1299if (valBounds.Width >= checkBoxSize.Width && valBounds.Height >= checkBoxSize.Height && (paint || computeContentBounds)) 1318checkBoxY = valBounds.Bottom - checkBoxSize.Height; 1322checkBoxY = valBounds.Top + (valBounds.Height - checkBoxSize.Height) / 2; 1334new Rectangle(checkBoxX, checkBoxY, checkBoxSize.Width, checkBoxSize.Height), 1338resultBounds = new Rectangle(checkBoxX, checkBoxY, checkBoxSize.Width, checkBoxSize.Height); 1348ControlPaint.DrawMixedCheckBox(g, checkBoxX, checkBoxY, checkBoxSize.Width, checkBoxSize.Height, bs); 1352ControlPaint.DrawCheckBox(g, checkBoxX, checkBoxY, checkBoxSize.Width, checkBoxSize.Height, bs); 1356resultBounds = new Rectangle(checkBoxX, checkBoxY, checkBoxSize.Width, checkBoxSize.Height); 1363Rectangle checkBounds = new Rectangle(checkBoxX, checkBoxY, checkBoxSize.Width, checkBoxSize.Height); 1419Rectangle fullSize = new Rectangle(checkBoxX-1, checkBoxY-1, checkBoxSize.Width+3, checkBoxSize.Height+3); 1463Rectangle checkBounds = new Rectangle(checkBoxX, checkBoxY, checkBoxSize.Width - 1, checkBoxSize.Height - 1); 1621Debug.Assert(valBounds.Width < checkBoxSize.Width || valBounds.Height < checkBoxSize.Height, "the bounds are empty");
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (8)
559Math.Max(1, constraintSize.Height - borderAndPaddingHeights - 2 * DATAGRIDVIEWCOLUMNHEADERCELL_verticalMargin), 572if (constraintSize.Height - borderAndPaddingHeights - 2 * DATAGRIDVIEWCOLUMNHEADERCELL_verticalMargin > sortGlyphHeight && 645flags).Height); 648preferredSize.Height = Math.Max(preferredSize.Height, glyphSize.Height); 649preferredSize.Height = Math.Max(preferredSize.Height, 1); 678preferredSize.Height = Math.Max(preferredSize.Height, sortGlyphHeight); 681preferredSize.Height = Math.Max(preferredSize.Height, 1);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (3)
756size.Height - borderAndPaddingWidths.Y - borderAndPaddingWidths.Height); 761dropHeight = Math.Min(GetDropDownButtonHeight(g, cellStyle), adjustedSize.Height - 2); 1487preferredSize.Height = Math.Max(preferredSize.Height, borderAndPaddingHeights + DATAGRIDVIEWCELL_iconMarginHeight * 2 + iconsHeight);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (3)
529int imgHeightAllowed = constraintSize.Height - borderAndPaddingHeights; 541int icoHeightAllowed = constraintSize.Height - borderAndPaddingHeights; 596preferredSize.Height = Math.Max(preferredSize.Height, borderAndPaddingHeights + DATAGRIDVIEWCELL_iconMarginHeight * 2 + iconsHeight);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (3)
679int maxHeight = constraintSize.Height - borderAndPaddingHeights - DATAGRIDVIEWLINKCELL_verticalTextMarginTop - DATAGRIDVIEWLINKCELL_verticalTextMarginBottom; 726DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.Font, flags).Height); 756preferredSize.Height = Math.Max(preferredSize.Height, borderAndPaddingHeights + DATAGRIDVIEWCELL_iconMarginHeight * 2 + iconsHeight);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (13)
414preferredThickness = dataGridViewCell.GetPreferredSize(rowIndex).Height; 492preferredHeight = dataGridViewCell.GetPreferredSize(rowIndex).Height; 1749preferredHeight = this.TopLeftHeaderCell.GetPreferredSize(-1).Height; 1763preferredHeight = Math.Max(preferredHeight, this.Columns[columnIndex].HeaderCell.GetPreferredSize(-1).Height); 1822preferredHeight = this.TopLeftHeaderCell.GetPreferredSize(-1).Height; 1836preferredHeight = Math.Max(preferredHeight, this.Columns[columnIndexTmp].HeaderCell.GetPreferredSize(-1).Height); 5843Math.Abs(dgvcme.Y - this.lastMouseClickInfo.y) <= hotDoubleClickZone.Height / 2) 9066int bordersAndPaddingHeight = 2*(this.BorderWidth + this.Padding.Size.Height); 9095int preferredHeight = Math.Min(minimumHeight + this.Rows.GetRowsHeight(DataGridViewElementStates.Visible), proposedConstraints.Height); 13042Math.Abs(this.ptMouseDownGridCoord.Y - ptGridCoord.Y) >= DataGridView.DragSize.Height) 19354new Size(-step, ClientSize.Height))); 19365new Size(step, ClientSize.Height))); 19379new Size(ClientSize.Width, ClientSize.Height - (pt.Y - rect.Bottom) - step)));
winforms\Managed\System\WinForms\DataGridViewRow.cs (2)
1412preferredRowThickness = Math.Max(preferredRowThickness, this.HeaderCell.GetPreferredSize(rowIndex).Height); 1429preferredCellThickness = dataGridViewCell.GetPreferredSize(rowIndex).Height;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (1)
200if (DpiHelper.IsScalingRequired && (b.Size.Width != iconsWidth || b.Size.Height != iconsHeight))
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (4)
266preferredHeight = txtEditingControl.PreferredSize.Height; 457Math.Max(1, constraintSize.Height - borderAndPaddingHeights - DATAGRIDVIEWTEXTBOXCELL_verticalTextMarginTopWithWrapping - DATAGRIDVIEWTEXTBOXCELL_verticalTextMarginBottom), 496DataGridViewCell.MeasureTextSize(graphics, formattedString, cellStyle.Font, flags).Height); 523preferredSize.Height = Math.Max(preferredSize.Height, borderAndPaddingHeights + DATAGRIDVIEWCELL_iconMarginHeight * 2 + iconsHeight);
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (12)
186int preferredWidth = 0, allowedHeight = constraintSize.Height - borderAndPaddingHeights; 252minHeightContent = DataGridViewCell.MeasureTextSize(graphics, val, cellStyle.Font, flags).Height; 297preferredSize.Height = Math.Max(preferredSize.Height, 336if (sizeConstraint.Height > sizeCell.Height) 338sizeConstraint.Height = sizeCell.Height; 405ptTextLocation.Y = cellBounds.Y + (cellBounds.Height - sizeText.Height) / 2; 410ptTextLocation.Y = cellBounds.Y + (cellBounds.Height - sizeText.Height) / 2; 415ptTextLocation.Y = cellBounds.Y + (cellBounds.Height - sizeText.Height) / 2; 420ptTextLocation.Y = cellBounds.Bottom - sizeText.Height; 425ptTextLocation.Y = cellBounds.Bottom - sizeText.Height; 430ptTextLocation.Y = cellBounds.Bottom - sizeText.Height;
winforms\Managed\System\WinForms\DataObject.cs (2)
156IntPtr hBitmapNew = SafeNativeMethods.CreateCompatibleBitmap(new HandleRef(null, hDC), bm.Size.Width, bm.Size.Height); 161SafeNativeMethods.BitBlt(new HandleRef(null, dcDest), 0, 0, bm.Size.Width, bm.Size.Height, new HandleRef(null, dcSrc), 0, 0, 0x00CC0020);
winforms\Managed\System\WinForms\DateTimePicker.cs (1)
881height += SystemInformation.BorderSize.Height * 4 + 3;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (4)
269maxSize.Width, maxSize.Height); 396if (pageSize.Height > maxSize.Height) 397maxSize.Height = pageSize.Height;
winforms\Managed\System\WinForms\DrawListViewItemEventArgs.cs (1)
173resultBounds = new Rectangle(originalBounds.X, originalBounds.Y, textSize.Width, textSize.Height);
winforms\Managed\System\WinForms\ErrorProvider.cs (7)
1038mirrordc.ViewportExtent = new Size(-(mirrordcExtent.Width), mirrordcExtent.Height); 1545y = control.Top + (control.Height - size.Height) / 2; 1549y = control.Bottom - size.Height; 1553return new Rectangle(x, y, size.Width, size.Height); 1709byte[] bits = new byte[widthInBytes * size.Height]; 1712for (int y = 0; y < size.Height; y++) { 1721region.Intersect(new Rectangle(0, 0, size.Width, size.Height));
winforms\Managed\System\WinForms\Form.cs (47)
1584if (value.Width < 0 || value.Height < 0 ) { 1589Properties.SetInteger(PropMaxTrackSizeHeight, value.Height); 1599if (Properties.GetInteger(PropMinTrackSizeHeight) > value.Height) { 1600Properties.SetInteger(PropMinTrackSizeHeight, value.Height); 1607if (!value.IsEmpty && (size.Width > value.Width || size.Height > value.Height)) { 1608Size = new Size(Math.Min(size.Width, value.Width), Math.Min(size.Height, value.Height)); 1742if (value.Width < 0 || value.Height < 0 ) { 1753Properties.SetInteger(PropMinTrackSizeHeight, value.Height); 1763if (Properties.GetInteger(PropMaxTrackSizeHeight) < value.Height) { 1764Properties.SetInteger(PropMaxTrackSizeHeight, value.Height); 1771if (size.Width < value.Width || size.Height < value.Height) { 1772Size = new Size(Math.Max(size.Width, value.Width), Math.Max(size.Height, value.Height)); 1782Size.Height, 3379float percY = AdjustScale(((float)newVar.Height) / ((float)baseVar.Height)); 3455bounds.Height = correct.Height; 3466if (correctClientSize.Height != currentClient.Height) { 3468int delta = correctClientSize.Height - currentClient.Height; 3593NativeMethods.RECT result = new NativeMethods.RECT(0, 0, clientSize.Width, clientSize.Height); 3992correct = ApplyBoundsConstraints(cp.X, cp.Y, correct.Width, correct.Height).Size; 3995cp.Height = correct.Height; 4466p.Y = (ownerRect.top + ownerRect.bottom - s.Height) / 2; 4469else if (p.Y + s.Height > screenRect.Y + screenRect.Height) 4470p.Y = screenRect.Y + screenRect.Height - s.Height; 4820form.SetBounds(new Rectangle(this.Left, this.Top, adjustedSize.Width, adjustedSize.Height), BoundsSpecified.None); 5067sizeGripRenderer.DrawBackground(e.Graphics, new Rectangle(sz.Width - SizeGripSize, sz.Height - SizeGripSize, SizeGripSize, SizeGripSize)); 5070ControlPaint.DrawSizeGrip(e.Graphics, BackColor, sz.Width - SizeGripSize, sz.Height - SizeGripSize, SizeGripSize, SizeGripSize); 5191m.Result = (IntPtr)(unchecked((Size.Height & 0xFFFF) << 16) | (Size.Width & 0xFFFF)); 5682restoredSize = SizeFromClientSize(restoredSize.Width, restoredSize.Height); 5686formStateEx[FormStateExWindowBoundsHeightIsClientSize]==1 ? restoredSize.Height : restoredWindowBounds.Height, 5901if (height > max.Height) { 5902height = max.Height; 5919if (height < min.Height) { 5920height = min.Height; 6040if (x != ClientSize.Width || y != ClientSize.Height) { 7185mmi.ptMinTrackSize.y = minTrack.Height; 7201if (minTrack.Height > virtualScreen.Height) { 7213mmi.ptMaxTrackSize.y = Math.Max(maxTrack.Height, minTrackWindowSize.Height); 7225mmi.ptMinTrackSize.y = Math.Max(mmi.ptMinTrackSize.y, SystemInformation.CaptionButtonSize.Height * 3); 7372pt.y >= (clientSize.Height - SizeGripSize) && 7373clientSize.Height >= SizeGripSize){
winforms\Managed\System\WinForms\GroupBox.cs (1)
220return new Rectangle(padding.Left, fontHeight + padding.Top, Math.Max(size.Width - padding.Horizontal, 0), Math.Max(size.Height - fontHeight - padding.Vertical, 0));
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (2)
173textBounds.Height = measuredBounds.Height; 266textBounds.Height = measuredBounds.Height;
winforms\Managed\System\WinForms\HtmlWindow.cs (2)
210ResizeTo(value.Width, value.Height); 434this.NativeHtmlWindow.ResizeTo(size.Width, size.Height);
winforms\Managed\System\WinForms\ImageList.cs (16)
271if (value.Height <= 0 || value.Height > maxImageHeight) { 272throw new ArgumentOutOfRangeException("ImageSize", SR.GetString(SR.InvalidBoundArgument, "ImageSize.Height", value.Height.ToString(CultureInfo.CurrentCulture), (1).ToString(CultureInfo.CurrentCulture), maxImageHeight.ToString())); 275if (imageSize.Width != value.Width || imageSize.Height != value.Height) { 276imageSize = new Size(value.Width, value.Height); 466if (size.Height != imageSize.Height) 544nativeImageList = new NativeImageList(SafeNativeMethods.ImageList_Create(imageSize.Width, imageSize.Height, flags, INITIAL_CAPACITY, GROWBY)); 616Draw(g, x, y, imageSize.Width, imageSize.Height, index); 722int offset = bmpData.Stride * imageSize.Height * index; 725result = new Bitmap(imageSize.Width, imageSize.Height, PixelFormat.Format32bppArgb); 726targetData = result.LockBits(new Rectangle(0, 0, imageSize.Width, imageSize.Height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb); 745result = new Bitmap(imageSize.Width, imageSize.Height); 752imageSize.Width, imageSize.Height, NativeMethods.CLR_NONE, NativeMethods.CLR_NONE, NativeMethods.ILD_TRANSPARENT); 1402if (value.Height != owner.ImageSize.Height)
winforms\Managed\System\WinForms\Label.cs (9)
790get { return PreferredSize.Height; } 1101yLoc = (r.Y+r.Height - 4)-pointImageSize.Height; 1107yLoc = r.Y + (r.Height - pointImageSize.Height)/2; 1110return new Rectangle(xLoc, yLoc, pointImageSize.Width, pointImageSize.Height); 1271if (proposedSize.Height == 1) { 1313new SizeF(0, proposedConstraints.Height) : 1314new SizeF(proposedConstraints.Width, proposedConstraints.Height); 1539showToolTip = (clientRect.Width < preferredSize.Width || clientRect.Height < preferredSize.Height); 1679height = preferredSize.Height;
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (2)
215bounds.Height = Math.Min(bounds.Height, value.Height); 237bounds.Height = Math.Max(bounds.Height, value.Height);
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (21)
58if(bounds.Width < prefSize.Width || bounds.Height < prefSize.Height) { 78Debug.Assert((CommonProperties.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink || newSize.Height >= oldBounds.Height && newSize.Width >= oldBounds.Width), 88location.Y -= newSize.Height - oldBounds.Height; 278Rectangle newElementBounds = new Rectangle(remainingBounds.X, remainingBounds.Y, elementSize.Width, elementSize.Height); 289Rectangle newElementBounds = new Rectangle(remainingBounds.X, remainingBounds.Bottom - elementSize.Height, elementSize.Width, elementSize.Height); 300Rectangle newElementBounds = new Rectangle(remainingBounds.X, remainingBounds.Y, elementSize.Width, elementSize.Height); 311Rectangle newElementBounds = new Rectangle(remainingBounds.Right - elementSize.Width, remainingBounds.Y, elementSize.Width, elementSize.Height); 326Rectangle newElementBounds = new Rectangle(remainingBounds.X, remainingBounds.Y, elementSize.Width, elementSize.Height); 405Size newSize = xGetDockedSize(element, remainingSize, /* constraints = */ new Size(1, remainingSize.Height), measureOnly); 408newSize.Height = remainingSize.Height; 410newSize.Height = Math.Max(newSize.Height, remainingSize.Height); 413Debug.Assert((measureOnly && (newSize.Height >= remainingSize.Height)) || (newSize.Height == remainingSize.Height), 448Debug.Assert((desiredSize.Width >= 0 && desiredSize.Height >= 0), "Error detected in xGetDockSize: Element size was negative."); 842prefSize.Height = Math.Max(prefSize.Height, elementSpace.Bottom); 863prefSize.Height = Math.Max(prefSize.Height, elementSpace.Bottom + anchorDest.Height); 866prefSize.Height = Math.Max(prefSize.Height, anchorDest.Bottom);
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (12)
60if(prefSize.Width > proposedConstraints.Width || prefSize.Height> proposedConstraints.Height) { 119Rectangle measureBounds = new Rectangle(displayRect.X, displayRect.Y, displayRect.Width, displayRect.Height - layoutSize.Height); 130layoutSize.Height + displayRect.Y, 132rowSize.Height); 136layoutSize.Height += rowSize.Height; 186Size elementConstraints = new Size(Int32.MaxValue, rowBounds.Height - elementProxy.Margin.Size.Height); 208if (prefSize.Height < elementProxy.MinimumSize.Height) { 209prefSize.Height = elementProxy.MinimumSize.Height; 252rowSize.Height = Math.Max(rowSize.Height, requiredSize.Height);
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (34)
59largestSize.Height = Math.Max(largestSize.Height, textSize.Height); 132if(size.Height == 0) size.Height = Int32.MaxValue; 199Math.Max(a.Height, b.Height)); 205Math.Min(a.Height, b.Height)); 285withinThis.Y += withinThis.Height - alignThis.Height; 288withinThis.Y += (withinThis.Height - alignThis.Height) / 2; 291withinThis.Height = alignThis.Height; 298withinThis.Y += withinThis.Height - alignThis.Height; 301withinThis.Y += (withinThis.Height - alignThis.Height) / 2; 304withinThis.Height = alignThis.Height; 312(anchorStyles & VerticalAnchorStyles) == VerticalAnchorStyles ? withinThis.Height : stretchThis.Height 317if (stretchedSize.Height > withinThis.Height) { 318stretchedSize.Height = withinThis.Height; 346currentSize.Height += contentSize.Height; 349currentSize.Height = Math.Max(currentSize.Height, contentSize.Height); 396size.Width = size.Height; 429return (size.Width == 0 || size.Height == 0); 433return ((size1.Width >= size2.Width) && (size1.Height >= size2.Height)); 450region1.Height = specifiedContent.Height; 451region2.Y += specifiedContent.Height; 452region2.Height -= specifiedContent.Height; 455region1.Y += bounds.Height - specifiedContent.Height; 456region1.Height = specifiedContent.Height; 457region2.Height -= specifiedContent.Height; 504currentSize.Height -= contentSize.Height; 586&& (sizeCache.PreferredSize.Height <= proposedConstraints.Height)) {
winforms\Managed\System\WinForms\Layout\TableLayout.cs (11)
197containerSize.Height = Math.Max(containerSize.Height, 1); 256containerSize.Height = Math.Max(containerSize.Height, 1); 269proposedConstraints.Height = Math.Max(proposedConstraints.Height, 1); 315if (rows.Length != 0 && totalSpace.Height > usedSpace.Height) { 316rows[rows.Length - 1].MinSize += totalSpace.Height - usedSpace.Height; 816if (dontHonorConstraint && (proposedConstraints.Height < Int16.MaxValue)) { 846int minHeight = GetElementSize(element, new Size(currentWidth-margin.Horizontal, 0)).Height + margin.Vertical; 852return DistributeStyles(containerInfo.CellBorderWidth, containerInfo.RowStyles, containerInfo.Rows, proposedConstraints.Height, dontHonorConstraint); 1778if (proposedContstraints.Height == 0 || proposedContstraints.Width == 0) {
winforms\Managed\System\WinForms\LinkLabel.cs (4)
704textSize.Height); 1146showToolTip = (clientRect.Width < preferredSize.Width || clientRect.Height < preferredSize.Height); 1186if (requiredSize.Height < finalrect.Height) { 1187finalrect.Height = requiredSize.Height;
winforms\Managed\System\WinForms\ListBox.cs (3)
640Size = new Size(oldSize.Width + 1, oldSize.Height); 760height += SystemInformation.BorderSize.Height * 4 + 3; 2280Rectangle rect = new Rectangle(0, 0, this.Size.Width - 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\ListView.cs (4)
1653if (value.IsEmpty || value.Height <= 0 || value.Width <= 0) { 1662tileViewInfo.sizeTile = new NativeMethods.SIZE(tileSize.Width, tileSize.Height); 5350tileViewInfo.sizeTile = new NativeMethods.SIZE(this.TileSize.Width, this.TileSize.Height); 6231Rectangle rect = new Rectangle(0, 0, this.Size.Width - 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\MaskedTextBox.cs (1)
3181Rectangle rect = new Rectangle(0, 0, this.Size.Width - 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\MonthCalendar.cs (8)
425SetCalendarDimensions(value.Width, value.Height); 1478int todayHeight = textExtent.Height + 4; // The constant 4 is from the comctl32 MonthCalendar source code 1479int calendarHeight = minSize.Height; 1500minSize.Height = (calendarHeight + INSERT_HEIGHT_SIZE) * dimensions.Height - INSERT_HEIGHT_SIZE + todayHeight; 1551return preferredSize.Height; 1965if (height > max.Height) 1966height = max.Height; 2058if (dimensions.Width != x || dimensions.Height != y) {
winforms\Managed\System\WinForms\NativeMethods.cs (1)
2732hicon = SafeNativeMethods.CopyImage(new HandleRef(icon, icon.Handle), NativeMethods.IMAGE_ICON, icon.Size.Width, icon.Size.Height, 0);
winforms\Managed\System\WinForms\PictureBox.cs (2)
462float ratio = Math.Min((float)ClientRectangle.Width / (float)imageSize.Width, (float)ClientRectangle.Height / (float)imageSize.Height); 464result.Height = (int) (imageSize.Height * ratio);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (14)
437double zoomY = ((double) controlPhysicalSize.Height - border*(rows + 1)) / (rows*pageSize.Height); 441imageSize = new Size((int) (zoom*pageSize.Width), (int) (zoom*pageSize.Height)); 443int virtualY = (imageSize.Height * rows) + border * (rows +1); 580Math.Max(0, (Size.Height - virtualPixels.Y) / 2)); 606double zoomY = ((double) controlPhysicalSize.Height - border*(rows + 1)) / (rows*pageSize.Height); 610imageSize = new Size((int) (zoom*pageSize.Width), (int) (zoom*pageSize.Height)); 680PhysicalToPixels(physicalSize.Height, dpi.Y)); 694PixelsToPhysical(pixels.Height, dpi.Y)); 744position.Y = Math.Min(position.Y, virtualSize.Height - Height); 767info.nMax = Math.Max(Height, virtualSize.Height) - 1; 796int maxPos = Math.Max(Height, virtualSize.Height/* - Height*/); 878maxPos = Math.Max(Height, virtualSize.Height/* - Height*/);
winforms\Managed\System\WinForms\PropertyGrid.cs (18)
1654if (DpiHelper.IsScalingRequired && (image.Size.Width != normalButtonSize.Width || image.Size.Height != normalButtonSize.Height)) { 2064if (size.Width != 16 || size.Height != 16) { 2307int gridBottom = gridTop + gridView.Size.Height; 2324high += hotcommands.Size.Height + 2; 2464this.imageList[LARGE_BUTTONS].Images.Add(new Bitmap((Bitmap)images[i], largeButtonSize.Width, largeButtonSize.Height)); 2994int toolStripHeight = ((LargeButtons) ? largeButtonSize : normalButtonSize).Height + toolStripButtonPaddingY; 3017int endSize = Size.Height; 3033dcRequestedHeight = doccomment.Visible ? doccomment.Size.Height : 0; 3034hcRequestedHeight = hotcommands.Visible ? hotcommands.Size.Height : 0; 3040dcRequestedHeight = doccomment.Size.Height; 3053hcRequestedHeight = hotcommands.Size.Height; 3212gridView.Invalidate(new Rectangle(0, gridView.Size.Height - cyDivider, Size.Width, cyDivider)); 3299int yLast = psheetLoc.Y + gridView.Size.Height; 3304yLast += hotcommands.Size.Height; 3310yLast += doccomment.Size.Height; 3314pevent.Graphics.FillRectangle(background, new Rectangle(0, yLast, width, Size.Height - yLast)); 4660if (me.Y <= 1 || (size.Height - me.Y) <= 1) {
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (5)
81int height = m_labelTitle.Size.Height; 95height += (sz.Height * 2) + padding; 145size.Height = Math.Max(0, size.Height - 2 * cBorder); 150Math.Min(lineHeight, size.Height), 156Math.Max(0, size.Height - lineHeight - (DpiHelper.EnableDpiChangedHighDpiImprovements ? LogicalToDeviceUnits(1) : 1)),
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (1)
68return new Rectangle(4, 4, sz.Width - 8, sz.Height - 8);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (27)
330if ((DpiHelper.IsScalingRequired || DpiHelper.EnableDpiChangedHighDpiImprovements) && (b.Size.Width != iconsWidth || b.Size.Height != iconsHeight)) { 1644if (rectScreen.Y + rectScreen.Height < (size.Height + loc.Y + Edit.Height)) { 1645loc.Y -= size.Height; 1659if (this.Width == size.Width && this.Height == size.Height) { 1663SafeNativeMethods.SetWindowPos(new HandleRef(this.dropDownHolder, this.dropDownHolder.Handle), NativeMethods.NullHandleRef, loc.X, loc.Y, size.Width, size.Height, flags); 1665dropDownHolder.SetBounds(loc.X, loc.Y, size.Width, size.Height); 1723if (rectScreen.Y + rectScreen.Height < (size.Height + loc.Y + Edit.Height)) { 1724loc.Y -= size.Height; 1736dropDownHolder.SetBounds(loc.X, loc.Y, size.Width, size.Height); 2121size.Height = sizeWindow.Height; 2229boundsScroll.Height = sizeWindow.Height - 2; 2263rect.Height = (Size.Height - rect.Y) - 1; 2367Invalidate(new Rectangle(left, 0, Size.Width - left, Size.Height)); 2446if ((Size.Width > doubleOffset) && (Size.Height > doubleOffset)) { 2448ControlPaint.DrawFocusRectangle(g, new Rectangle(offset_2Units, offset_2Units, Size.Width - doubleOffset, Size.Height - doubleOffset)); 2607Rectangle clearRect = new Rectangle(1, 1, Size.Width - 2, Size.Height - 2); 2814Math.Abs(screenPoint.Y - rowSelectPos.Y) < SystemInformation.DoubleClickSize.Height) { 3556if (yPos < Size.Height) { 3558Rectangle clearRect = new Rectangle(1, yPos, Size.Width - 2, Size.Height - yPos - 1); 3566g.DrawRectangle(borderPen, 0, 0, sizeWindow.Width - 1, sizeWindow.Height - 1); 4318int maxRows = (int)Math.Ceiling(((double)GetOurSize().Height)/(1+RowHeight)); 4530visibleRows = (int)Math.Ceiling(((double)size.Height)/(1+RowHeight)); 5838newBounds.Height = Math.Max(MinDropDownSize.Height, dragBaseRect.Height + (dragPoint.Y - dragStart.Y)); 5849if ((dragBaseRect.Height - delta) > MinDropDownSize.Height) 6048if (this.Size.Height < this.PreferredSize.Height) { 6049this.Size = new Size(this.Size.Width, this.PreferredSize.Height);
winforms\Managed\System\WinForms\RadioButton.cs (2)
324size.Height = DpiHelper.EnableDpiChangedHighDpiImprovements ? Math.Max(size.Height + 5, flatSystemStyleMinimumHeight) : size.Height + 5; // ensure minimum height to avoid truncation of RadioButton circle or text
winforms\Managed\System\WinForms\ScrollableControl.cs (12)
166if (value.Width < 0 || value.Height < 0) { 169SetAutoScrollMargin(value.Width, value.Height); 287if(AutoScrollMinSize.Width != 0 && AutoScrollMinSize.Height != 0) { 289displayRectangle.Height = Math.Max(displayRectangle.Height, AutoScrollMinSize.Height); 474scrollMargin.Height += current.Size.Height; 486maxY = userAutoScrollMinSize.Height + scrollMargin.Height; 502if (layoutBounds.Height > maxY) { 504maxY = layoutBounds.Height; 558int ctlBottom = -display.Y + bounds.Y + bounds.Height + scrollMargin.Height; 949int yMargin = scrollMargin.Height; 1055|| y != requestedScrollMargin.Height) {
winforms\Managed\System\WinForms\SplitContainer.cs (2)
1452if (DesignMode && Height != DefaultSize.Height && value + Panel2MinSize + SplitterWidth > Height) { 1477if (DesignMode && Height != DefaultSize.Height && value + Panel1MinSize + SplitterWidth > Height) {
winforms\Managed\System\WinForms\Splitter.cs (1)
752maxSize = clientSize.Height - dockHeight - minExtra;
winforms\Managed\System\WinForms\StatusBarPanel.cs (1)
204if (value != null && (((Icon)value).Height > SystemInformation.SmallIconSize.Height || ((Icon)value).Width > SystemInformation.SmallIconSize.Width)) {
winforms\Managed\System\WinForms\StatusStrip.cs (7)
101return new Padding(1, 3, 1, DefaultSize.Height); 228int gripHeight = Math.Min(DefaultSize.Height, statusStripSize.Height); 231return new Rectangle(0, statusStripSize.Height - gripHeight, gripWidth, gripHeight); 234return new Rectangle(statusStripSize.Width - gripWidth, statusStripSize.Height - gripHeight, gripWidth, gripHeight); 311if (proposedSize.Height == 1) { 379noMansLand.Y += ClientSize.Height + 1;
winforms\Managed\System\WinForms\SystemInformation.cs (1)
1041return new Rectangle(0, 0, size.Width, size.Height);
winforms\Managed\System\WinForms\TabControl.cs (3)
574if (value.Width < 0 || value.Height < 0) { 1077SendMessage(NativeMethods.TCM_SETITEMSIZE, 0, (int)NativeMethods.Util.MAKELPARAM(itemSize.Width, itemSize.Height)); 1636Size = new Size(size.Width + 1, size.Height);
winforms\Managed\System\WinForms\TextBox.cs (1)
849Rectangle rect = new Rectangle(0, 0, this.Size.Width - 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\TextBoxBase.cs (2)
947height += SystemInformation.GetBorderSizeForDpi(deviceDpi).Height * 4 + 3; 990textSize.Height = Math.Max(textSize.Height, FontHeight);
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (4)
250if (textSize.Height > scaledMaxHeight) textSize.Height = scaledMaxHeight; 253int buttonTop = Math.Max(textSize.Height, scaledMaxTextHeight) + scaledPaddingHeight; 292scaledMessageTopPadding + (scaledMaxTextHeight - Math.Min(textSize.Height, scaledMaxTextHeight)) / 2, 293textSize.Width, textSize.Height);
winforms\Managed\System\WinForms\ToolBar.cs (10)
399if (value.Width < 0 || value.Height < 0) 702height = ButtonSize.Height; 737height += SystemInformation.BorderSize.Height; 740height += SystemInformation.Border3DSize.Height; 788width += SystemInformation.BorderSize.Height * 4 + 3; 1310Size = new Size(size.Width + 1, size.Height); 1440SendMessage(NativeMethods.TB_SETBUTTONSIZE, 0, NativeMethods.Util.MAKELPARAM((int)(buttonSize.Width*currentScaleDX), (int)(buttonSize.Height*currentScaleDY))); 1731int y = this.Location.Y + (this.ButtonSize.Height / 2); 1738leftTop.y += (this.ButtonSize.Height / 2) + 1; 1744leftTop.y -= ((this.ButtonSize.Height / 2) + tooltipHeight + 1);
winforms\Managed\System\WinForms\ToolStrip.cs (11)
2453if (proposedSize.Height == 1) { 2482maxSize.Height = Math.Max(0, defaultSize.Height); 2496maxSize.Height = Math.Max(maxSize.Height, itemMargin.Vertical + prefItemSize.Height); 2550maxSize.Height += itemMargin.Vertical + preferredSize.Height; 3728SafeNativeMethods.BitBlt(itemHDC, 0, 0, item.Size.Width, item.Size.Height, toolStripHDC, item.Bounds.X, item.Bounds.Y, NativeMethods.SRCCOPY); 3736SafeNativeMethods.BitBlt(toolStripHDC, item.Bounds.X, item.Bounds.Y, item.Size.Width, item.Size.Height, itemHDC, 0, 0, NativeMethods.SRCCOPY); 4619cursorLocation.Y += Cursor.Size.Height - currentCursor.HotSpot.Y; 5227|| (cachedHDCSize.Height < bitmapSize.Height)) { 5236cachedItemBitmap = new HandleRef(this, SafeNativeMethods.CreateCompatibleBitmap(toolStripHDC, bitmapSize.Width, bitmapSize.Height));
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (2)
295int heightOfDropDown = dropDownArrowSize.Height + scaledDropDownArrowPadding.Vertical; 300dropDownArrowRect = new Rectangle(0,options.client.Bottom + scaledDropDownArrowPadding.Top, ownerItem.Bounds.Width-1, dropDownArrowSize.Height);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (24)
355menuItemTextSize.Height = Math.Max(menuItemTextSize.Height, shortcutTextSize.Height); 360maxTextSize.Height = Math.Max(maxTextSize.Height, menuItemTextSize.Height); 369maxImageSize.Height = Math.Max(maxImageSize.Height, imageSize.Height); 374maxCheckSize.Height = Math.Max(checkedImageSize.Height, maxCheckSize.Height); 378maxNonMenuItemSize.Height = Math.Max(item.Bounds.Height, maxNonMenuItemSize.Height); 383this.maxItemSize.Height = Math.Max(maxTextSize.Height + scaledTextPadding.Vertical, Math.Max(maxCheckSize.Height + scaledCheckPadding.Vertical, maxArrowSize.Height + scaledArrowPadding.Vertical)); 387this.maxItemSize.Height = Math.Max(maxImageSize.Height + scaledImagePadding.Vertical, maxItemSize.Height); 393maxArrowSize = new Size(scaledArrowSize, maxItemSize.Height); 395maxTextSize.Height = maxItemSize.Height - scaledTextPadding.Vertical; 396maxImageSize.Height = maxItemSize.Height - scaledImagePadding.Vertical; 397maxCheckSize.Height = maxItemSize.Height - scaledCheckPadding.Vertical; 417 checkRectangle = LayoutUtils.Align(maxCheckSize, new Rectangle(nextPoint.X, nextPoint.Y, maxCheckSize.Width, maxItemSize.Height), ContentAlignment.MiddleCenter); 422imageRectangle = LayoutUtils.Align(maxImageSize, new Rectangle(nextPoint.X, nextPoint.Y, maxImageSize.Width, maxItemSize.Height), ContentAlignment.MiddleCenter); 433checkRectangle = LayoutUtils.Align(maxCheckSize, new Rectangle(nextPoint.X, nextPoint.Y, checkAndImageMarginWidth, maxItemSize.Height), ContentAlignment.MiddleCenter); 452checkRectangle = LayoutUtils.Align(LayoutUtils.UnionSizes(maxCheckSize,maxImageSize), new Rectangle(nextPoint.X, nextPoint.Y, checkAndImageMarginWidth-1, maxItemSize.Height), ContentAlignment.MiddleCenter); 508this.maxItemSize.Height += this.maxItemSize.Height%2; 788Point downLocation = new Point(1, height - downSize.Height);
winforms\Managed\System\WinForms\ToolStripGrip.cs (4)
121if (preferredSize.Height > constrainingSize.Height) { 122preferredSize.Height = constrainingSize.Height; 170if (deltaY >= DragSize.Height) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
339if (DpiHelper.IsScalingRequired && (b.Size.Width != desiredIconSize.Width || b.Size.Height != desiredIconSize.Height))
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (1)
113preferredSize.Height = Math.Min(constrainingSize.Height, maxHeight);
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (9)
149if (MaximumSize.Height >= Control.PreferredSize.Height) { 157if (MaximumSize.Height + growBy >= Control.PreferredSize.Height) { 158int freed = Control.PreferredSize.Height - MaximumSize.Height; 166if (MaximumSize.Height + growBy < Control.PreferredSize.Height) { 248preferredSize.Height = constrainingSize.Height;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (6)
530if (cachedBounds.Height > minSize.Height) { 531spaceToFree -= (cachedBounds.Height - minSize.Height); 533cachedBounds.Height = (spaceToFree < 0) ? minSize.Height + -spaceToFree : minSize.Height; 1507return totalSize.Height < DisplayRectangle.Height; 1840int controlToDragWidth = (toolStripToDrag.AutoSize) ? toolStripToDrag.PreferredSize.Height : toolStripToDrag.Height;
winforms\Managed\System\WinForms\ToolStripRenderer.cs (4)
937using (Bitmap textBmp = new Bitmap(textSize.Width, textSize.Height,PixelFormat.Format32bppPArgb)) { 1079Bitmap disabledBitmap = new Bitmap(size.Width, size.Height); 1083new Rectangle(0, 0, size.Width, size.Height), 10840, 0, size.Width, size.Height,
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
429return new Size(WINBAR_SEPARATORTHICKNESS, constrainingSize.Height);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (17)
172int overflowWidth = (OverflowRequired) ? OverflowButtonSize.Height : 0; 174currentHeight += itemSize.Height + item.Margin.Vertical; 232noMansLand.Y += toolStrip.ClientSize.Height + 1; 332alignedRightItems = (alignedRightItems == Rectangle.Empty) ? new Rectangle(x,y,itemSize.Width, itemSize.Height) 333: Rectangle.Union(alignedRightItems, new Rectangle(x,y,itemSize.Width, itemSize.Height)); 345alignedLeftItems = (alignedLeftItems == Rectangle.Empty) ? new Rectangle(x,y,itemSize.Width, itemSize.Height) 346: Rectangle.Union(alignedLeftItems, new Rectangle(x,y,itemSize.Width, itemSize.Height)); 406bool needOverflow = toolStrip.CanOverflow && ((OverflowRequired) || (OverflowSpace >= OverflowButtonSize.Height)); 460y = lastBottom - (itemMargin.Bottom + itemSize.Height); 462alignedRightItems = (alignedRightItems == Rectangle.Empty) ? new Rectangle(x,y,itemSize.Width, itemSize.Height) 463: Rectangle.Union(alignedRightItems, new Rectangle(x,y,itemSize.Width, itemSize.Height)); 469lastTop = y + itemSize.Height + itemMargin.Bottom; 470alignedLeftItems = (alignedLeftItems == Rectangle.Empty) ? new Rectangle(x,y,itemSize.Width, itemSize.Height) 471: Rectangle.Union(alignedLeftItems, new Rectangle(x,y,itemSize.Width, itemSize.Height)); 615freedSpace += (horizontal) ? itemSize.Width + itemMargin.Horizontal : itemSize.Height + itemMargin.Vertical; 626spaceNeeded += (horizontal) ? OverflowButtonSize.Width : OverflowButtonSize.Height; 633this.OverflowSpace += (horizontal) ? itemSize.Width + itemMargin.Horizontal : itemSize.Height + itemMargin.Vertical;
winforms\Managed\System\WinForms\ToolTip.cs (10)
1763Point optimalPoint = this.GetOptimalToolTipPosition(tool, toolRectangle, bubbleSize.Width, bubbleSize.Height); 2169if (moveToLocation.Y + tipSize.Height> screen.WorkingArea.Bottom) { 2170moveToLocation.Y = screen.WorkingArea.Bottom - tipSize.Height; 2175moveToLocation.X, moveToLocation.Y, tipSize.Width, tipSize.Height, 2326if (r.Size.Height > currentTooltipSize.Height) currentTooltipSize.Height = r.Size.Height; 2355r.left, r.top, currentTooltipSize.Width, currentTooltipSize.Height, 2451if (wp->y + wp->cy + currentCursor.Size.Height - currentCursor.HotSpot.Y > screen.WorkingArea.Bottom) { 2455wp->y = cursorPos.Y + currentCursor.Size.Height - currentCursor.HotSpot.Y;
winforms\Managed\System\WinForms\TreeNode.cs (1)
640visible = (rc.bottom > 0 && rc.right > 0 && rc.top < size.Height && rc.left < size.Width);
winforms\Managed\System\WinForms\TreeView.cs (1)
3137Rectangle rect = new Rectangle(0, 0, this.Size.Width - 1, this.Size.Height - 1);
winforms\Managed\System\WinForms\UpDownBase.cs (4)
536height += SystemInformation.BorderSize.Height * 4 + 3; 1468int half_height = Size.Height / 2; 1692int half_height = ClientSize.Height / 2; 1732if (half_height != (ClientSize.Height + 1) / 2) {
winforms\Managed\System\WinForms\WebBrowserBase.cs (3)
849extent = SetExtent(extent.Width, extent.Height); 852Bounds = new Rectangle(location.X, location.Y, extent.Width, extent.Height); 1991wp->cy = s.Height;
System.Windows.Forms.DataVisualization (61)
Common\General\Legend.cs (36)
477 Math.Min(legendPosition.Height, titleSize.Height)); 502 highestHeader.Height = Math.Max(highestHeader.Height, headerSize.Height); 514 Math.Min(legendPosition.Height - this._titlePosition.Height, highestHeader.Height)); 530 legendPosition.Y + this._offset.Height + this.GetBorderSize() + this._titlePosition.Height + this._headerPosition.Height, 532 legendPosition.Height - 2 * (this._offset.Height + this.GetBorderSize()) ); 815 if(itemHalfSpacing.Height > 0) 817 cellPosition.Y += itemHalfSpacing.Height * rowIndex * 2 + itemHalfSpacing.Height; 952 highestHeader.Height = Math.Max(highestHeader.Height, headerSize.Height); 961 legenItemsMaxSize.Height -= 2 * (this._offset.Height + this.GetBorderSize()); 962 legenItemsMaxSize.Height -= titleSize.Height; 963 legenItemsMaxSize.Height -= highestHeader.Height; 1038 optimalSize.Height = (legenItemsMaxSize.Height - vertSpaceLeft) + titleSize.Height + highestHeader.Height; 1039 optimalSize.Height += 2 * (this._offset.Height + this.GetBorderSize()); 1055 if(optimalSize.Height > maxSize.Height) 1057 optimalSize.Height = maxSize.Height; 1063 if(optimalSize.Height < 0) 1540 (columnHeight + nextColumnFirstItemHeight) < legendSize.Height) 1808 cellHeights[currentColumn, currentRow] = cellSize.Height; 1813 Math.Max(cellHeights[currentColumn, currentRow], cellSize.Height); 2031 verticalSpaceLeft = legendItemsAreaSize.Height - totalHeight; 2473 separatorPosition.Height = this.GetSeparatorSize(legendItem.SeparatorType).Height; 2542 this._legendItemsAreaPosition.Bottom + (this._truncatedDotsSize + this._offset.Height) / 2); 3987 titleSize.Height += this._offset.Height; 3991 titleSize.Height += this.GetSeparatorSize(this.TitleSeparator).Height; 4014 headerSize.Height += this._offset.Height; 4018 headerSize.Height += this.GetSeparatorSize(this.HeaderSeparator).Height; 4041 legendPosition.Height -= 2 * (this._offset.Height + this.GetBorderSize()); 4101 fillRect.Y -= this._offset.Height; 4102 fillRect.Height += this._offset.Height; 4316 rect.Y += this._offset.Height;
Common\General\LegendColumns.cs (18)
403 if(value.Width < 0 || value.Height < 0) 1194 if(value.Width < 0 || value.Height < 0) 1220 if(value.Width < 0 || value.Height < 0) 1448 this.cellPosition.Y += (int)(this.Margins.Top * singleWCharacterSize.Height / 100f); 1451 this.cellPosition.Height -= (int)(this.Margins.Top * singleWCharacterSize.Height / 100f) 1452 + (int)(this.Margins.Bottom * singleWCharacterSize.Height / 100f); 1458 this.cellPosition.Height -= this.Legend.GetSeparatorSize(LegendItem.SeparatorType).Height; 1501 cellSize.Height = (int)(Math.Abs(this.SeriesSymbolSize.Height) * singleWCharacterSize.Height / 100f); 1519 cellSize.Height = (int)(Math.Abs(this.ImageSize.Height) * singleWCharacterSize.Height / 100f); 1539 cellSize.Height += (int)((this.Margins.Top + this.Margins.Bottom) * singleWCharacterSize.Height / 100f); 1545 cellSize.Height += this.Legend.GetSeparatorSize(LegendItem.SeparatorType).Height; 2118 if(this.ImageSize.Height > 0) 2120 int newHeight = (int)(this.ImageSize.Height * singleWCharacterSize.Height / 100f); 2233 if(this.SeriesSymbolSize.Height >= 0) 2235 int newHeight = (int)(this.SeriesSymbolSize.Height * singleWCharacterSize.Height / 100f);
Common\Utilities\XmlSerializer.cs (1)
2725 writer.Write(((Size)obj).Height);
WinForm\ChartWinControl.cs (6)
744 chartPicture.Height = this.Size.Height; 1380chartPicture.InspectChartDimensions(value.Width, value.Height); 2147ControlPaint.DrawFocusRectangle(g, new Rectangle(1, 1, Size.Width - 2, Size.Height - 2)); 2167Rectangle rightBorder = new Rectangle(Size.Width - 2, 1, 1, Size.Height - 2); 2170Rectangle bottomBorder = new Rectangle(1, Size.Height - 2, Size.Width - 2, 1); 2173Rectangle leftBorder = new Rectangle(1, 1, 1, Size.Height - 2);
System.Workflow.Activities (111)
Designers\ConditionalDesigner.cs (5)
98diamondRectangle.Width = compositeDesignerTheme.ConnectorSize.Height - 2 * e.AmbientTheme.Margin.Height + 2; 101diamondRectangle.Y = bounds.Top + TitleHeight + (compositeDesignerTheme.ConnectorSize.Height * 3 / 2 - diamondRectangle.Height) / 2 + 1; 109diamondRectangle.Y = bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height * 3 / 2 + (compositeDesignerTheme.ConnectorSize.Height * 3 / 2 - diamondRectangle.Height) / 2 + 1;
Designers\ListenDesigner.cs (5)
78roundRectangle.Width = compositeDesignerTheme.ConnectorSize.Height - 2 * e.AmbientTheme.Margin.Height - 1; 81roundRectangle.Y = bounds.Top + TitleHeight + (compositeDesignerTheme.ConnectorSize.Height * 3 / 2 - roundRectangle.Height) / 2; 86roundRectangle.Y = bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height * 3 / 2 + (compositeDesignerTheme.ConnectorSize.Height * 3 / 2 - roundRectangle.Height) / 2;
Designers\SetStateDesigner.cs (7)
46textRectangle.Offset(0, (-targetStateSize.Height - margin.Height) / 2); 57imageRectangle.Offset(0, (-targetStateSize.Height - margin.Height) / 2); 95textRectangle.Bottom + (margin.Height / 2)); 98targetStateSize.Height); 162size.Height += targetStateSize.Height;
Designers\StateDesigner.cs (5)
1463Size newSize = new Size(this.Size.Width, this.Size.Height + ((maximumY + DefaultStateDesignerAutoLayoutDistance) - this.Bounds.Bottom)); 1503bounds.Offset(Separator.Width - this.Location.X, Separator.Height - this.Location.Y); 1505newSize.Height = Math.Max(newSize.Height, bounds.Bottom); 1509newSize.Height = Math.Max(newSize.Height, this.MinimumSize.Height);
Designers\StateDesigner.Layouts.cs (47)
451int height = Math.Max(_imageSize.Height, _textSize.Height); 452height += ambientTheme.Margin.Height; 463origin.Y += ambientTheme.Margin.Height / 2; 653layout.ResizeLayout(new Size(maxEventDrivenWidth, size.Height)); 666minimumSize.Height += layout.Size.Height; 667minimumSize.Height += selectionSize.Height; 678size.Width = Math.Max(containerSize.Width, minimumSize.Height); 679size.Height = minimumSize.Height; 695y += layout.Size.Height + selectionSize.Height; 774size.Height = Math.Max(size.Height, layout.Size.Height); 812_breadCrumbSeparatorSize.Height); 970minimumSize.Height = Math.Max(_textLayout.Size.Height, _imageLayout.Size.Height); 1052_textLayout.Location = new Point(xPos, this.Location.Y + margin.Height); 1053_textLayout.Size = new Size(maxStringWidth, _textLayout.Size.Height); 1104minimumSize.Height = Math.Max(minimumSize.Height, RealMinimumSize.Height); 1133int minHeight = _titleBarLayout.MinimumSize.Height + _eventHandlersLayout.MinimumSize.Height; 1137size.Height = Math.Max(minHeight, size.Height); 1142int maximumY = _titleBarLayout.Size.Height + 1143_eventHandlersLayout.Size.Height + 1160maximumY += designer.Size.Height + DefaultStateDesignerAutoLayoutDistance; 1172_titleBarLayout.ResizeLayout(new Size(size.Width, _titleBarLayout.Size.Height)); 1204Size 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)); 1321size.Height = Math.Max(size.Height, minSize.Height); 1336activeDesignerSize.Height + 1337_titleBarLayout.Size.Height + 1338_breadCrumbBarLayout.Size.Height + 1340ambientTheme.SelectionSize.Height * 2; 1341size.Height = Math.Max(size.Height, minHeight); 1342_titleBarLayout.ResizeLayout(new Size(size.Width, _titleBarLayout.Size.Height)); 1349size.Height = Math.Max(size.Height, activeDesigner.Size.Height + ActiveDesignerPadding * 2 + _designerLayout.Size.Height + ambientTheme.SelectionSize.Height * 2); 1369origin.Y += _titleBarLayout.Size.Height + ActiveDesignerPadding; 1372origin.Y += _breadCrumbBarLayout.Size.Height + ActiveDesignerPadding; 1378bounds.Top + ambientTheme.SelectionSize.Height); 1381origin.Y = _designerLayout.Bounds.Bottom + ambientTheme.SelectionSize.Height + ActiveDesignerPadding; 1406_titleBarLayout.ResizeLayout(new Size(newSize.Width, _titleBarLayout.Size.Height));
Designers\StateDesignerConnector.cs (4)
174Size arrowCapSize = new Size(theme.ConnectorSize.Width / 5, theme.ConnectorSize.Height / 5); 211Size arrowCapSize = new Size(theme.ConnectorSize.Width / 5, theme.ConnectorSize.Height / 5); 229Rectangle bounds = new Rectangle(point.X - size.Width / 2, point.Y - size.Height / 2, size.Width, size.Height);
Designers\StateMachineDesignerPaint.cs (26)
44textSize = graphics.MeasureString(text, font, new SizeF(maxSize.Width, maxSize.Height), format); 121int capSize = (startSegment[0].Y == startSegment[1].Y) ? connectorCapSize.Width : connectorCapSize.Height; 123capSize = Math.Min(Math.Min(capSize, maxCapSize.Width), maxCapSize.Height); 148int capSize = (endSegment[0].Y == endSegment[1].Y) ? connectorCapSize.Width : connectorCapSize.Height; 150capSize = Math.Min(Math.Min(capSize, maxCapSize.Width), maxCapSize.Height); 386int arcRadius = capSize.Height / 3; 387lineCapPath.AddLine(capSize.Width / 2, -capSize.Height, 0, 0); 388lineCapPath.AddLine(0, 0, -capSize.Width / 2, -capSize.Height); 389lineCapPath.AddLine(-capSize.Width / 2, -capSize.Height, 0, -capSize.Height + arcRadius); 390lineCapPath.AddLine(0, -capSize.Height + arcRadius, capSize.Width / 2, -capSize.Height); 391capinset = capSize.Height - arcRadius; 396lineCapPath.AddLine(0, -capSize.Height, capSize.Width / 2, -capSize.Height / 2); 397lineCapPath.AddLine(capSize.Width / 2, -capSize.Height / 2, 0, 0); 398lineCapPath.AddLine(0, 0, -capSize.Width / 2, -capSize.Height / 2); 399lineCapPath.AddLine(-capSize.Width / 2, -capSize.Height / 2, 0, -capSize.Height); 404lineCapPath.AddEllipse(new Rectangle(-capSize.Width / 2, -capSize.Height, capSize.Width, capSize.Height)); 409lineCapPath.AddRectangle(new Rectangle(-capSize.Width / 2, -capSize.Height, capSize.Width, capSize.Height)); 414arcRadius = capSize.Height / 4; 415lineCapPath.AddPath(ActivityDesignerPaint.GetRoundedRectanglePath(new Rectangle(-capSize.Width / 2, -capSize.Height, capSize.Width, capSize.Height), arcRadius), true);
Designers\StateMachineWorkflowDesigner.cs (5)
82minimumSize.Height = Math.Max(minimumSize.Height, MinSize.Height); 86minimumSize.Height = Math.Max(minimumSize.Height, ParentView.ViewPortSize.Height - StateDesigner.Separator.Height * 2);
Designers\WhileDesigner.cs (5)
51connectionPoint = new Point(bounds.Left + bounds.Width / 2 + e.AmbientTheme.Margin.Width / 2, bounds.Top + e.AmbientTheme.Margin.Height / 2); 55points[0].Y = bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height / 3; 57points[1].Y = bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height / 3; 75connectors[connectors.GetLength(0) - 1].Height = connectors[connectors.GetLength(0) - 1].Height - (((designerTheme != null) ? designerTheme.ConnectorSize.Height : 0) / 3); 88containerSize.Height += compositeDesignerTheme.ConnectorSize.Height;
Rules\Design\Dialogs\IntellisenseTextBox.cs (2)
449if (listboxRectangle.Bottom > topLevelControlSize.Height) 450this.listBoxAutoComplete.Size = new Size(this.listBoxAutoComplete.Width, topLevelControlSize.Height - listboxRectangle.Top);
System.Workflow.ComponentModel (463)
AuthoringOM\Design\ActivityDesigner.cs (19)
238value.Height = Math.Max(value.Height, MinimumSize.Height); 542textRectangle.Y = bounds.Top + (bounds.Height - this.textSize.Height) / 2; 565imageRectangle.Y = bounds.Top + (bounds.Height - DesignerTheme.ImageSize.Height) / 2; 1060Bitmap designerImage = new Bitmap(Size.Width + (4 * ambientTheme.Margin.Width), Size.Height + (4 * ambientTheme.Margin.Height), PixelFormat.Format32bppArgb); 1068graphics.TranslateTransform(-Location.X + 2 * ambientTheme.Margin.Width, -Location.Y + 2 * ambientTheme.Margin.Height); 1724this.textSize.Height = requestedLineSize.Height; 1737size.Height = e.AmbientTheme.Margin.Height + Math.Max(e.DesignerTheme.ImageSize.Height, this.textSize.Height) + e.AmbientTheme.Margin.Height; 1978using (Bitmap temporaryBitmap = new Bitmap(designerTheme.Size.Width, designerTheme.Size.Height, PixelFormat.Format32bppArgb)) 3043smartTagRectangle.Y = rectangle.Top - margin.Height / 2; 3045smartTagRectangle.Height = imageSize.Height + margin.Height; 3096imageRectangle.Y += margin.Height / 2; 3103dropDownRectangle.Y += margin.Height / 2; 3105dropDownRectangle.Height -= glyphSize.Height / 4;
AuthoringOM\Design\ActivityPreviewDesigner.cs (34)
160this.previewStrip.Location = new Point(this.previewStrip.Location.X + moveDelta.Width, this.previewStrip.Location.Y + moveDelta.Height); 164this.previewWindow.Location = new Point(this.previewWindow.Location.X + moveDelta.Width, this.previewWindow.Location.Y + moveDelta.Height); 165this.separatorLine[0] = new Point(this.separatorLine[0].X + moveDelta.Width, this.separatorLine[0].Y + moveDelta.Height); 166this.separatorLine[1] = new Point(this.separatorLine[1].X + moveDelta.Width, this.separatorLine[1].Y + moveDelta.Height); 172PreviewedDesigner.Location = new Point(Location.X + (Size.Width - PreviewedDesigner.Size.Width) / 2, Location.Y + headerHeight + 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height); 301int headerHeight = ambientTheme.Margin.Height; 302headerHeight += this.previewStrip.Size.Height; 303headerHeight += ambientTheme.Margin.Height; 572this.previewStrip.Location = new Point(bounds.Left + bounds.Width / 2 - this.previewStrip.Size.Width / 2, Location.Y + TitleHeight + e.AmbientTheme.Margin.Height); 581this.previewWindow.Location = new Point(bounds.Left + bounds.Width / 2 - this.previewWindow.Size.Width / 2, previewStripRectangle.Bottom + 3 * e.AmbientTheme.Margin.Height); 585this.separatorLine[0].Y += e.AmbientTheme.Margin.Height + e.AmbientTheme.Margin.Height / 2; 589this.separatorLine[1].Y += e.AmbientTheme.Margin.Height + e.AmbientTheme.Margin.Height / 2; 595PreviewedDesigner.Location = new Point(Location.X + (Size.Width - PreviewedDesigner.Size.Width) / 2, Location.Y + headerHeight + 2 * e.AmbientTheme.Margin.Height); 614containerSize.Height += this.previewStrip.Size.Height; 615containerSize.Height += e.AmbientTheme.Margin.Height; 625containerSize.Height += 4 * e.AmbientTheme.Margin.Height; 626containerSize.Height += this.previewWindow.Size.Height; 627containerSize.Height += e.AmbientTheme.Margin.Height; 634containerSize.Height += size.Height; 638containerSize.Height = Math.Max(containerSize.Height, MinimumSize.Height); 645containerSize.Height -= previewDesignerTheme.ConnectorSize.Height; 646containerSize.Height -= 2 * e.AmbientTheme.Margin.Height; 647containerSize.Height -= 2 * e.AmbientTheme.SelectionSize.Height; 650Size margins = new Size(2 * e.AmbientTheme.Margin.Width + 2 * e.AmbientTheme.SelectionSize.Width, 2 * e.AmbientTheme.Margin.Height + 2 * e.AmbientTheme.SelectionSize.Height); 651PreviewedDesigner.Size = new Size(containerSize.Width - margins.Width, containerSize.Height - (TitleHeight + this.previewStrip.Size.Height + margins.Height)); 989configErrorSize.Height = configErrorSize.Height * 3 / 4; 991Point configErrorLocation = new Point(rectangle.Right - configErrorSize.Width / 2, rectangle.Top - configErrorSize.Height / 2); 998rectangle.Inflate(ambientTheme.Margin.Width / 2, ambientTheme.Margin.Height / 2);
AuthoringOM\Design\CommandSet.cs (2)
289int 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 (17)
216activityDesigner.Location = new Point(activityDesigner.Location.X + moveDelta.Width, activityDesigner.Location.Y + moveDelta.Height); 245expandButtonRectangle.Y += 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height; 246if (anchorSize.Height > expandButtonRectangle.Height) 247expandButtonRectangle.Y += (anchorSize.Height - expandButtonRectangle.Height) / 2; 276titleHeight += (Expanded ? 2 : 3) * margin.Height; 279titleHeight += margin.Height; 313imageRectangle.Y += 2 * margin.Height; 314if (textSize.Height > 0) 315imageRectangle.Y += textSize.Height + margin.Height; 347textSize.Height = requestedLineSize.Height; 357textRectangle.Y += 2 * margin.Height; 358if (expandButtonSize.Height > textSize.Height) 359textRectangle.Y += (expandButtonSize.Height - textSize.Height) / 2; 1297containerSize.Height = TitleHeight + WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height;
AuthoringOM\Design\Connector.cs (18)
137Rectangle enclosingBounds = new Rectangle(new Point(location.X - size.Width / 2, location.Y - size.Height / 2), size); 187defaultSize.Height += defaultSize.Height / 2; 189defaultSize = new Size(Math.Max(defaultSize.Width, (int)this.associatedDesigner.DesignerTheme.ForegroundPen.Width * 4), Math.Max(defaultSize.Height, (int)this.associatedDesigner.DesignerTheme.ForegroundPen.Width * 4)); 346this.segments[i] = new Point(this.segments[i].X + size.Width, this.segments[i].Y + size.Height); 443Size arrowCapSize = new Size(theme.ConnectorSize.Width / 5, theme.ConnectorSize.Height / 5); 457Size arrowCapSize = new Size(theme.ConnectorSize.Width / 5, theme.ConnectorSize.Height / 5); 485Size arrowCapSize = new Size(theme.ConnectorSize.Width / 5, theme.ConnectorSize.Height / 5); 518Rectangle bounds = new Rectangle(point.X - size.Width / 2, point.Y - size.Height / 2, size.Width, size.Height); 1496return new Rectangle(this.point.X - controlPointSize.Width / 2, this.point.Y - controlPointSize.Height / 2, controlPointSize.Width, controlPointSize.Height); 1530Point[] routedPoints = ConnectorRouter.Route(sourcePoint, targetPoint, new Size(2 * ambientTheme.Margin.Width, 2 * ambientTheme.Margin.Height), rootDesigner.Bounds, rectanglesToExclude.ToArray(), linesToExclude.ToArray(), pointsToExclude.ToArray()); 1826int width = Math.Max(margin.Width / 2, 1), height = Math.Max(margin.Height / 2, 1); 2105r1.Y -= margin.Height; 2151r3.Y += margin.Height; 2255escapePoint = new Point(Z.X, p.Y + direction.Y * margin.Height); 2474int steps = Math.Max(Math.Abs(direction.X / margin.Width), Math.Abs(direction.Y / margin.Height)); //one of the values will be null 2480Point k = new Point(a1.X + i * margin.Width * direction.X, a1.Y + i * margin.Height * direction.Y);
AuthoringOM\Design\DesignerHelpers.cs (74)
76textSize = graphics.MeasureString(text, font, new SizeF(maxSize.Width, maxSize.Height), format); 204rectangle.Height = Math.Min(size.Height, destination.Height); 242selectionRect.Inflate(selectionSize.Width, selectionSize.Height); 244selectionRect.Inflate(-selectionSize.Width / 2, -selectionSize.Height / 2); 247selectionRect.Inflate(selectionSize.Width / 2, selectionSize.Height / 2); 333gridStart.Y = viewableRectangle.Y - (viewableRectangle.Y % ambientTheme.GridSize.Height); 337for (int gridCoOrdY = gridStart.Y; gridCoOrdY <= viewableRectangle.Bottom; gridCoOrdY += Math.Max(ambientTheme.GridSize.Height, 1)) 342((gridCoOrdY + ambientTheme.GridSize.Height / 2) >= viewableRectangle.Top && (gridCoOrdY + ambientTheme.GridSize.Height / 2) <= viewableRectangle.Bottom)) 343graphics.FillRectangle(ambientTheme.MinorGridBrush, new Rectangle(new Point(gridCoOrdX + ambientTheme.GridSize.Width / 2, gridCoOrdY + ambientTheme.GridSize.Height / 2), new Size(1, 1))); 449shadowRectangle.Offset(offset.Width, offset.Height); 515bounds.Inflate(-margin.Width, -margin.Height); 555bounds.Y -= inflate.Height; 556bounds.Height += inflate.Height; 560bounds.Height += inflate.Height; 600int capSize = (startSegment[0].Y == startSegment[1].Y) ? connectorCapSize.Width : connectorCapSize.Height; 602capSize = Math.Min(Math.Min(capSize, maxCapSize.Width), maxCapSize.Height); 630int capSize = (endSegment[0].Y == endSegment[1].Y) ? connectorCapSize.Width : connectorCapSize.Height; 632capSize = Math.Min(Math.Min(capSize, maxCapSize.Width), maxCapSize.Height); 704int arcRadius = capSize.Height / 3; 705lineCapPath.AddLine(capSize.Width / 2, -capSize.Height, 0, 0); 706lineCapPath.AddLine(0, 0, -capSize.Width / 2, -capSize.Height); 707lineCapPath.AddLine(-capSize.Width / 2, -capSize.Height, 0, -capSize.Height + arcRadius); 708lineCapPath.AddLine(0, -capSize.Height + arcRadius, capSize.Width / 2, -capSize.Height); 709capinset = capSize.Height - arcRadius; 714lineCapPath.AddLine(0, -capSize.Height, capSize.Width / 2, -capSize.Height / 2); 715lineCapPath.AddLine(capSize.Width / 2, -capSize.Height / 2, 0, 0); 716lineCapPath.AddLine(0, 0, -capSize.Width / 2, -capSize.Height / 2); 717lineCapPath.AddLine(-capSize.Width / 2, -capSize.Height / 2, 0, -capSize.Height); 722lineCapPath.AddEllipse(new Rectangle(-capSize.Width / 2, -capSize.Height, capSize.Width, capSize.Height)); 727lineCapPath.AddRectangle(new Rectangle(-capSize.Width / 2, -capSize.Height, capSize.Width, capSize.Height)); 732arcRadius = capSize.Height / 4; 733lineCapPath.AddPath(GetRoundedRectanglePath(new Rectangle(-capSize.Width / 2, -capSize.Height, capSize.Width, capSize.Height), arcRadius), true); 784scrollIndicatorPath.AddLine(bounds.Left + (bounds.Width - arrowSize.Width) / 2, bounds.Top, bounds.Left + (bounds.Width - arrowSize.Width) / 2, bounds.Top + arrowSize.Height); 785scrollIndicatorPath.AddLine(bounds.Left + (bounds.Width - arrowSize.Width) / 2, bounds.Top + arrowSize.Height, bounds.Left + (bounds.Width - arrowSize.Width) / 2 + arrowSize.Width, bounds.Top + midPoint); 790scrollIndicatorPath.AddLine(bounds.Left + (bounds.Width - arrowSize.Width) / 2, bounds.Top + midPoint, bounds.Left + (bounds.Width - arrowSize.Width) / 2 + arrowSize.Width, bounds.Top + arrowSize.Height); 791scrollIndicatorPath.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); 803scrollIndicatorPath.AddLine(bounds.Left, bounds.Top + (bounds.Height - arrowSize.Height) / 2, bounds.Left + arrowSize.Width, bounds.Top + (bounds.Height - arrowSize.Height) / 2); 804scrollIndicatorPath.AddLine(bounds.Left + arrowSize.Width, bounds.Top + (bounds.Height - arrowSize.Height) / 2, bounds.Left + midPoint, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height); 805scrollIndicatorPath.AddLine(bounds.Left + midPoint, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height, bounds.Left, bounds.Top + (bounds.Height - arrowSize.Height) / 2); 809scrollIndicatorPath.AddLine(bounds.Left + midPoint, bounds.Top + (bounds.Height - arrowSize.Height) / 2, bounds.Left + arrowSize.Width, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height); 810scrollIndicatorPath.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); 811scrollIndicatorPath.AddLine(bounds.Left, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height, bounds.Left + midPoint, bounds.Top + (bounds.Height - arrowSize.Height) / 2); 1029gridStart.Y = viewableRectangle.Y - (viewableRectangle.Y % gridUnit.Height); 1063for (int gridCoOrd = gridStart.Y; gridCoOrd <= viewableRectangle.Bottom; gridCoOrd += Math.Max(gridUnit.Height, 1)) 1074if (showMinorGrid && (gridCoOrd + gridUnit.Height / 2) >= viewableRectangle.Top && (gridCoOrd + gridUnit.Height / 2) <= viewableRectangle.Bottom) 1080if (!NativeMethods.MoveToEx(this.hdc, viewableRectangle.Left + 1, gridCoOrd + gridUnit.Height / 2, null)) 1083if (!NativeMethods.LineTo(this.hdc, viewableRectangle.Right - 1, gridCoOrd + gridUnit.Height / 2)) 1191location.Y = ((location.Y / snapSize.Height) * snapSize.Height) + (((location.Y % snapSize.Height) > snapSize.Height / 2) ? snapSize.Height : 0); 1908if (distance < hitAreaSize.Width && distance < hitAreaSize.Height)
AuthoringOM\Design\DesignerWidgets.cs (66)
160buttonBounds.Inflate(-base.itemStrip.ItemSize.Width / 6, -base.itemStrip.ItemSize.Height / 4); 162buttonBounds.Inflate(-base.itemStrip.ItemSize.Width / 4, -base.itemStrip.ItemSize.Height / 6); 169buttonBounds.Inflate(inflateSize.Width, inflateSize.Height); 174buttonBounds.Inflate(-inflateSize.Width, -inflateSize.Height); 276this.buttonSize = new Size(itemSize.Width * 2 / 3, itemSize.Height); 278this.buttonSize = new Size(itemSize.Width, itemSize.Height * 2 / 3); 370this.itemStrip.Size = new Size(Math.Min(availableSize, reqdSize.Width), Math.Min(this.bounds.Height, reqdSize.Height)); 374availableSize = this.bounds.Height - (2 * (2 * this.margin.Height + this.buttonSize.Height)); 375availableSize -= this.margin.Height; 376if (this.margin.Height + this.itemStrip.ItemSize.Height > 0) 377availableSize -= (availableSize % (this.margin.Height + this.itemStrip.ItemSize.Height)); 378this.itemStrip.Size = new Size(Math.Min(this.bounds.Width, reqdSize.Width), Math.Min(availableSize, reqdSize.Height)); 481buttonRectangle.Y = this.bounds.Y + this.margin.Height; 491buttonRectangle.Y = this.bounds.Y + this.margin.Height; 497buttonRectangle.Y = this.bounds.Y + this.margin.Height + buttonRectangle.Size.Height + this.itemStrip.Size.Height; 499buttonRectangle.Y = this.bounds.Bottom - buttonRectangle.Size.Height; 716itemRectangle.Y = bounds.Top + this.margin.Height; 721itemRectangle.Y = bounds.Top + (itemIndex * this.itemSize.Height) + ((itemIndex + 1) * this.margin.Height); 755reqdSize.Height = this.itemSize.Height + 2 * this.margin.Height; 760reqdSize.Height = (this.items.Count * this.itemSize.Height) + ((this.items.Count + 1) * this.margin.Height); 846int totalStripSize = this.bounds.Height - this.margin.Height; 847visibleItemCount = totalStripSize / Math.Max((this.itemSize.Height + this.margin.Height), 1); 1343maxTextSize.Height = Math.Max(Convert.ToInt32(Math.Ceiling(size.Height)), maxTextSize.Height); 1347this.maxTextHeight = maxTextSize.Height; 1348this.itemHeight = Math.Max(imageRectangle.Height, maxTextSize.Height + 2) + 3; 1356yOffset += this.itemHeight + 2 * this.selectionItemMargin.Height; 2538rectangles[j].Y = stripRectangle.Top + itemMargin.Height / 2; 2539rectangles[j].Size = new Size(itemMargin.Width, itemSize.Height + itemMargin.Height); 2565itemRectangle.Y = stripRectangle.Top + itemMargin.Height; 2664this.bounds.Height = itemSize.Height + (2 * itemMargin.Height); 2711int selectionSize = Math.Max(Math.Min(itemMargin.Width / 4, itemMargin.Height / 2), 1); 2846scrollButtonSize.Height = Math.Min(scrollButtonSize.Width, Math.Min(scrollButtonSize.Height, ItemSize.Height)); 2847scrollButtonSize.Width = Math.Min(scrollButtonSize.Width, scrollButtonSize.Height); 2852scrollRectangle.Y = this.bounds.Y + this.bounds.Size.Height / 2 - scrollButtonSize.Height / 2; 2893return new Size(itemSize.Width / 2, itemSize.Height / 4); 3254this.canvasBounds.Location = new Point(value.X + this.bounds.Width / 2 - this.canvasBounds.Width / 2, this.previewModeDescRectangle.Bottom + margin.Height); 3261location.Y = this.canvasBounds.Top + this.canvasBounds.Height / 2 - PreviewDesigner.Size.Height / 2; 3375this.canvasBounds.Inflate(margin.Width * 2, margin.Height * 2); 3376this.canvasBounds.Size = new Size(Math.Max(this.canvasBounds.Width, designerTheme.PreviewWindowSize.Width), Math.Max(this.canvasBounds.Height, designerTheme.PreviewWindowSize.Height)); 3390this.previewModeButtonRectangle.Height = Math.Min(designerTheme.PreviewButtonSize.Height, this.previewDescTextSize.Height); 3391this.previewModeButtonRectangle.Width = this.previewModeButtonRectangle.Size.Height; 3395totalSize.Height = Math.Max(this.previewModeButtonRectangle.Size.Height, this.previewDescTextSize.Height); 3396totalSize.Height += margin.Height; 3444descriptionRectangle.Inflate(-margin.Width, -margin.Height); 3459Size maxBitmapSize = new Size(this.canvasBounds.Width - 2 * margin.Width, this.canvasBounds.Height - 2 * margin.Height); 3461stretchFactor = Math.Max(stretchFactor, ((double)previewedActivityImage.Height) / maxBitmapSize.Height); 3474indicatorBounds.Inflate(-margin.Width, -margin.Height); 3482previewDesignerViewPort.Inflate(margin.Width, margin.Height); 3565stretchFactor = Math.Min(stretchFactor, ((float)previewSize.Height) / previewDesignerSize.Height);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (7)
545e.Graphics.DrawRectangle(SystemPens.ControlDark, 0, 0, this.themePanel.ClientSize.Width - 1, this.themePanel.ClientSize.Height - 2); 560e.Graphics.DrawLine(framePen, this.designerPreview.Left - 1, this.designerPreview.Top - margin.Height, this.designerPreview.Left - 1, this.designerPreview.Bottom + margin.Height); 561e.Graphics.DrawLine(framePen, this.designerPreview.Right + 1, this.designerPreview.Top - margin.Height, this.designerPreview.Right + 1, this.designerPreview.Bottom + margin.Height); 1218PointF zoom = new PointF((float)size.Width / (float)maxExtent.Width, (float)size.Height / (float)maxExtent.Height);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
809this.helpTextWindow.Size = new Size(this.helpTextHolder.Size.Width - 6, this.helpTextHolder.Size.Height - 6);
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (1)
1079if (horizontalMarginsSum < physicalPageSize.Width && verticalMarginsSum < physicalPageSize.Height)
AuthoringOM\Design\FreeFormDesigner.cs (6)
177margin.Height += gridSize.Height / 2; 254minimumSize.Height = Math.Max(minimumSize.Height, workflowView.ViewPortSize.Height - 2 * WorkflowRootLayout.Separator.Height); 263minimumSize.Height = Math.Max(minimumSize.Height, childRectangle.Height); 919designer.Location = new Point(location.X + autoSizeMargin.Width, location.Y + autoSizeMargin.Height);
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (3)
52Point configErrorLocation = new Point(designer.Bounds.Right - configErrorSize.Width - margin.Width / 2, designer.Bounds.Top - configErrorSize.Height + margin.Height); 59bounds.Inflate(ambientTheme.Margin.Width / 2, ambientTheme.Margin.Height / 2);
AuthoringOM\Design\Glyphs\ConnectorDragDropGlyph.cs (1)
21this.glyphPoint = new Point(connectorCenter.X - ambientTheme.DropIndicatorSize.Width / 2, connectorCenter.Y - ambientTheme.DropIndicatorSize.Height / 2);
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (11)
21rectangle.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize.Width / 2, WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize.Height / 2); 43Size grabHandleSize = new Size(selectionSize.Width, selectionSize.Height); 45selectionRect.Inflate(selectionSize.Width, selectionSize.Height); 57grabHandles[2] = new Rectangle(selectionRect.Right - grabHandleSize.Width, selectionRect.Top, grabHandleSize.Width, grabHandleSize.Height); 58grabHandles[3] = new Rectangle(new Point(selectionRect.Right - grabHandleSize.Width, selectionRect.Top + (selectionRect.Height - grabHandleSize.Height) / 2), grabHandleSize); 59grabHandles[4] = new Rectangle(selectionRect.Right - grabHandleSize.Width, selectionRect.Bottom - grabHandleSize.Height, grabHandleSize.Width, grabHandleSize.Height); 60grabHandles[5] = new Rectangle(new Point(selectionRect.Left + (selectionRect.Width - grabHandleSize.Width) / 2, selectionRect.Bottom - grabHandleSize.Height), grabHandleSize); 61grabHandles[6] = new Rectangle(selectionRect.Left, selectionRect.Bottom - grabHandleSize.Height, grabHandleSize.Width, grabHandleSize.Height); 62grabHandles[7] = new Rectangle(new Point(selectionRect.Left, selectionRect.Top + (selectionRect.Height - grabHandleSize.Height) / 2), grabHandleSize);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (9)
144indicatorSize.Height += 2 * ambientTheme.Margin.Height; 145return (viewPortSize.Width > 2 * indicatorSize.Width && viewPortSize.Height > 2 * indicatorSize.Height); 161scrollIndicatorRectangles[0].Y = (clientRectangle.Height - scrollIndicatorSize.Height) / 2; 166scrollIndicatorRectangles[1].Y = (clientRectangle.Height - scrollIndicatorSize.Height) / 2; 171scrollIndicatorRectangles[2].Y = indicatorMargins.Height; 176scrollIndicatorRectangles[3].Y = clientRectangle.Bottom - indicatorMargins.Height - scrollIndicatorSize.Height; 231if (scrollPosition.Y < parentView.VScrollBar.Maximum - viewPortSize.Height)
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (1)
126Math.Abs(this.initialDragPoint.Value.Y - logicalPoint.Y) > SystemInformation.DragSize.Height))
AuthoringOM\Design\MessageFilters\DragDropManager.cs (6)
117else 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)) 272this.dragImagePointInClientCoOrd = new Point(clientPoint.X + SystemInformation.CursorSize.Width / 4, clientPoint.Y + SystemInformation.CursorSize.Height / 4); 306this.dragImagePointInClientCoOrd = new Point(midPointInClientCoOrd.X - dragImageIconSize.Width / 2, midPointInClientCoOrd.Y - dragImageIconSize.Height / 2); 332this.dragImagePointInClientCoOrd = new Point(clientPoint.X + SystemInformation.CursorSize.Width / 4, clientPoint.Y + SystemInformation.CursorSize.Height / 4); 383this.dragImagePointInClientCoOrd = new Point(midPointInClientCoOrd.X - dragImageIconSize.Width / 2, midPointInClientCoOrd.Y - dragImageIconSize.Height / 2); 679draggedImage = 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 (6)
324bounds.Inflate(-action.DockMargin.Width, -action.DockMargin.Height); 571size.Height = (2 * borderSize.Height) + this.buttonSize.Height + (2 * this.margin.Height); 583rectangle.Y = this.borderSize.Height + this.margin.Height;
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (3)
170ActivityDesignerPaint.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); 233rectangle.Inflate(2 * ambientTheme.Margin.Width, 2 * ambientTheme.Margin.Height); 256location = new Point(designerToMove.Location.X + delta.Width, designerToMove.Location.Y + delta.Height);
AuthoringOM\Design\MessageFilters\PanningMessageFilter.cs (1)
76parentView.ScrollPosition = new Point(parentView.ScrollPosition.X - panSize.Width, parentView.ScrollPosition.Y - panSize.Height);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (6)
197if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Top), new Point(designerBounds.Right, designerBounds.Top) })) <= selectionSize.Height + 1) 201if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Bottom), new Point(designerBounds.Right, designerBounds.Bottom) })) <= selectionSize.Height + 1) 279clipBounds.Inflate(-2 * selectionSize.Width, -2 * selectionSize.Height); 303int delta = (designerBounds.Height < designerToSize.MinimumSize.Height) ? designerBounds.Height - designerToSize.MinimumSize.Height : 0; 315designerBounds.Height = Math.Max(designerBounds.Height, designerToSize.MinimumSize.Height);
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (2)
119Point center = new Point((this.currentState == ZoomState.In) ? eventArgs.X : parentView.ViewPortSize.Width / 2, (this.currentState == ZoomState.In) ? eventArgs.Y : parentView.ViewPortSize.Height / 2); 171int zoom = (int)(Math.Min((float)parentView.ViewPortSize.Width / (float)dragRectangle.Width, (float)parentView.ViewPortSize.Height / (float)dragRectangle.Height) * 100.0f);
AuthoringOM\Design\ParallelActivityDesigner.cs (19)
224int height = compositeDesignerTheme.ConnectorSize.Height * 3 / 2; 256containerSize.Height = Math.Max(containerSize.Height, childSize.Height); 262activityDesigner.Size = new Size(activityDesigner.Size.Width, containerSize.Height); 265containerSize.Height += 3 * compositeDesignerTheme.ConnectorSize.Height; 269size.Height += containerSize.Height; 290dropTargets[0].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), firstDesigner.Size.Height); 307dropTargets[containedDesigners.Count].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), lastDesigner.Size.Height); 312dropTargets[0].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), Location.Y + Size.Height - dropTargets[0].Location.Y); 354parallelLinks[1].Y = parallelConnectorTop + compositeDesignerTheme.ConnectorSize.Height * 3 / 4; 359parallelLinks[0].Y = parallelConnectorTop + compositeDesignerTheme.ConnectorSize.Height * 3 / 4; 361parallelLinks[1].Y = parallelConnectorTop + compositeDesignerTheme.ConnectorSize.Height * 3 / 4; 366parallelLinks[0].Y = bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height * 3 / 4; 368parallelLinks[1].Y = bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height * 3 / 4; 373parallelLinks[0].Y = bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height * 3 / 4; 386connectingLine[0].Y = parallelConnectorTop + compositeDesignerTheme.ConnectorSize.Height * 3 / 4; 395connectingLine[1].Y = bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height * 3 / 4; 416parallelConnectorTop += (containedDesigners.Count > 0) ? compositeDesignerTheme.ConnectorSize.Height * 3 / 4 : 0; 420heightDelta -= (containedDesigners.Count > 0) ? compositeDesignerTheme.ConnectorSize.Height * 3 / 4 : 0;
AuthoringOM\Design\SequentialActivityDesigner.cs (18)
164helpTextRectangle.Y = connectors[0].Top + connectors[0].Height / 2 - this.helpTextSize.Height / 2; 452heightDelta = Size.Height - (connectionPoints[connectionPoints.Count - 1].Y - connectionPoints[0].Y); 453height += (Size.Height - heightDelta) / 2 - ContainedDesigners[0].Size.Height / 2; 457height += ((compositeDesignerTheme != null) ? compositeDesignerTheme.ConnectorSize.Height : 0); 464height += designerSize.Height + ((compositeDesignerTheme != null) ? compositeDesignerTheme.ConnectorSize.Height : 0); 480containerSize.Height += compositeDesignerTheme.ConnectorSize.Height; //Add the height of first connector 486containerSize.Height += childSize.Height; 487containerSize.Height += compositeDesignerTheme.ConnectorSize.Height; 495containerSize.Height += compositeDesignerTheme.ConnectorSize.Height; //Add the height of last connector 501containerSize.Height = Math.Max(containerSize.Height, compositeDesignerTheme.Size.Height); 528glyphLocation = new Point(connectors[i].Location.X + connectors[i].Size.Width / 2 + 1, connectors[i].Location.Y + connectors[i].Size.Height / 2); 530glyphLocation = new Point(helpTextRectangle.Left + helpTextRectangle.Width / 2 + 1, helpTextRectangle.Top - ambientTheme.DropIndicatorSize.Height / 2); 567grabHandles[0] = new Rectangle(bounds.X + bounds.Width / 2 - ambientTheme.SelectionSize.Width / 2, bounds.Y, ambientTheme.SelectionSize.Width, ambientTheme.SelectionSize.Height); 568grabHandles[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 (10)
112bounds.Height = margin.Height + imageBounds.Height; 113bounds.Height += (imageBounds.Height > 0) ? margin.Height : 0; 115bounds.Height += (textBounds.Height > 0) ? margin.Height : 0; 141bounds.Y = (this.isHeader) ? designerBounds.Top + margin.Height : designerBounds.Bottom - margin.Height - this.textSize.Height; 167bounds.Y = designerBounds.Top + margin.Height; 169bounds.Y += (textRectangle.Height > 0) ? margin.Height : 0; 173bounds.Y = designerBounds.Bottom - margin.Height; 175bounds.Y -= (textRectangle.Height > 0) ? margin.Height : 0;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (21)
95minimumSize.Height = Math.Max(minimumSize.Width, SequentialWorkflowRootDesigner.MinSize.Height); 99minimumSize.Height = Math.Max(minimumSize.Height, ParentView.ViewPortSize.Height - 2 * WorkflowRootLayout.Separator.Height); 217optimalHeight += designerTheme.ConnectorSize.Height; //Add the height of first connector 218optimalHeight += HelpTextSize.Height; 219optimalHeight += designerTheme.ConnectorSize.Height; //Add the height of last connector 225optimalHeight += designerTheme.ConnectorSize.Height; 231optimalHeight += childSize.Height; 234optimalHeight += designerTheme.ConnectorSize.Height; 236optimalHeight += 2 * ambientTheme.SelectionSize.Height; 280size.Height += footer.ImageRectangle.Height + 2 * e.AmbientTheme.Margin.Height + footer.FooterBarRectangle.Size.Height; 304bounds.Inflate(-e.AmbientTheme.Margin.Width, -e.AmbientTheme.Margin.Height); 370imageRectangle.Y = HeaderBarRectangle.Bottom + WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height; 402headerBarRectangle.Height = Math.Max(2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height + base.textSize.Height, MinHeaderBarHeight); 411return 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height; 433bounds.Height = Math.Max(bounds.Height, rootDesigner.Size.Height - rootDesigner.TitleHeight - rootDesigner.OptimalHeight); 437minHeight += (minHeight > 0) ? 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height : 0; 457imageRectangle.Y += WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height;
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (6)
168minimumSize.Height = Math.Max(minimumSize.Height, 160); 478arrowCapSize = new Size(compositeDesignerTheme.ConnectorSize.Width / 3, compositeDesignerTheme.ConnectorSize.Height / 3); 545location.Y += e.AmbientTheme.SelectionSize.Height; 565containerSize.Height += activeDesigner.Size.Height; 569containerSize.Height += e.AmbientTheme.Margin.Height; 570containerSize.Height += 2 * e.AmbientTheme.SelectionSize.Height;
AuthoringOM\Design\Themes.cs (1)
1609int connectorSize = CompositeDesignerTheme.ConnectorSizes[(int)ContainingTheme.AmbientTheme.DesignerSize].Height;
AuthoringOM\Design\WorkflowLayouts.cs (52)
86Size totalSize = new Size(rootDesignerSize.Width + DefaultWorkflowLayout.Separator.Width * 2, rootDesignerSize.Height + DefaultWorkflowLayout.Separator.Height * 2); 88return new Size(Math.Max(totalSize.Width, clientSize.Width), Math.Max(totalSize.Height, clientSize.Height)); 162transformationMatrix.Translate(-logicalViewPortOrigin[0].X + viewPortData.ShadowDepth.Width, -logicalViewPortOrigin[0].Y + viewPortData.ShadowDepth.Height, MatrixOrder.Append); 217Size totalSize = new Size(rootDesignerSize.Width + DefaultWorkflowLayout.Separator.Width * 2, rootDesignerSize.Height + DefaultWorkflowLayout.Separator.Height * 2); 221clientSize.Height = (int)(clientSize.Height / ((float)this.parentView.Zoom / 100.0f)); 223return new Size(Math.Max(totalSize.Width, clientSize.Width), Math.Max(totalSize.Height, clientSize.Height)); 250transformationMatrix.Translate(-logicalViewPortOrigin[0].X + viewPortData.ShadowDepth.Width, -logicalViewPortOrigin[0].Y + viewPortData.ShadowDepth.Height, MatrixOrder.Append); 259rootBounds.Inflate(ActivityRootLayout.Separator.Width / 2, ActivityRootLayout.Separator.Height / 2); 286logicalRectangle.Y -= offSet.Height; 294logicalRectangle.Y += offSet.Height; 301logicalPoint.Offset(-offSet.Width, -offSet.Height); 308logicalPoint.Offset(offSet.Width, offSet.Height); 322totalSize.Height = Math.Max(totalSize.Height, layoutExtent.Height); 323return new Size(Math.Max(0, (totalSize.Width - layoutExtent.Width) / 2), Math.Max(0, (totalSize.Height - layoutExtent.Height) / 2)); 373maxSize.Height = (this.rowColumns.Height * this.pageSize.Height) + ((this.rowColumns.Height + 1) * (PageSeparator.Height)); 383Size printableAreaPerPage = new Size(this.pageSize.Width - (PageMargins.Left + PageMargins.Right), this.pageSize.Height - (PageMargins.Top + PageMargins.Bottom)); 384Size totalPrintableArea = new Size(this.rowColumns.Width * printableAreaPerPage.Width, this.rowColumns.Height * printableAreaPerPage.Height); 393alignment.Y = (totalPrintableArea.Height - rootDesignerSize.Height) / 2; 394alignment.Y = Math.Max(alignment.Y, selectionSize.Height + selectionSize.Height / 2); 437insersectedLogicalViewPort.Height -= deltaSize.Height; 472insersectedPhysicalViewPort.Height -= deltaSize.Height; 730rootDesignerSize.Height += 3 * selectionSize.Height; 740Size printableArea = new Size(paperSize.Width - (margins.Left + margins.Right), paperSize.Height - (margins.Top + margins.Bottom)); 742printableArea.Height = Math.Max(printableArea.Height, 1); 746((float)this.printDocument.PageSetupData.PagesTall * (float)printableArea.Height / (float)rootDesignerSize.Height)); 757this.pageSize.Height = Convert.ToInt32(Math.Ceiling(((float)this.pageSize.Height) / this.scaling)); 766PageSeparator = new Size(Convert.ToInt32(Math.Ceiling(((float)PageSeparator.Width) / this.scaling)), Convert.ToInt32(Math.Ceiling(((float)PageSeparator.Height) / this.scaling))); 781Size viewablePageSize = new Size(this.pageSize.Width - (PageMargins.Left + PageMargins.Right), this.pageSize.Height - (PageMargins.Top + PageMargins.Bottom)); 783viewablePageSize.Height = Math.Max(viewablePageSize.Height, 1); 792this.rowColumns.Height = rootDesignerSize.Height / viewablePageSize.Height; 793this.rowColumns.Height += ((rootDesignerSize.Height % viewablePageSize.Height) > 1) ? 1 : 0; 794this.rowColumns.Height = Math.Max(1, this.rowColumns.Height); 800for (int row = 0; row < this.rowColumns.Height; row++) 806pageLocation.Y = (row * this.pageSize.Height) + ((row + 1) * PageSeparator.Height); 812Rectangle logicalBounds = new Rectangle(column * viewablePageSize.Width, row * viewablePageSize.Height, viewablePageSize.Width, viewablePageSize.Height);
AuthoringOM\Design\WorkflowPrinting.cs (18)
126Size printableArea = new Size(printPageArg.PageBounds.Size.Width - (margins.Left + margins.Right), printPageArg.PageBounds.Size.Height - (margins.Top + margins.Bottom)); 127Rectangle boundingRectangle = new Rectangle(margins.Left, margins.Top, printableArea.Width, printableArea.Height); 148Point pageOffset = new Point(this.currentPrintablePage.X * printableArea.Width - this.workflowAlignment.X, this.currentPrintablePage.Y * printableArea.Height - this.workflowAlignment.Y); 155viewPortSize.Height = Convert.ToInt32(Math.Ceiling((float)printableArea.Height / this.scaling)); 161Rectangle viewPort = new Rectangle(this.currentPrintablePage.X * viewPortSize.Width - scaledAlignment.X, this.currentPrintablePage.Y * viewPortSize.Height - scaledAlignment.Y, viewPortSize.Width, viewPortSize.Height); 298layoutRectangle.Y = headerFooterPrintData.PageBounds.Bottom - headerFooterPrintData.HeaderFooterMargins.Bottom - layoutRectangle.Size.Height; 318rootDesignerSize.Height += 3 * selectionSize.Height; 326Size printableArea = new Size(paperSize.Width - (margins.Left + margins.Right), paperSize.Height - (margins.Top + margins.Bottom)); 328printableArea.Height = Math.Max(printableArea.Height, 1); 338float YScaling = (float)this.pageSetupData.PagesTall * (float)printableArea.Height / (float)rootDesignerSize.Height; 348this.totalPrintablePages.Y = Convert.ToInt32(Math.Ceiling((this.scaling * (float)rootDesignerSize.Height) / (float)printableArea.Height)); 358this.workflowAlignment.Y = (int)(((float)this.totalPrintablePages.Y * (float)printableArea.Height / this.scaling - (float)rootDesignerSize.Height) / 2.0f * this.scaling); 361this.workflowAlignment.Y = Math.Max(this.workflowAlignment.Y, selectionSize.Height + selectionSize.Height / 2);
AuthoringOM\Design\WorkflowView.cs (23)
447viewPortSize.Height = Math.Max(0, viewPortSize.Height - HScrollBar.Height); 943if (HScrollBar.Maximum > ViewPortSize.Width || VScrollBar.Maximum > ViewPortSize.Height) 945int newZoom = (int)(100.0f / ActiveLayout.Scaling * Math.Min((float)ViewPortSize.Width / (float)ActiveLayout.Extent.Width, (float)ViewPortSize.Height / (float)ActiveLayout.Extent.Height)); 1034this.viewPortBitmap = new Bitmap(Math.Max(1, ViewPortSize.Width), Math.Max(1, ViewPortSize.Height), e.Graphics); 1535viewPortData.LogicalViewPort = new Rectangle(Point.Empty, new Size(rootDesigner.Bounds.Width + 2 * DefaultWorkflowLayout.Separator.Width, rootDesigner.Bounds.Height + 2 * DefaultWorkflowLayout.Separator.Height)); 1584transformationMatrix.Translate(-logicalViewPortOrigin[0].X + viewPortData.ShadowDepth.Width, -logicalViewPortOrigin[0].Y + viewPortData.ShadowDepth.Height, MatrixOrder.Append); 1660viewPortGraphics.FillRectangle(shadowDepthBrush, new Rectangle(Point.Empty, new Size(memoryBitmap.Size.Width - viewPortData.ShadowDepth.Width - 1, memoryBitmap.Size.Height - viewPortData.ShadowDepth.Height - 1))); 1668viewPortGraphics.DrawImage(temporaryBitmap, new Rectangle(-viewPortData.ShadowDepth.Width, -viewPortData.ShadowDepth.Height, memoryBitmap.Width, memoryBitmap.Height), 0, 0, memoryBitmap.Width, memoryBitmap.Height, GraphicsUnit.Pixel, transparentColorKey); 1762ScrollPosition = new Point(scrollPosition.X + scrollDelta.Width, scrollPosition.Y + scrollDelta.Height); 1793if (ViewPortSize.Width < 0 || ViewPortSize.Height < 0) 1798Size largeChangeSize = new Size(Math.Min(maximumScrollSize.Width, currentSize.Width), Math.Min(maximumScrollSize.Height, currentSize.Height)); 1802if (vScrollBar.Maximum != maximumScrollSize.Height) 1803vScrollBar.Maximum = maximumScrollSize.Height; 1810if (vScrollBar.LargeChange != largeChangeSize.Height) 1812vScrollBar.SmallChange = largeChangeSize.Height / 15; 1813vScrollBar.LargeChange = largeChangeSize.Height + 1; 1821int yMaxScrollPos = maximumScrollSize.Height - vScrollBar.LargeChange; 1834vScrollBar.Visible = (vScrollBar.Maximum > currentSize.Height); 1863if (HScrollBar.Maximum > ViewPortSize.Width || VScrollBar.Maximum > ViewPortSize.Height) 1891if (HScrollBar.Maximum > ViewPortSize.Width || VScrollBar.Maximum > ViewPortSize.Height)
System.WorkflowServices (9)
System\Workflow\Activities\Design\GradientPanel.cs (2)
78frameRect = new Rectangle(6, 0, this.Size.Width - 14, this.Size.Height - 8); 82frameRect = new Rectangle(0, 0, this.Size.Width - 1, this.Size.Height - 1);
System\Workflow\Activities\Design\RichListBox.cs (1)
245listItemBitmapCache.Add(viewType.Name, new Bitmap(listItemRenderer.Size.Width, listItemRenderer.Size.Height));
System\Workflow\Activities\ReceiveActivityDesigner.cs (1)
185Rectangle outgoingArrowRect = new Rectangle(this.Location.X + 22, this.Location.Y + this.Size.Height - 45, -24, 24);
System\Workflow\Activities\SendActivityDesigner.cs (1)
137Rectangle 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)
101if (scrollPosition.Y > viewSize.Height / 2) 103scrollPosition.Y -= viewSize.Height / 2; 123if (scrollPosition.Y > viewSize.Height / 2) 125scrollPosition.Y -= viewSize.Height / 2;
WsatUI (1)
MMCUI\WSATPropertySheet.cs (1)
272wsatControl.Size = new System.Drawing.Size(425, wsatControl.Size.Height);