357 writes to Height
System.Drawing (3)
commonui\System\Drawing\Rectangle.cs (3)
119this.Height = value.Height; 396this.Height += 2*height; 431this.Height = result.Height;
System.Web.DataVisualization (26)
Common\General\ChartGraphics.cs (2)
2421 absPositionRounded.Height = (int)Math.Round(absPosition.Bottom) - absPositionRounded.Y; 2560 absPositionRounded.Height = (int)Math.Round(absPosition.Bottom) - absPositionRounded.Y;
Common\General\Legend.cs (13)
480 legendPosition.Height -= this._titlePosition.Height; 515 this._headerPosition.Height = Math.Max(this._headerPosition.Height, 0); 518 legendPosition.Height -= this._headerPosition.Height; 647 this._legendItemsAreaPosition.Height -= this._truncatedDotsSize; 670 this._legendItemsAreaPosition.Height -= this._truncatedDotsSize; 854 cellPosition.Height = this._cellHeights[columnIndex, rowIndex]; 2473 separatorPosition.Height = this.GetSeparatorSize(legendItem.SeparatorType).Height; 2494 separatorRect.Height -= 2 * this.GetBorderSize() + this._titlePosition.Height; 4041 legendPosition.Height -= 2 * (this._offset.Height + this.GetBorderSize()); 4046 ++legendPosition.Height; 4102 fillRect.Height += this._offset.Height; 4273 legendPosition.Height -= 2 * this.GetBorderSize(); 4278 ++legendPosition.Height;
Common\General\LegendColumns.cs (11)
1451 this.cellPosition.Height -= (int)(this.Margins.Top * singleWCharacterSize.Height / 100f) 1458 this.cellPosition.Height -= this.Legend.GetSeparatorSize(LegendItem.SeparatorType).Height; 2100imagePosition.Height = (int)imageSize.Height; 2105 imageCellPosition.Height = imagePosition.Height; 2125 imageCellPosition.Height = newHeight; 2141 imagePosition.Height = (int)(imagePosition.Height / scaleValue); 2240 seriesMarkerPosition.Height = newHeight; 2297imageScale.Height = (int)imageSize.Height; 2311imageScale.Height = (int)(imageScale.Height / scaleValue); 2438imageScale.Height = (int)imageSize.Height; 2452 imageScale.Height = (int)(imageScale.Height / scaleValue);
System.Windows.Forms (254)
misc\GDI\WindowsGraphics2.cs (1)
256bounds.Height = bounds.Height - bounds.Y;
winforms\Managed\System\WinForms\AxHost.cs (1)
1776b.Height = p.Height;
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (12)
575imageBounds.Height +=1; 1142layout.focus.Height--; 1230layout.checkArea.Height = field.Height; 1242layout.checkArea.Height = field.Height; 1251layout.checkArea.Height = checkSizeFull; 1254layout.field.Height -= checkSizeFull; 1262layout.checkArea.Height = checkSizeFull; 1264layout.field.Height -= checkSizeFull; 1273layout.checkBounds.Height -= checkPaddingSize; 1376layout.textBounds.Height = textBottom - layout.textBounds.Y; 1391layout.imageBounds.Height = Math.Max(0, Math.Min(maxBounds.Height - layout.textBounds.Height, layout.imageBounds.Height)); 1430layout.textBounds.Height = bottom - layout.textBounds.Y;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (6)
51bounds.Height--; 61bounds.Height--; 67bounds.Height++; 75bounds.Height++; 148fullSize.Height++; 153fullSize.Height++;
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (2)
48bounds.Height--; 83bounds.Height--;
winforms\Managed\System\WinForms\Control.cs (2)
9742rectangle.Height--; 18265bounds.Height = adjusted.Height;
winforms\Managed\System\WinForms\ControlPaint.cs (4)
109result.Height = (int) ((imageSize.Height * xRatio) +.5); 117result.Height = bounds.Height; 1334rectangle.Height--; 1439rectangle.Height--;
winforms\Managed\System\WinForms\DataGrid.cs (24)
4525refresh.Height = layout.Inside.Bottom - cy; 5077rightArea.Height -= rightArea.Y - top; 5103clip.Height = layout.Data.Y + layout.Data.Height - topEdge - 2; 5149rightArea.Height -= rightArea.Y - top; 5356cap.Height = captionHeight; 5358insideLeft.Height -= captionHeight; 5371parents.Height = parentHeight; 5373insideLeft.Height -= parentHeight; 5387colHeaders.Height = columnHeaderHeight; 5389insideLeft.Height -= columnHeaderHeight; 6451rowBounds.Height = row.Height; 6600columnArea.Height = layout.Data.Height; 6657invalid.Height = this.DataGridRows[rowNumber].Height; 6753layout.Data.Height -= horizHeight; 6755layout.RowHeaders.Height -= horizHeight; 6782layout.Data.Height -= horizHeight; 6784layout.RowHeaders.Height -= horizHeight; 7138boundingRect.Height--; 7311bounds.Height--; 7334rc.Height -= columnHeaderHeight; 7409rowBounds.Height = localGridRows[row].Height; 7460boundingRect.Height -= cy; 8855underParentRows.Height += layout.ColumnHeaders.Height; 8893fixupRect.Height += parentRowsRect.Height;
winforms\Managed\System\WinForms\DataGridAddNewRow.cs (1)
96dataBounds.Height -= bWidth;
winforms\Managed\System\WinForms\DataGridCaption.cs (1)
569border.Height = textPadding;
winforms\Managed\System\WinForms\DataGridParentRows.cs (6)
150ret.Height = height; 555border.Height = borderWidth; 718rowBounds.Height = (int) rowHeights[row]; 865paintBounds.Height = (int) rowHeights[row]; 866rowBounds.Height = (int) rowHeights[row]; 1008textBounds.Height -= 2;
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (5)
201cellBounds.Height = base.Height - 1; 532dataBounds.Height = base.Height - bWidth; 548relationBounds.Height += 1; 661relRect.Height -= this.dgTable.BorderWidth; // use bWidth not 1 908bounds.Height = owner.Expanded ? owner.dgTable.RelationshipHeight : 0; // when the row is collapsed the height of the relationship object should be 0
winforms\Managed\System\WinForms\DataGridTable.cs (3)
928relationshipRect.Height = BorderWidth + relationshipHeight * this.RelationsList.Count; 929relationshipRect.Height += 2; // relationship border 931relationshipRect.Height += 2 * relationshipSpacing;
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (2)
487bounds.Height -= 2 * yMargin; 616rect.Height -= 2 * yMargin;
winforms\Managed\System\WinForms\DataGridView.cs (1)
2695rectDisplay.Height -= this.horizScrollBar.Height;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (5)
451rectThemeMargins.Height = DATAGRIDVIEWBUTTONCELL_themeMargin - rectContent.Bottom; 732valBounds.Height -= borderWidths.Bottom; 752valBounds.Height -= cellStyle.Padding.Vertical; 1015valBounds.Height -= 2 * DATAGRIDVIEWBUTTONCELL_verticalTextMargin; 1022valBounds.Height--;
winforms\Managed\System\WinForms\DataGridViewCell.cs (7)
1077rect.Height = (advancedBorderStyle.Bottom == DataGridViewAdvancedCellBorderStyle.None) ? 0 : 1; 1080rect.Height++; 1096rect.Height += this.owningRow.DividerHeight; 3631bounds.Height -= dividerThickness; 4374rectPadding.Height = cellStyle.Padding.Top; 4377rectPadding.Height = cellStyle.Padding.Bottom; 4548borderAndPaddingWidths.Height += cellStyle.Padding.Bottom;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (4)
1176valBounds.Height -= borderWidths.Bottom; 1235valBounds.Height -= cellStyle.Padding.Vertical; 1400checkBounds.Height++; 1421fullSize.Height++;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (5)
796valBounds.Height -= borderWidths.Bottom; 817valBounds.Height -= cellStyle.Padding.Vertical; 877valBounds.Height -= rectThemeMargins.Y + rectThemeMargins.Height; 911valBounds.Height -= cellStyle.Padding.Vertical; 921valBounds.Height -= 2 * DATAGRIDVIEWCOLUMNHEADERCELL_verticalMargin;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (9)
753borderAndPaddingWidths.Height += cellStyle.Padding.Bottom; 1586rectBottomSection.Height -= 21; 2149valBounds.Height -= borderWidths.Bottom; 2185valBounds.Height -= cellStyle.Padding.Vertical; 2485dropRect.Height++; 2547focusBounds.Height+=2; 2556focusBounds.Height -= 2; 2571valBounds.Height--; 2594textBounds.Height -= verticalTextMarginTop;
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (2)
490rectThemeMargins.Height = DATAGRIDVIEWHEADERCELL_themeMargin - rectContent.Bottom; 653valBounds.Height -= borderWidths.Bottom;
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (2)
821valBounds.Height -= borderWidths.Bottom; 837imgBounds.Height -= cellStyle.Padding.Vertical;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (5)
1014valBounds.Height -= borderWidths.Bottom; 1037valBounds.Height -= cellStyle.Padding.Vertical; 1048valBounds.Height -= DATAGRIDVIEWLINKCELL_verticalTextMarginTop + DATAGRIDVIEWLINKCELL_verticalTextMarginBottom; 1051valBounds.Height -= DATAGRIDVIEWLINKCELL_verticalTextMarginBottom; 1083focusBounds.Height += 2;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (39)
2811clip.Height = this.layout.Data.Y + this.layout.Data.Height - topEdge - 1; 4345inside.Height = 0; 4358colHeaders.Height = Math.Min(this.columnHeadersHeight, colHeaders.Height); 4360insideLeft.Height -= colHeaders.Height; 4432insideLeft.Height--; 5504rectScrollingArea.Height -= emptyBackgroundHeight; 5524rectScrollingArea.Height -= frozenVisibleRowsHeight; 6900rect.Height++; 7152columnRect.Height += height; 8383columnRect.Height += this.layout.ColumnHeaders.Height; 10353this.layout.Data.Height -= horizScrollBarHeight; 10375this.layout.RowHeaders.Height -= horizScrollBarHeight; 10382this.layout.Data.Height = oldDataHeight; 10437this.layout.Data.Height -= horizScrollBarHeight; 14958rightArea.Height++; 17212gridRect.Height++; 17255focusRect.Height -= change; 17261focusRect.Height += change; 17281edge.Height = 1; 19774rcBelowRows.Height -= this.layout.ColumnHeaders.Height; 19779rcBelowRows.Height--; 19783rcBelowRows.Height -= visibleRowsHeight; 19820rcNextRows.Height = gridBounds.Height - rcBelowRows.Height; 19850edge.Height = bounds.Height; 19894bandBounds.Height = cellBounds.Height = this.columnHeadersHeight; 20079rc.Height -= columnHeadersHeight; 20137rowBounds.Height = this.Rows.SharedRow(indexTmp).GetHeight(indexTmp); 20140rowBounds.Height++; 20189rowBounds.Height = this.Rows.SharedRow(indexTmp).GetHeight(indexTmp); 20192rowBounds.Height++; 20229cellBounds.Height = this.columnHeadersHeight; 20417cellBounds.Height++; 20418cellClip.Height++; 26441rowsRect.Height--; 26452rowsRect.Height -= frozenRowsThickness; 26477rowsRect.Height = 1; 29079bottomArea.Height -= bottomArea.Y - topEdge; 29136bottomArea.Height -= bottomArea.Y - topEdge;
winforms\Managed\System\WinForms\DataGridViewRow.cs (2)
1944rowRect.Height = this.owner.Height; 1976rowRect.Height = this.owner.Height;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (5)
788valBounds.Height -= borderWidths.Bottom; 806valBounds.Height -= cellStyle.Padding.Vertical; 857valBounds.Height -= rectThemeMargins.X + rectThemeMargins.Width; 884valBounds.Height -= cellStyle.Padding.Vertical; 971valBounds.Height -= 2 * DATAGRIDVIEWROWHEADERCELL_verticalTextMargin;
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (6)
247editingControlBounds.Height = Math.Max(0, editingControlBounds.Height - DATAGRIDVIEWTEXTBOXCELL_verticalTextOffsetTop); 253editingControlBounds.Height++; 259editingControlBounds.Height = Math.Max(0, editingControlBounds.Height - DATAGRIDVIEWTEXTBOXCELL_verticalTextOffsetBottom); 699valBounds.Height -= borderWidths.Bottom; 733valBounds.Height -= cellStyle.Padding.Vertical; 758valBounds.Height -= verticalTextMarginTop + DATAGRIDVIEWTEXTBOXCELL_verticalTextMarginBottom;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (3)
278valBounds.Height -= borderWidths.Bottom; 329valBounds.Height -= cellStyle.Padding.Vertical; 338valBounds.Height -= 2 * DATAGRIDVIEWTOPLEFTHEADERCELL_verticalTextMargin;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
295bounds.Height = BUTTON_HEIGHT;
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (2)
167r.Height -= 1; 174r.Height -= 1;
winforms\Managed\System\WinForms\Form.cs (5)
3455bounds.Height = correct.Height; 3469bounds.Height += delta; 5880restoredWindowBounds.Height = height; 5893restoreBounds.Height = height; 5998adjustedBounds.Height = Height;
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (4)
173textBounds.Height = measuredBounds.Height; 187boxBounds.Height -= font.Height / 2; 209clipMiddle.Height -= (textBounds.Bottom - boxBounds.Top); 266textBounds.Height = measuredBounds.Height;
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (3)
215bounds.Height = Math.Min(bounds.Height, value.Height); 237bounds.Height = Math.Max(bounds.Height, value.Height); 290if (!hChangedButNotSpecified) originalBounds.Height = height;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (2)
284remainingBounds.Height -= element.Bounds.Height; 294remainingBounds.Height -= element.Bounds.Height;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (8)
291withinThis.Height = alignThis.Height; 304withinThis.Height = alignThis.Height; 327rect.Height += padding.Vertical; 335rect.Height -= padding.Vertical; 450region1.Height = specifiedContent.Height; 452region2.Height -= specifiedContent.Height; 456region1.Height = specifiedContent.Height; 457region2.Height -= specifiedContent.Height;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (2)
1230cellBounds.Height = Math.Max(cellBounds.Height , 1); 1239elementBounds.Height = Math.Min(cellBounds.Height, elementBounds.Height);
winforms\Managed\System\WinForms\ListBox.cs (1)
1518bounds.Height = requestedHeight;
winforms\Managed\System\WinForms\ListView.cs (2)
4716rectInvalid.Height += rectInvalid.Y; 4725rectInvalid.Height += this.ClientRectangle.Bottom - rectInvalid.Bottom;
winforms\Managed\System\WinForms\PictureBox.cs (1)
464result.Height = (int) (imageSize.Height * ratio);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
645box.Height--;
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
2274rectangle.Height = cyDivider; 5068r.Height--;
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (1)
182inside.Height -= 3;
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
1960rect.Height += 2; 2150rectPaint.Height--;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (6)
2156rect.Height = RowHeight; 2229boundsScroll.Height = sizeWindow.Height - 2; 2263rect.Height = (Size.Height - rect.Y) - 1; 4483rect.Height -= 1; 5838newBounds.Height = Math.Max(MinDropDownSize.Height, dragBaseRect.Height + (dragPoint.Y - dragStart.Y)); 5852newBounds.Height = dragBaseRect.Height - delta;
winforms\Managed\System\WinForms\ScrollableControl.cs (7)
273rect.Height = displayRect.Height; 289displayRectangle.Height = Math.Max(displayRectangle.Height, AutoScrollMinSize.Height); 408display.Height = client.Height; 430fullClient.Height += SystemInformation.HorizontalScrollBarHeight; 433minClient.Height -= SystemInformation.HorizontalScrollBarHeight; 592clientToBe.Height -= SystemInformation.HorizontalScrollBarHeight; 1136displayRect.Height = height;
winforms\Managed\System\WinForms\SplitContainer.cs (4)
1552r.Height = Height; 1569r.Height = SplitterWidthInternal; 1729splitterRect.Height = this.Height; 1736splitterRect.Height = SplitterWidthInternal;
winforms\Managed\System\WinForms\Splitter.cs (4)
453bounds.Height = value; 457bounds.Height = value; 668if (r.Height < minWeight) r.Height = minWeight; 672if (r.Height < minWeight) r.Height = minWeight;
winforms\Managed\System\WinForms\ToolStrip.cs (3)
862rect.Height -= gripheight; 4294gripRectangle.Height = displayRect.Height; 4308gripRectangle.Height = Grip.GripThickness;
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
297options.client.Height -= heightOfDropDown;
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (2)
140rect.Height -= UpScrollButton.Height + UpScrollButton.Margin.Vertical + DownScrollButton.Height + DownScrollButton.Margin.Vertical; 185imageMarginBounds.Height =this.Height;
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (1)
303 bounds.Height -= 1;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
1500checkRectangle.Height = imageHeight;
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (1)
124bounds.Height = ParentInternal.Height;
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
1212bounds.Height = ParentInternal.DisplayRectangle.Height;
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (1)
278bounds.Height -= spaceToFree;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (6)
533cachedBounds.Height = (spaceToFree < 0) ? minSize.Height + -spaceToFree : minSize.Height; 966dragBounds.Height += dragBounds.Y - y; 973dragBounds.Height += (nextRowBounds.Height >> 2) + Row.Margin.Bottom + ToolStripPanel.RowsInternal[index + 1].Margin.Top; 1455displayRect.Height = ToolStripPanel.ParentInternal.DisplayRectangle.Height - (ToolStripPanel.Margin.Vertical + ToolStripPanel.Padding.Vertical) - Row.Margin.Vertical; 1458displayRect.Height = raftingDisplayRectangle.Height - Row.Margin.Vertical; 1485dragBounds.Height += Row.Margin.Vertical + ToolStripPanel.Padding.Vertical +5;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (6)
613bounds.Height -= 4; /*shrink to accomodate 1PX line*/ 857beginGradient.Height = firstGradientWidth; 858endGradient.Height = secondGradientWidth + 1; 882endGradient.Height -= 1; 1072overflowBoundsFill.Height = overflowButtonWidth; 1273bounds.Height = Math.Max(0, bounds.Height -6);
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (3)
232bounds.Height -= 1; 268bounds.Height = ((bounds.Height -2/*number of pixels for border*/) / 4) * 4; // make sure height is an even interval of 4. 291bounds.Height = 3;
winforms\Managed\System\WinForms\UpDownBase.cs (5)
829backRect.Height++; 845backRect.Height++; 1571rect.Height /= 2; 1614rectUp.Height /= 2; 1912bounds.Height /= 2;
System.Windows.Forms.DataVisualization (28)
Common\General\ChartGraphics.cs (2)
2421 absPositionRounded.Height = (int)Math.Round(absPosition.Bottom) - absPositionRounded.Y; 2560 absPositionRounded.Height = (int)Math.Round(absPosition.Bottom) - absPositionRounded.Y;
Common\General\Legend.cs (13)
480 legendPosition.Height -= this._titlePosition.Height; 515 this._headerPosition.Height = Math.Max(this._headerPosition.Height, 0); 518 legendPosition.Height -= this._headerPosition.Height; 647 this._legendItemsAreaPosition.Height -= this._truncatedDotsSize; 670 this._legendItemsAreaPosition.Height -= this._truncatedDotsSize; 854 cellPosition.Height = this._cellHeights[columnIndex, rowIndex]; 2473 separatorPosition.Height = this.GetSeparatorSize(legendItem.SeparatorType).Height; 2494 separatorRect.Height -= 2 * this.GetBorderSize() + this._titlePosition.Height; 4041 legendPosition.Height -= 2 * (this._offset.Height + this.GetBorderSize()); 4046 ++legendPosition.Height; 4102 fillRect.Height += this._offset.Height; 4273 legendPosition.Height -= 2 * this.GetBorderSize(); 4278 ++legendPosition.Height;
Common\General\LegendColumns.cs (11)
1451 this.cellPosition.Height -= (int)(this.Margins.Top * singleWCharacterSize.Height / 100f) 1458 this.cellPosition.Height -= this.Legend.GetSeparatorSize(LegendItem.SeparatorType).Height; 2100imagePosition.Height = (int)imageSize.Height; 2105 imageCellPosition.Height = imagePosition.Height; 2125 imageCellPosition.Height = newHeight; 2141 imagePosition.Height = (int)(imagePosition.Height / scaleValue); 2240 seriesMarkerPosition.Height = newHeight; 2297imageScale.Height = (int)imageSize.Height; 2311imageScale.Height = (int)(imageScale.Height / scaleValue); 2438imageScale.Height = (int)imageSize.Height; 2452 imageScale.Height = (int)(imageScale.Height / scaleValue);
WinForm\Utilities\Printing.cs (2)
258marginPixel.Height = (int)(marginPixel.Height * (ev.Graphics.DpiY / 100.0f)); 267chartPosition.Height = (int)(chartPosition.Height * Math.Min(chartWidthScale, chartHeightScale));
System.Workflow.Activities (3)
Designers\ConditionalDesigner.cs (1)
99diamondRectangle.Height = diamondRectangle.Width;
Designers\ListenDesigner.cs (1)
79roundRectangle.Height = roundRectangle.Width;
Designers\WhileDesigner.cs (1)
75connectors[connectors.GetLength(0) - 1].Height = connectors[connectors.GetLength(0) - 1].Height - (((designerTheme != null) ? designerTheme.ConnectorSize.Height : 0) / 3);
System.Workflow.ComponentModel (42)
AuthoringOM\Design\ActivityDesigner.cs (3)
2969bounds.Width += 1; bounds.Height += 1; 3045smartTagRectangle.Height = imageSize.Height + margin.Height; 3105dropDownRectangle.Height -= glyphSize.Height / 4;
AuthoringOM\Design\ActivityPreviewDesigner.cs (1)
311connectors[0].Height -= headerHeight;
AuthoringOM\Design\DesignerHelpers.cs (3)
204rectangle.Height = Math.Min(size.Height, destination.Height); 556bounds.Height += inflate.Height; 560bounds.Height += inflate.Height;
AuthoringOM\Design\DesignerWidgets.cs (13)
232itemRectangle.Height -= margin; 238itemRectangle.Y += margin; itemRectangle.Height -= margin; 1265textRectangle.Height = Math.Min(textRectangle.Height, this.maxTextHeight); 1298bounds.Height += DropShadowWidth; 1992this.drawItems[i].TabItemRectangle.Height = this.reqTabItemSize; 1999this.drawItems[i].TabItemRectangle.Height = tabItemSize; 2030this.drawItems[i].TabItemRectangle.Height -= itemSizeDecrease; 2032this.drawItems[i].TabItemRectangle.Height = this.reqTabItemSize; 2118textRectangle.Height -= (imageRectangle.Height + TabMargin); 2664this.bounds.Height = itemSize.Height + (2 * itemMargin.Height); 2834stripRectangle.Height = this.bounds.Height; 3390this.previewModeButtonRectangle.Height = Math.Min(designerTheme.PreviewButtonSize.Height, this.previewDescTextSize.Height); 3465destnRectangle.Height = Convert.ToInt32(Math.Ceiling((float)previewedActivityImage.Height / stretchFactor));
AuthoringOM\Design\FreeFormDesigner.cs (2)
938bounds.Height = Math.Max(minRectangle.Bottom - bounds.Top, e.Bounds.Bottom - bounds.Top); 1145enclosingRectangle.Height = rightBottom.Y - leftTop.Y;
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (3)
302designerBounds.Height += (designerBounds.Top - y); 311designerBounds.Height += (point.Y - designerBounds.Bottom); 315designerBounds.Height = Math.Max(designerBounds.Height, designerToSize.MinimumSize.Height);
AuthoringOM\Design\ParallelActivityDesigner.cs (1)
423dropTargetRectangle.Height += heightDelta;
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (4)
112bounds.Height = margin.Height + imageBounds.Height; 113bounds.Height += (imageBounds.Height > 0) ? margin.Height : 0; 114bounds.Height += textBounds.Height; 115bounds.Height += (textBounds.Height > 0) ? margin.Height : 0;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (6)
345bounds.Height += (MinHeaderBarHeight - textRectangle.Height); 372imageRectangle.Height += SequentialWorkflowRootDesigner.HeaderFooterSizeIncr; 402headerBarRectangle.Height = Math.Max(2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height + base.textSize.Height, MinHeaderBarHeight); 433bounds.Height = Math.Max(bounds.Height, rootDesigner.Size.Height - rootDesigner.TitleHeight - rootDesigner.OptimalHeight); 440bounds.Height = Math.Max(minHeight, bounds.Height); 455imageRectangle.Height += SequentialWorkflowRootDesigner.HeaderFooterSizeIncr;
AuthoringOM\Design\WorkflowLayouts.cs (6)
436insersectedLogicalViewPort.Height = pageLayoutData.LogicalPageBounds.Height - deltaLocation.Y; 437insersectedLogicalViewPort.Height -= deltaSize.Height; 471insersectedPhysicalViewPort.Height = pageLayoutData.ViewablePageBounds.Height - deltaLocation.Y; 472insersectedPhysicalViewPort.Height -= deltaSize.Height; 567viewPortBitmapArea.Height = pageLayoutData.LogicalPageBounds.Height; 673viewPortBitmapArea.Height = intersectedViewPort.Height;
System.WorkflowServices (1)
System\Workflow\Activities\Design\GradientPanel.cs (1)
87frameRect.Height += Margin.Top + Margin.Bottom;
1186 references to Height
System.Drawing (64)
commonui\System\Drawing\Advanced\GPRECT.cs (1)
33Height = rect.Height;
commonui\System\Drawing\Advanced\GraphicsPath.cs (4)
803AddArc(rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle); 1170rect.Width, rect.Height); 1229AddEllipse(rect.X, rect.Y, rect.Width, rect.Height); 1259AddPie(rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle);
commonui\System\Drawing\Advanced\LinearGradientBrush.cs (2)
144if (rect.Width == 0 || rect.Height == 0) { 240if (rect.Width == 0 || rect.Height == 0) {
commonui\System\Drawing\Advanced\RectangleF.cs (1)
479return new RectangleF(r.X, r.Y, r.Width, r.Height);
commonui\System\Drawing\Advanced\TextureBrush.cs (2)
168dstRect.Height, 279dstRect.Height,
commonui\System\Drawing\Bitmap.cs (2)
490if (rect.Width == 0 || rect.Height == 0) { 500rect.Height,
commonui\System\Drawing\BufferedGraphicsContext.cs (5)
117Debug.WriteLineIf(DoubleBuffering.TraceWarning, "Too big of buffer requested (" + targetRectangle.Width + " x " + targetRectangle.Height + ") ... allocating temp buffer manager"); 132Debug.WriteLineIf(DoubleBuffering.TraceWarning, "Too big of buffer requested (" + targetRectangle.Width + " x " + targetRectangle.Height + ") ... allocating temp buffer manager"); 170surface = CreateBuffer(destDc, -targetLoc.X, -targetLoc.Y, targetRectangle.Width, targetRectangle.Height); 177surface = CreateBuffer(targetDC, -targetLoc.X, -targetLoc.Y, targetRectangle.Width, targetRectangle.Height); 674return (targetBounds.Width * targetBounds.Height) > (MaximumBuffer.Width * MaximumBuffer.Height);
commonui\System\Drawing\Graphics.cs (19)
1307DrawArc(pen, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle); 1411DrawRectangle(pen, rect.X, rect.Y, rect.Width, rect.Height); 1546DrawEllipse(pen, rect.X, rect.Y, rect.Width, rect.Height); 1607DrawPie(pen, rect.X, rect.Y, rect.Width, rect.Height, startAngle, 2022FillRectangle(brush, rect.X, rect.Y, rect.Width, rect.Height); 2208FillEllipse(brush, rect.X, rect.Y, rect.Width, rect.Height); 2238FillPie(brush, rect.X, rect.Y, rect.Width, rect.Height, startAngle, 2834DrawImage(image, rect.X, rect.Y, rect.Width, rect.Height); 2898int height = Math.Min(rect.Height, image.Height); 3031srcRect.Height, 3091destRect.Height, 3095srcRect.Height, 3257srcRect.Height, 3313destRect.Height, 3368destRect.Height, 3959rect.Width, rect.Height, combineMode); 4026rect.Width, rect.Height, CombineMode.Intersect); 4065rect.Width, rect.Height, CombineMode.Exclude); 4356rect.Width, rect.Height, out isVisible);
commonui\System\Drawing\Icon.cs (2)
435imageHeight = imageRect.Height; 446targetHeight = targetRect.Height;
commonui\System\Drawing\Printing\PrintController.cs (1)
267pageBounds.Height - (pageSettings.Margins.Top + pageSettings.Margins.Bottom));
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (1)
86Convert(value.Height, fromUnit, toUnit)
commonui\System\Drawing\Rectangle.cs (20)
115return new Size(Width, Height); 230return Y + Height; 238/// or a <see cref='System.Drawing.Rectangle.Height'/> of 0. 266(comp.Height == this.Height); 280&& left.Height == right.Height); 342y < this.Y + this.Height; 370((rect.Y + rect.Height) <= (this.Y + this.Height)); 382(((UInt32)Height << 7) | ((UInt32)Height >> 25)))); 431this.Height = result.Height; 442int y2 = Math.Min(a.Y + a.Height, b.Y + b.Height); 460(rect.Y < this.Y + this.Height) && 461(this.Y < rect.Y + rect.Height); 476int y2 = Math.Max(a.Y + a.Height, b.Y + b.Height); 510",Height=" + Height.ToString(CultureInfo.CurrentCulture) + "}";
commonui\System\Drawing\RectangleConverter.cs (2)
131args[nArg++] = intConverter.ConvertToString(context, culture, rect.Height); 142rect.X, rect.Y, rect.Width, rect.Height});
commonui\System\Drawing\Region.cs (1)
967rect.Width, rect.Height,
misc\GDI\WindowsRegion.cs (1)
135this.nativeHandle = IntSafeNativeMethods.CreateRectRgn(rect.X, rect.Y, rect.X+rect.Width, rect.Y+rect.Height);
System.Web.DataVisualization (53)
Common\General\Legend.cs (17)
477 Math.Min(legendPosition.Height, titleSize.Height)); 480 legendPosition.Height -= this._titlePosition.Height; 512 legendPosition.Location.Y + this._titlePosition.Height, 514 Math.Min(legendPosition.Height - this._titlePosition.Height, highestHeader.Height)); 515 this._headerPosition.Height = Math.Max(this._headerPosition.Height, 0); 518 legendPosition.Height -= this._headerPosition.Height; 530 legendPosition.Y + this._offset.Height + this.GetBorderSize() + this._titlePosition.Height + this._headerPosition.Height, 532 legendPosition.Height - 2 * (this._offset.Height + this.GetBorderSize()) ); 2493 separatorRect.Y += this.GetBorderSize() + this._titlePosition.Height; 2494 separatorRect.Height -= 2 * this.GetBorderSize() + this._titlePosition.Height; 2503 if(separatorRect.Width > 0 && separatorRect.Height > 0) 2532 this._legendItemsAreaPosition.Height > this._truncatedDotsSize / 2) 4033 this._headerPosition.Height > 0) 4093 if(rect.Width > 0 && rect.Height > 0) 4099 if(this._titlePosition.Height <= 0)
Common\General\LegendColumns.cs (35)
1915 if(this.cellPosition.Width <= 0 || this.cellPosition.Height <= 0) 2049if (charSize.Height > this.cellPosition.Height && (format.FormatFlags & StringFormatFlags.LineLimit) != 0) 2054else if (charSize.Height < this.cellPosition.Height && (format.FormatFlags & StringFormatFlags.LineLimit) == 0) 2105 imageCellPosition.Height = imagePosition.Height; 2121 if(newHeight > this.cellPosition.Height) 2123 newHeight = this.cellPosition.Height; 2131 if(imagePosition.Height > imageCellPosition.Height) 2133 scaleValue = (float)imagePosition.Height / (float)imageCellPosition.Height; 2141 imagePosition.Height = (int)(imagePosition.Height / scaleValue); 2146 imagePosition.Y = (int)((this.cellPosition.Y + this.cellPosition.Height/2f) - imagePosition.Height/2f); 2166 imagePosition.Y = this.cellPosition.Bottom - imagePosition.Height; 2236 if(newHeight > this.cellPosition.Height) 2238 newHeight = this.cellPosition.Height; 2244 if(seriesMarkerPosition.Height <= 0 || seriesMarkerPosition.Width <= 0) 2251 seriesMarkerPosition.Y = (int)((this.cellPosition.Y + this.cellPosition.Height/2f) - seriesMarkerPosition.Height/2f); 2271 seriesMarkerPosition.Y = this.cellPosition.Bottom - seriesMarkerPosition.Height; 2301if (imageScale.Height > seriesMarkerPosition.Height) 2303scaleValue = (float)imageScale.Height / (float)seriesMarkerPosition.Height; 2311imageScale.Height = (int)(imageScale.Height / scaleValue); 2315imageScale.Y = (int)((seriesMarkerPosition.Y + seriesMarkerPosition.Height / 2f) - imageScale.Height / 2f); 2369 point1.Y = (int)(seriesMarkerPosition.Y + seriesMarkerPosition.Height/2F); 2407 int markerSize = (int)Math.Min(seriesMarkerPosition.Width, seriesMarkerPosition.Height); 2424 point.Y = (int)(seriesMarkerPosition.Y + seriesMarkerPosition.Height/2f); 2442 if(imageScale.Height > seriesMarkerPosition.Height) 2444 scaleValue = (float)imageScale.Height / (float)seriesMarkerPosition.Height; 2452 imageScale.Height = (int)(imageScale.Height / scaleValue);
WebForm\ChartWebControl.cs (1)
1054this.chartPicture.Height = position.Height;
System.Web.Mobile (2)
UI\MobileControls\Design\Util\GroupLabel.cs (1)
49int etchTop = r.Height / 2;
UI\MobileControls\Design\Util\HeaderLabel.cs (1)
40headerPanel.RequestNewHeight(this, e.NewRectangle.Height);
System.Windows.Forms (845)
misc\GDI\WindowsGraphics2.cs (7)
91int sideLength = Math.Min(bounds.Width, bounds.Height); 254if( bounds.Height == MaxSize.Height ) 256bounds.Height = bounds.Height - bounds.Y; 556if (textHeight > bounds.Height) 565adjustedBounds.Y = adjustedBounds.Top + adjustedBounds.Height / 2 - textHeight / 2; 580DrawRectangle(pen, rect.X, rect.Y, rect.Width, rect.Height); 618FillRectangle(brush, rect.X, rect.Y, rect.Width, rect.Height);
misc\GDI\WindowsRegion.cs (1)
135this.nativeHandle = IntSafeNativeMethods.CreateRectRgn(rect.X, rect.Y, rect.X+rect.Width, rect.Y+rect.Height);
winforms\Managed\System\WinForms\AccessibleObject.cs (2)
1366pcyHeight = bounds.Height; 1382pcyHeight = bounds.Height;
winforms\Managed\System\WinForms\AxHost.cs (3)
1579oldBounds.Height == height) { 1589if (width != oldBounds.Width || height != oldBounds.Height) { 4617dest.bottom = source.Height + source.Y;
winforms\Managed\System\WinForms\ButtonBase.cs (1)
1133ShowToolTip = (this.ClientRectangle.Width < preferredSize.Width || this.ClientRectangle.Height < preferredSize.Height);
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (26)
181Point p3 = new Point(bounds.X , bounds.Y + bounds.Height - 1 ); // bottom inner left. 182Point p4 = new Point(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1 ); // inner bottom right. 275Point p3 = new Point(bounds.X , bounds.Y + bounds.Height - 1 ); // bottom inner left. 276Point p4 = new Point(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1 ); // inner bottom right. 345Point p3 = new Point(bounds.X , bounds.Y + bounds.Height - 1 ); // bottom inner left. 346Point p4 = new Point(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1 ); // inner bottom right. 505size = System.Math.Min(size, System.Math.Min(r.Width, r.Height)); 509g.FillRectangle(brush, r.X, r.Y, size, r.Height); 512g.FillRectangle(brush, (r.X + r.Width - size), r.Y, size, r.Height); 518g.FillRectangle(brush, (r.X + size), (r.Y + r.Height - size), (r.Width - size * 2), size); 608g.DrawRectangle(pen, r.X, r.Y, r.Width - 1, r.Height - 1); 1131layout.textBounds.Width + 2, layout.textBounds.Height + 3); 1140if (layout.focus.Height % 2 == 0) { 1213layout.checkBounds.Y = (field.Y+field.Height)-layout.checkBounds.Height; 1219layout.checkBounds.Y = field.Y + (field.Height - layout.checkBounds.Height)/2; 1230layout.checkArea.Height = field.Height; 1242layout.checkArea.Height = field.Height; 1261layout.checkArea.Y = field.Y + field.Height - checkSizeFull; 1375layout.textBounds.Y = Math.Max(Math.Min(layout.textBounds.Y, layout.field.Y + (layout.field.Height - layout.textBounds.Height)/2), layout.field.Y); 1391layout.imageBounds.Height = Math.Max(0, Math.Min(maxBounds.Height - layout.textBounds.Height, layout.imageBounds.Height)); 1392layout.textBounds.Y = layout.imageBounds.Y + layout.imageBounds.Height;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (3)
245cacheCheckImage.Height == fullSize.Height) { 257NativeMethods.RECT rcCheck = NativeMethods.RECT.FromXYWH(0, 0, fullSize.Width, fullSize.Height); 258Bitmap bitmap = new Bitmap(fullSize.Width, fullSize.Height);
winforms\Managed\System\WinForms\CheckedListBox.cs (7)
690if (centeringFactor + idealCheckSize > bounds.Height) { 691centeringFactor = bounds.Height - idealCheckSize; 724bounds.Height); 770textBounds.Height - 2 * BORDER_SIZE); // minus borders 845e.Bounds.Width > 2 * BORDER_SIZE && e.Bounds.Height > 2 * BORDER_SIZE) { 852bounds.Height - 2 * BORDER_SIZE); // Upper and lower borders. 1674return new Rectangle(pt.x, pt.y, rect.Width, rect.Height);
winforms\Managed\System\WinForms\ComboBox.cs (11)
5934outerBorder = new Rectangle(clientRect.Location, new Size(clientRect.Width - 1, clientRect.Height - 1)); 5935innerBorder = new Rectangle(outerBorder.X + 1, outerBorder.Y + 1, outerBorder.Width - dropDownButtonWidth - 2, outerBorder.Height - 2); 5936innerInnerBorder = new Rectangle(innerBorder.X + 1, innerBorder.Y + 1, innerBorder.Width - 2, innerBorder.Height - 2); 5937dropDownRect = new Rectangle(innerBorder.Right + 1, innerBorder.Y, dropDownButtonWidth, innerBorder.Height+1); 5996g.DrawRectangle(outerBorderPen, new Rectangle(outerBorder.X, outerBorder.Y, dropDownRect.Width + 1, outerBorder.Height)); 5999g.DrawRectangle(outerBorderPen, new Rectangle(dropDownRect.X, outerBorder.Y, outerBorder.Right - dropDownRect.X, outerBorder.Height)); 6006g.DrawRectangle(outerBorderPen, new Rectangle(outerBorder.X, outerBorder.Y, dropDownRect.Width + 1, outerBorder.Height)); 6009g.DrawRectangle(outerBorderPen, new Rectangle(dropDownRect.X, outerBorder.Y, outerBorder.Right - dropDownRect.X, outerBorder.Height)); 6040g.DrawRectangle(innerPen, new Rectangle(outerBorder.X, outerBorder.Y, dropDownRect.Width + 1, outerBorder.Height)); 6043g.DrawRectangle(innerPen, new Rectangle(dropDownRect.X, outerBorder.Y, outerBorder.Right - dropDownRect.X, outerBorder.Height)); 6065Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
winforms\Managed\System\WinForms\CommonDialog.cs (1)
181int y = screen.Y + (screen.Height - r.bottom + r.top) / 3;
winforms\Managed\System\WinForms\Control.cs (18)
1376SetBounds(value.X, value.Y, value.Width, value.Height, BoundsSpecified.All); 6157if (targetBounds.Width <= 0 || targetBounds.Height <= 0 6168int height = Math.Min(this.Height, targetBounds.Height); 6621int sh = bounds.Height; 6632int localHeight = bounds.Height - adornmentHeight; 7313NativeMethods.RECT rcArea = NativeMethods.RECT.FromXYWH(rc.X, rc.Y, rc.Width, rc.Height); 7323rc.Height); 9744e.Graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1); 9806Rectangle newClipRect = new Rectangle(rectangle.Left + this.Left, rectangle.Top + this.Top, rectangle.Width, rectangle.Height); 11061NativeMethods.RECT rect = NativeMethods.RECT.FromXYWH(r.X, r.Y, r.Width, r.Height); 11078NativeMethods.RECT rect = NativeMethods.RECT.FromXYWH(r.X, r.Y, r.Width, r.Height); 11876height = adjustedBounds.Height; 13685if (!doubleBuffered || (clip.Width > 0 && clip.Height > 0)) { 14513if (sizeProperty != null && !sizeProperty.IsReadOnly && (bounds.Width != this.Width || bounds.Height != this.Height)) { 14536SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height, specified); 18270ioleClientSite.OnPosRectChange(NativeMethods.COMRECT.FromXYWH(bounds.X, bounds.Y, bounds.Width, bounds.Height)); 18364adjustRect.bottom = posRect.Height + posRect.Y; 18406NativeMethods.RECT rcIntersect = NativeMethods.RECT.FromXYWH(intersect.X, intersect.Y, intersect.Width, intersect.Height);
winforms\Managed\System\WinForms\ControlPaint.cs (85)
95if (szCtl.Height > result.Height) { 96result.Y = (szCtl.Height - result.Height) / 2; 103float yRatio = (float)bounds.Height / (float)imageSize.Height; 112result.Y = (bounds.Height - result.Height) /2; 117result.Height = bounds.Height; 504partOfImageToDraw.Height, GraphicsUnit.Pixel); 513partOfImageToDraw.Height, GraphicsUnit.Pixel); 648leftLineBottoms[leftOffset] = bounds.Y + bounds.Height - i - 1; 651rightLineBottoms[rightOffset] = bounds.Y + bounds.Height - i - 1; 655leftLineBottoms[j] = bounds.Y + bounds.Height - i - 1; 658rightLineBottoms[j] = bounds.Y + bounds.Height - i - 1; 663leftLineBottoms[i] = bounds.Y + bounds.Height - 1; 666rightLineBottoms[i] = bounds.Y + bounds.Height - 1; 790graphics.DrawLine(pen, bottomLineLefts[i], bounds.Y + bounds.Height - 1 - i, bottomLineRights[i], bounds.Y + bounds.Height - 1 - i); 798graphics.DrawLine(pen, bottomLineLefts[i], bounds.Y + bounds.Height - 1 - i, bottomLineRights[i], bounds.Y + bounds.Height - 1 - i); 806graphics.DrawLine(pen, bottomLineLefts[i], bounds.Y + bounds.Height - 1 - i, bottomLineRights[i], bounds.Y + bounds.Height - 1 - i); 815graphics.DrawLine(pen, bottomLineLefts[i], bounds.Y + bounds.Height - 1 - i, bottomLineRights[i], bounds.Y + bounds.Height - 1 - i); 826graphics.DrawLine(pen, bottomLineLefts[i], bounds.Y + bounds.Height - 1 - i, bottomLineRights[i], bounds.Y + bounds.Height - 1 - i); 896DrawBorder3D(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, Border3DStyle.Etched, 906DrawBorder3D(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, style, 917DrawBorder3D(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, style, sides); 994bounds.X, bounds.Y + bounds.Height - 1); 998graphics.DrawLine(pen, bounds.X, bounds.Y + bounds.Height - 1, 999bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); 1001bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); 1008bounds.X + 1, bounds.Y + bounds.Height - 2); 1013graphics.DrawLine(pen, bounds.X + 1, bounds.Y + bounds.Height - 2, 1014bounds.X + bounds.Width - 2, bounds.Y + bounds.Height - 2); 1016bounds.X + bounds.Width - 2, bounds.Y + bounds.Height - 2); 1032bounds.X, bounds.Y + bounds.Height - 1); 1040graphics.DrawLine(pen, bounds.X, bounds.Y + bounds.Height - 1, 1041bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); 1043bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); 1059bounds.X + 1, bounds.Y + bounds.Height - 2); 1069graphics.DrawLine(pen, bounds.X + 1, bounds.Y + bounds.Height - 2, 1070bounds.X + bounds.Width - 2, bounds.Y + bounds.Height - 2); 1072bounds.X + bounds.Width - 2, bounds.Y + bounds.Height - 2); 1100graphics.DrawRectangle(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 1112DrawButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state); 1129DrawCaptionButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, button, state); 1147DrawCheckBox(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state); 1170DrawComboButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state); 1194graphics.FillRectangle(brush, bounds.Left + 1, bounds.Top + 1, bounds.Width - 2, bounds.Height - 2); 1203int midy = bounds.Y + bounds.Height/2; 1258if (rectangle.Width < 0 || rectangle.Height < 0) { 1263rectangle.Width - 2, rectangle.Height - 2); 1269if (checkImage == null || checkImage.Width != rectangle.Width || checkImage.Height != rectangle.Height) { 1278NativeMethods.RECT rcCheck = NativeMethods.RECT.FromXYWH(0, 0, rectangle.Width, rectangle.Height); 1279Bitmap bitmap = new Bitmap(rectangle.Width, rectangle.Height); 1304graphics.DrawRectangle(pen, offsetRectangle.X, offsetRectangle.Y, offsetRectangle.Width - 1, offsetRectangle.Height - 1); 1436Rectangle fillRect = new Rectangle(rectangle.X + 1, rectangle.Y + 1, rectangle.Width - 1, rectangle.Height - 1); 1677graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1); 1679graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1); 1688graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1); 1696DrawMenuGlyph(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, glyph); 1706DrawMenuGlyph(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, glyph, foreColor, backColor); 1733DrawMixedCheckBox(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state); 1750DrawRadioButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, state); 1849DrawScrollButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, button, state); 1891DrawSizeGrip(graphics, backColor, bounds.X, bounds.Y, bounds.Width, bounds.Height); 2014SafeNativeMethods.PatBlt(new HandleRef(null, dc), rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, rop3); 2460g.DrawLine(pen, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1); 2463g.DrawLine(SystemPens.ControlDark, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2464g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2471bound = new Rectangle(bound.X + 1, bound.Y + 1, bound.Width - 1, bound.Height - 1); 2474g.DrawLine(pen, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1); 2477g.DrawLine(SystemPens.ControlDark, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2478g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2483g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1); 2485g.DrawLine(pen, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2486g.DrawLine(pen, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2496bound = new Rectangle(bound.X + 1, bound.Y + 1, bound.Width - 1, bound.Height - 1); 2498g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y, bound.X, bound.Y + bound.Height - 1); 2500g.DrawLine(pen, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.Height - 1); 2501g.DrawLine(pen, bound.X, bound.Y + bound.Height - 1, bound.X + bound.Width - 1, bound.Y + bound.Height - 1);
winforms\Managed\System\WinForms\Cursor.cs (3)
193NativeMethods.RECT rcClip = NativeMethods.RECT.FromXYWH(value.X, value.Y, value.Width, value.Height); 439imageHeight = imageRect.Height; 450targetHeight = targetRect.Height;
winforms\Managed\System\WinForms\DataGrid.cs (42)
340horizScrollBar.Top = ClientRectangle.Height - horizScrollBar.Height; 4481oldClientRectangle.Height); 4483oldClientRectangle.Y + oldClientRectangle.Height - borderWidth, 4493newClientRectangle.Height); 4496if (newClientRectangle.Height != oldClientRectangle.Height) { 4499newClientRectangle.Y + newClientRectangle.Height - borderWidth, 4711Rectangle r = new Rectangle(e.X, inside.Y, 3, inside.Height); 4771size = (int) g.MeasureString(columnName, headerFont).Width + layout.ColumnHeaders.Height + 1; // This is not a bug, the sort triangle's width is equal to it's height. 5103clip.Height = layout.Data.Y + layout.Data.Height - topEdge - 2; 5135int y = Math.Min(e.Y, layout.Data.Y + layout.Data.Height + 1); 5281int dataLogicalBottom = layout.Data.Height + firstVisibleRowLogicalTop; 5640int visibleHeight = data.Height; 5776rowExclude.Height)); 5860SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y, r.Width, r.Height, NativeMethods.PATINVERT); 6600columnArea.Height = layout.Data.Height; 6669Rectangle inner = new Rectangle(rowRect.X + r.X, rowRect.Y + r.Y, r.Width, r.Height); 6847layout.Data.Height + layout.ColumnHeaders.Height); 7175(columnSorted ? textBounds.Height : 0); 7182(columnSorted ? textBounds.Height : 0); 7244Rectangle triBounds = new Rectangle(alignRight ? textBounds.X - textBounds.Height : textBounds.Right, 7246textBounds.Height, 7247textBounds.Height); 7250int deflateValue = Math.Max(0,(textBounds.Height - 5) / 2); 7259int paintedWidth = textBounds.Width + (columnSorted ? textBounds.Height : 0); 7263textBounds.X -= textBounds.Height; 7304g.FillRectangle(br, bounds.Right - 2, bounds.Y, 2, bounds.Height + 2); 7306g.FillRectangle(br, bounds.X, bounds.Y, 2, bounds.Height + 2); 7332int columnHeaderHeight = layout.ColumnHeaders.Height; 7352if (rc.Height > 0) { 7405if (cy > boundingRect.Height) 7457cy += rowBounds.Height; 8628NativeMethods.RECT scrollArea = NativeMethods.RECT.FromXYWH(rowsRect.X, rowsRect.Y, rowsRect.Width, rowsRect.Height); 8854underParentRows.Y -= layout.ColumnHeaders.Height; 8855underParentRows.Height += layout.ColumnHeaders.Height; 8881NativeMethods.RECT scrollRECT = NativeMethods.RECT.FromXYWH(underParentRows.X, underParentRows.Y - layout.ParentRows.Height, underParentRows.Width, underParentRows.Height + layout.ParentRows.Height); 8883SafeNativeMethods.ScrollWindow(new HandleRef(this, Handle), 0, -parentRowsRect.Height, ref scrollRECT, ref scrollRECT); 8892fixupRect.Y -= parentRowsRect.Height; 8893fixupRect.Height += parentRowsRect.Height;
winforms\Managed\System\WinForms\DataGridBoolColumn.cs (2)
157bounds.Y +((bounds.Height - idealCheckSize) / 2), 162Math.Max(0,bounds.Y +((bounds.Height - idealCheckSize) / 2)),
winforms\Managed\System\WinForms\DataGridCaption.cs (4)
538g.DrawImage(b, bounds, 0, 0, bounds.Width, bounds.Height,GraphicsUnit.Pixel, attr); 559if (textBounds.Width <= 0 || textBounds.Height <= 0) 563g.DrawRectangle(this.textBorderPen, textBounds.X, textBounds.Y, textBounds.Width - 1, textBounds.Height - 1); 576textPadding, textBounds.Height - 2*textPadding);
winforms\Managed\System\WinForms\DataGridParentRows.cs (12)
327Rectangle r = new Rectangle(rect.X, rect.Y, rect.Width + borderWidth, rect.Height + borderWidth); 564borderWidth, bounds.Height - 2*borderWidth); 664layout.leftArrow = new Rectangle(bounds.X, bounds.Y, 15, bounds.Height); 665layout.data = new Rectangle(layout.leftArrow.Right, bounds.Y, bounds.Width - 30, bounds.Height); 666layout.rightArrow = new Rectangle(layout.data.Right, bounds.Y, 15, bounds.Height); 729rowBounds.Y += rowBounds.Height; 775int bmpY = bounds.Y + (bounds.Height - b.Height) / 2; 784g.DrawImage(b, bmpRect, 0, 0, bmpRect.Width, bmpRect.Height,GraphicsUnit.Pixel, attr); 797g.DrawLine(Pens.White, bounds.X + bounds.Width, bounds.Y, bounds.X + bounds.Width, bounds.Y + bounds.Height); // the right side 798g.DrawLine(Pens.White, bounds.X + bounds.Width, bounds.Y + bounds.Height, bounds.X, bounds.Y + bounds.Height); // the right side 799g.DrawLine(Pens.Black, bounds.X, bounds.Y + bounds.Height, bounds.X, bounds.Y); // the left side
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (20)
68return base.MinimumRowHeight(cols) + (this.expanded ? GetRelationshipRect().Height : 0); 79return base.MinimumRowHeight(dgTable) + (this.expanded ? GetRelationshipRect().Height : 0); 182return height + GetRelationshipRect().Height; 189base.Height = value - GetRelationshipRect().Height; 545trueRowBounds.Height - dataBounds.Height - 2 * bWidth); 614bounds.Height); 626bounds.Height); 656bounds.Height); 662g.DrawRectangle(SystemPens.ControlText, relRect.X, relRect.Y, relRect.Width - 1, relRect.Height - 1); 667if (cy < relRect.Height) { 668g.FillRectangle(GetBackBrush(), relRect.X, relRect.Y + cy, relRect.Width, relRect.Height - cy); 684bounds.Height); 699bounds.Height); 714if (cy > bounds.Height) 740cy += textBounds.Height; 760g.DrawRectangle(drawPen, outline.X, outline.Y, outline.Width - 1, outline.Height - 1); 771outline.X + outline.Height/2, outline.Y + indent, 772outline.X + outline.Height/2, outline.Bottom - indent - 1); // -1... hinting 776points[0] = new Point(outline.X + outline.Height/2, outline.Bottom);
winforms\Managed\System\WinForms\DataGridRow.cs (3)
520cellBounds.Height); 531bounds.Height); 572g.DrawImage(bmp, bmpRect, 0, 0, bmpRect.Width, bmpRect.Height,GraphicsUnit.Pixel, attr);
winforms\Managed\System\WinForms\DataGridToolTip.cs (1)
71toolInfo.rect = NativeMethods.RECT.FromXYWH(iconBounds.X, iconBounds.Y, iconBounds.Width, iconBounds.Height);
winforms\Managed\System\WinForms\DataGridView.cs (2)
504this.horizScrollBar.Top = this.ClientRectangle.Height - horizScrollBar.Height; 3188int displayHeight = this.layout.Data.Height;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (7)
341int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical; 356marginHeights = rectThemeMargins.Y + rectThemeMargins.Height; 734if (valBounds.Height > 0 && valBounds.Width > 0) 757if (valBounds.Height > 0 && valBounds.Width > 0 && (paint || computeContentBounds)) 929Debug.Assert(valBounds.Height <= 0 || valBounds.Width <= 0); 939valBounds.Height > 2 * SystemInformation.Border3DSize.Height + 1) 1025if (valBounds.Width > 0 && valBounds.Height > 0)
winforms\Managed\System\WinForms\DataGridViewCell.cs (18)
1250cellValueBounds.Height >= DATAGRIDVIEWCELL_iconMarginHeight * 2 + iconsHeight) 1255cellValueBounds.Y + (cellValueBounds.Height - iconsHeight) / 2, 3166if (preferredHeight > contentBounds.Height || widthTruncated) 3596bounds.Height); 3611if (dividerThickness > bounds.Height) 3613dividerThickness = bounds.Height; 3632if (bounds.Height <= 0) 4302cellValueBounds.Height >= DATAGRIDVIEWCELL_iconMarginHeight * 2 + iconsHeight) 4325cellValueBounds.Height >= DATAGRIDVIEWCELL_iconMarginHeight * 2 + iconsHeight) 4328if (iconBounds.Width >= DATAGRIDVIEWCELL_iconMarginWidth && iconBounds.Height >= iconsHeight) 4356rectPadding = new Rectangle(bounds.X, bounds.Y, cellStyle.Padding.Right, bounds.Height); 4365rectPadding = new Rectangle(bounds.X, bounds.Y, cellStyle.Padding.Left, bounds.Height); 4512this.DataGridView.EditingControl.Size = new Size(editingControlBounds.Width, editingControlBounds.Height); 4551int yEditingPanel, hEditingPanel = cellBounds.Height; 4587if (cellClip.Bottom <= cellBounds.Bottom - borderAndPaddingWidths.Height) 4593hEditingPanel -= borderAndPaddingWidths.Height; 4597hEditingControl = cellBounds.Height - borderAndPaddingWidths.Y - borderAndPaddingWidths.Height;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (7)
763int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical; 1299if (valBounds.Width >= checkBoxSize.Width && valBounds.Height >= checkBoxSize.Height && (paint || computeContentBounds)) 1322checkBoxY = valBounds.Top + (valBounds.Height - checkBoxSize.Height) / 2; 1423if (checkImage == null || checkImage.Width != fullSize.Width || checkImage.Height != fullSize.Height) 1433NativeMethods.RECT rcCheck = NativeMethods.RECT.FromXYWH(0, 0, fullSize.Width, fullSize.Height); 1434Bitmap bitmap = new Bitmap(fullSize.Width, fullSize.Height); 1621Debug.Assert(valBounds.Width < checkBoxSize.Width || valBounds.Height < checkBoxSize.Height, "the bounds are empty");
winforms\Managed\System\WinForms\DataGridViewColumn.cs (1)
1283int displayHeight = dataGridView.LayoutInfo.Data.Height;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (16)
539int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical; 707preferredSize.Height += rectThemeMargins.Y + rectThemeMargins.Height; 821if (paint && DataGridViewCell.PaintBackground(paintParts) && backgroundBounds.Width > 0 && backgroundBounds.Height > 0) 860bmFlipXPThemes.Height < backgroundBounds.Height || bmFlipXPThemes.Height > 2 * backgroundBounds.Height) 862bmFlipXPThemes = this.FlipXPThemesBitmap = new Bitmap(backgroundBounds.Width, backgroundBounds.Height); 865DataGridViewColumnHeaderCellRenderer.DrawHeader(gFlip, new Rectangle(0, 0, backgroundBounds.Width, backgroundBounds.Height), state); 867g.DrawImage(bmFlipXPThemes, backgroundBounds, new Rectangle(bmFlipXPThemes.Width - backgroundBounds.Width, 0, backgroundBounds.Width, backgroundBounds.Height), GraphicsUnit.Pixel); 877valBounds.Height -= rectThemeMargins.Y + rectThemeMargins.Height; 891if (paint && DataGridViewCell.PaintBackground(paintParts) && backgroundBounds.Width > 0 && backgroundBounds.Height > 0) 924valBounds.Height > 0 && 951if (preferredHeight <= valBounds.Height && !widthTruncated) 968(valBounds.Height-sortGlyphHeight)/2); 977(valBounds.Height-sortGlyphHeight)/2); 1008valBounds.Height >= sortGlyphHeight) 1012valBounds.Top + (valBounds.Height-sortGlyphHeight)/2);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (31)
756size.Height - borderAndPaddingWidths.Y - borderAndPaddingWidths.Height); 1373int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical; 2169if (paint && DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255 && valBounds.Width > 0 && valBounds.Height > 0) 2188if (paint && valBounds.Width > 0 && valBounds.Height > 0) 2194g.FillRectangle(br, valBounds.Left, valBounds.Top, valBounds.Width, valBounds.Height); 2208DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255 && valBounds.Width > 2 && valBounds.Height > 2) 2210g.FillRectangle(br, valBounds.Left + 1, valBounds.Top + 1, valBounds.Width - 2, valBounds.Height - 2); 2217g.DrawRectangle(SystemPens.ControlLightLight, new Rectangle(valBounds.X, valBounds.Y, valBounds.Width-1, valBounds.Height-1)); 2221g.FillRectangle(br, valBounds.Left, valBounds.Top, valBounds.Width, valBounds.Height); 2233dropHeight = Math.Min(GetDropDownButtonHeight(g, cellStyle), paintPostXPThemes ? valBounds.Height : valBounds.Height - 2); 2237dropHeight = Math.Min(GetDropDownButtonHeight(g, cellStyle), valBounds.Height - 4); 2370dropRect.X, dropRect.Y + dropRect.Height - 1); 2375g.DrawLine(pen, valBounds.X, valBounds.Y + valBounds.Height - 1, 2376valBounds.X + valBounds.Width - 1, valBounds.Y + valBounds.Height - 1); 2378valBounds.X + valBounds.Width - 1, valBounds.Y + valBounds.Height - 1); 2389g.DrawLine(pen, dropRect.X, dropRect.Y + dropRect.Height - 1, 2390dropRect.X + dropRect.Width - 1, dropRect.Y + dropRect.Height - 1); 2392dropRect.X + dropRect.Width - 1, dropRect.Y + dropRect.Height - 1); 2400valBounds.X, valBounds.Y + valBounds.Height - 1); 2416dropRect.X + 1, dropRect.Y + dropRect.Height - 2); 2427g.DrawLine(pen, dropRect.X + 1, dropRect.Y + dropRect.Height - 2, 2428dropRect.X + dropRect.Width - 2, dropRect.Y + dropRect.Height - 2); 2430dropRect.X + dropRect.Width - 2, dropRect.Y + dropRect.Height - 2); 2441Point middle = new Point(dropRect.Left + dropRect.Width / 2, dropRect.Top + dropRect.Height / 2); 2445middle.Y += (dropRect.Height % 2); 2463dropRect.Top + (dropRect.Height + nonXPTriangleHeight) / 2); 2467middle.Y += (dropRect.Height % 2); 2528if (textBounds.Width > 1 && textBounds.Height > 1) 2557if (focusBounds.Width > 0 && focusBounds.Height > 0) 2596if (textBounds.Width > 0 && textBounds.Height > 0)
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
493rectThemeMargins.Y + rectThemeMargins.Width + rectThemeMargins.Height == 0)
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (10)
477int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical; 647if (imgWidth * bounds.Height < imgHeight * bounds.Width) 650imgBounds = new Rectangle(bounds.X, bounds.Y, Decimal.ToInt32((decimal)imgWidth * bounds.Height / imgHeight), bounds.Height); 732imgBounds.Y = bounds.Y + (bounds.Height - imgBounds.Height) / 2; 738imgBounds.Y = bounds.Bottom - imgBounds.Height; 823if (valBounds.Width > 0 && valBounds.Height > 0 && (paint || computeContentBounds)) 843if (imgBounds.Width > 0 && imgBounds.Height > 0) 973Debug.Assert(valBounds.Height <= 0 || valBounds.Width <= 0);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (4)
664int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical; 1061if (valBounds.Width > 0 && valBounds.Height > 0) 1118errorBounds.Height > 0) 1144valBounds.Height > 0)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (80)
508int displayHeight = this.layout.Data.Height; 947this.layout.Data.Height > totalVisibleFrozenHeight && 1308int displayHeight = this.layout.Data.Height; 2018preferredWidth = this.TopLeftHeaderCell.GetPreferredWidth(-1, this.layout.TopLeftHeader.Height); 2045int displayHeight = this.layout.Data.Height, cy = 0; 2191preferredWidth = this.TopLeftHeaderCell.GetPreferredWidth(-1, this.layout.TopLeftHeader.Height); 2218int displayHeight = this.layout.Data.Height, cy = 0; 2811clip.Height = this.layout.Data.Y + this.layout.Data.Height - topEdge - 1; 3025inside.Height); 3031r = new Rectangle(mouseX + this.mouseBarOffset - 1, inside.Y, this.Columns[this.trackColumn].Thickness, inside.Height); 3041Rectangle r = new Rectangle(mouseX + this.mouseBarOffset - 1, inside.Y, 3, inside.Height); 4244int displayHeight = this.layout.Data.Height - totalVisibleFrozenHeight; 4332if (this.normalClientRectangle.Width > 0 || this.normalClientRectangle.Height > 0) 4343if (inside.Height < 0) 4358colHeaders.Height = Math.Min(this.columnHeadersHeight, colHeaders.Height); 4359insideLeft.Y += colHeaders.Height; 4360insideLeft.Height -= colHeaders.Height; 4361Debug.Assert(insideLeft.Height >= 0); 4430if (insideLeft.Height > 0) 4443Debug.Assert(newLayout.Data.Height >= 0); 4513this.vertScrollBar.LargeChange = this.layout.Data.Height - totalVisibleFrozenHeight; 4750int displayHeight = this.layout.Data.Height; 5688Rectangle rectInsertionBar = new Rectangle(0, this.layout.ColumnHeaders.Top, DATAGRIDVIEW_insertionBarWidth, this.layout.ColumnHeaders.Height); 5772SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y + r.Height - DATAGRIDVIEW_shadowEdgeThickness, r.Width, DATAGRIDVIEW_shadowEdgeThickness, NativeMethods.PATINVERT); 5773SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y + DATAGRIDVIEW_shadowEdgeThickness, DATAGRIDVIEW_shadowEdgeThickness, r.Height - 2 * DATAGRIDVIEW_shadowEdgeThickness, NativeMethods.PATINVERT); 5774SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X + r.Width - DATAGRIDVIEW_shadowEdgeThickness, r.Y + DATAGRIDVIEW_shadowEdgeThickness, DATAGRIDVIEW_shadowEdgeThickness, r.Height - 2 * DATAGRIDVIEW_shadowEdgeThickness, NativeMethods.PATINVERT); 5791SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y, r.Width, r.Height, NativeMethods.PATINVERT); 6421int displayHeight = this.layout.Data.Height; 6448int maxDisplayedRows = (int) (rectScreen.Height / DataGridViewBand.minBandThickness); 8375columnRect = new Rectangle(cx - displayWidth, data.Y, displayWidth, data.Height); 8379columnRect = new Rectangle(cx, data.Y, displayWidth, data.Height); 8383columnRect.Height += this.layout.ColumnHeaders.Height; 8384columnRect.Y -= this.layout.ColumnHeaders.Height; 8647int emptyBackgroundHeight = Math.Max(0, this.layout.Data.Height - frozenVisibleRowsHeight - trailingScrollingRowsHeight); 9428else if (this.layout.TopLeftHeader.Top + this.layout.TopLeftHeader.Height - y < DATAGRIDVIEW_rowSizingHotZone) 9434hti.mouseBarOffset = this.layout.TopLeftHeader.Top + this.layout.TopLeftHeader.Height - y - 1; 10350horizScrollBarHeight <= this.layout.Data.Height) 10352int oldDataHeight = this.layout.Data.Height; 10354Debug.Assert(this.layout.Data.Height >= 0); 10376Debug.Assert(this.layout.RowHeaders.Height >= 0); 10393this.layout.Data.Height > totalVisibleFrozenHeight && 10421horizScrollBarHeight <= this.layout.Data.Height) 10438Debug.Assert(this.layout.Data.Height >= 0); 10445this.layout.Data.Height > totalVisibleFrozenHeight && 10519int vertScrollBarHeight = this.layout.Data.Height; 10523vertScrollBarHeight += this.layout.ColumnHeaders.Height; 10535this.vertScrollBar.LargeChange = this.layout.Data.Height - totalVisibleFrozenHeight; 14960if (rightArea.Width > 0 && rightArea.Height > 0) 14972if (rightArea.Width > 0 && rightArea.Height > 0) 17285edge.Y += rect.Height - 1; 17883oldClientRectangle.Height); 17885oldClientRectangle.Y + oldClientRectangle.Height - borderWidth, 17905newClientRectangle.Height); 17908if (newClientRectangle.Height != oldClientRectangle.Height) 17912newClientRectangle.Y + newClientRectangle.Height - borderWidth, 17924oldGridFocusRectangle.Height); 17928oldGridFocusRectangle.Y + oldGridFocusRectangle.Height - 1, 19773rcBelowRows.Y += this.layout.ColumnHeaders.Height; 19774rcBelowRows.Height -= this.layout.ColumnHeaders.Height; 19784if (rcBelowRows.Width > 0 && rcBelowRows.Height > 0) 19818if (rcBelowRows.Height > 0) 19820rcNextRows.Height = gridBounds.Height - rcBelowRows.Height; 19822if (rcNextRows.Width > 0 && rcNextRows.Height > 0) 19844edge.Y = bounds.Height - borderWidth; 19850edge.Height = bounds.Height; 19869g.DrawRectangle(pen, new Rectangle(0, 0, bounds.Width - 1, bounds.Height - 1)); 19879g.DrawRectangle(pen, new Rectangle(0, 0, bounds.Width - 1, bounds.Height - 1)); 20077int columnHeadersHeight = this.layout.ColumnHeaders.Height; 20087if (rc.Height > 0) 20157cy += rowBounds.Height; 20158if (cy >= boundingRect.Height) 20167if (this.displayedBandsInfo.FirstDisplayedScrollingRow >= 0 && cy < boundingRect.Height) 20209cy += rowBounds.Height; 20210if (cy >= boundingRect.Height) 20353if (editingZone.Width == 0 || editingZone.Height == 0) 20387if (cellClip.Width == 0 || cellClip.Height == 0) 26453Debug.Assert(rowsRect.Height >= 0); 26470NativeMethods.RECT scrollArea = NativeMethods.RECT.FromXYWH(rowsRect.X, rowsRect.Y, rowsRect.Width, rowsRect.Height);
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
1975rowRect.Y += rowRect.Height;
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (8)
2122GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, this.DataGridView.LayoutInfo.Data.Height); 2127useRowShortcut = GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, this.DataGridView.LayoutInfo.Data.Height + this.DataGridView.VerticalScrollingOffset) && 2128firstDisplayedRowHeight <= this.DataGridView.LayoutInfo.Data.Height; 2139useRowShortcut = this.DataGridView.LayoutInfo.Data.Height < displayedRowsHeightBeforeAddition && 2140firstDisplayedRowHeight <= this.DataGridView.LayoutInfo.Data.Height; 2166GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, this.DataGridView.LayoutInfo.Data.Height + SystemInformation.HorizontalScrollBarHeight); 2177useRowShortcut = GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, this.DataGridView.LayoutInfo.Data.Height + this.DataGridView.VerticalScrollingOffset + SystemInformation.HorizontalScrollBarHeight) && 2178firstDisplayedRowHeight <= this.DataGridView.LayoutInfo.Data.Height;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (16)
666int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical; 675borderAndPaddingWidths += rectThemeMargins.Height; 809if (backgroundBounds.Width > 0 && backgroundBounds.Height > 0) 834using (Bitmap bmFlipXPThemes = new Bitmap(backgroundBounds.Height, backgroundBounds.Width)) { 836DataGridViewRowHeaderCellRenderer.DrawHeader(gFlip, new Rectangle(0, 0, backgroundBounds.Height, backgroundBounds.Width), state); 841new Rectangle(0, 0, backgroundBounds.Width, backgroundBounds.Height), 850valBounds.X += rectThemeMargins.Height; 856valBounds.Width -= rectThemeMargins.Y + rectThemeMargins.Height; 864if (valBounds.Width > 0 && valBounds.Height > 0) 890if (valBounds.Width > 0 && valBounds.Height > 0) 899valBounds.Height >= iconsHeight + 965Debug.Assert(valBounds.Height >= 0); 972if (valBounds.Width > 0 && valBounds.Height > 0) 978Size maxBounds = new Size(valBounds.Width - iconsWidth - 2 * DATAGRIDVIEWROWHEADERCELL_iconMarginWidth, valBounds.Height); 1046valBounds.Height >= iconsHeight + 2 * DATAGRIDVIEWROWHEADERCELL_iconMarginHeight) 1135bounds.Y + (bounds.Height - iconsHeight)/2,
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (10)
247editingControlBounds.Height = Math.Max(0, editingControlBounds.Height - DATAGRIDVIEWTEXTBOXCELL_verticalTextOffsetTop); 259editingControlBounds.Height = Math.Max(0, editingControlBounds.Height - DATAGRIDVIEWTEXTBOXCELL_verticalTextOffsetBottom); 281if (preferredHeight < editingControlBounds.Height) 293editingControlBounds.Y += (editingControlBounds.Height - preferredHeight) / 2; 298editingControlBounds.Y += editingControlBounds.Height - preferredHeight; 439int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical; 717if (paint && DataGridViewCell.PaintBackground(paintParts) && br.Color.A == 255 && valBounds.Width > 0 && valBounds.Height > 0) 743valBounds.Height > 0) 759if (valBounds.Width > 0 && valBounds.Height > 0) 825this.DataGridView.EditingControl.Size = new Size(editingControlBounds.Width, editingControlBounds.Height);
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (2)
185int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.Vertical; 340valBounds.Height > 0 &&
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (4)
330Size sizeCell = new Size(cellBounds.Width, cellBounds.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;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (4)
275Rectangle pageBounds = new Rectangle(0, 0, pageHostBounds.Width, pageHostBounds.Height); 285bounds.Height + STRIP_HEIGHT + 4 * BUTTON_PAD + BUTTON_HEIGHT + 290selectorWidth, bounds.Height + STRIP_HEIGHT + 2 * BUTTON_PAD + BUTTON_HEIGHT); 293bounds.Y = bounds.Height + bounds.Y + BUTTON_PAD;
winforms\Managed\System\WinForms\ErrorProvider.cs (4)
999windowBounds.Height, 1074SafeNativeMethods.DrawIconEx(new HandleRef(this, mirrordc.Hdc), bounds.X - windowBounds.X, bounds.Y - windowBounds.Y, new HandleRef(provider.Region, provider.Region.IconHandle), bounds.Width, bounds.Height, 0, NativeMethods.NullHandleRef, NativeMethods.DI_NORMAL); 1226toolInfo.rect = NativeMethods.RECT.FromXYWH(iconBounds.X, iconBounds.Y, iconBounds.Width, iconBounds.Height); 1279windowBounds.Width, windowBounds.Height, NativeMethods.SWP_NOACTIVATE);
winforms\Managed\System\WinForms\Form.cs (14)
1174SetDesktopBounds(value.X, value.Y, value.Width, value.Height); 2207&& restoreBounds.Height == -1 3466if (correctClientSize.Height != currentClient.Height) { 3468int delta = correctClientSize.Height - currentClient.Height; 4024cp.Y = Math.Max(clientRect.Y,clientRect.Y + (clientRect.Height - cp.Height)/2); 4040cp.Y = Math.Max(screenRect.Y,screenRect.Y + (screenRect.Height - cp.Height)/2); 4469else if (p.Y + s.Height > screenRect.Y + screenRect.Height) 4470p.Y = screenRect.Y + screenRect.Height - s.Height; 4508p.Y = Math.Max(screenRect.Y,screenRect.Y + (screenRect.Height - Height)/2); 5686formStateEx[FormStateExWindowBoundsHeightIsClientSize]==1 ? restoredSize.Height : restoredWindowBounds.Height, 5892if ((specified & BoundsSpecified.Height) != 0 || restoreBounds.Height == -1) 5939base.SetBoundsCore(adjustedBounds.X, adjustedBounds.Y, adjustedBounds.Width, adjustedBounds.Height, BoundsSpecified.All); 7220mmi.ptMaxSize.y = maximizedBounds.Height; 7858toolInfo.rect = NativeMethods.RECT.FromXYWH(r.X, r.Y, r.Width, r.Height);
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (18)
171Size measuredBounds = TextRenderer.MeasureText(g, groupBoxText, font, new Size(textBounds.Width, textBounds.Height), flags); 229g.DrawLine(light, bounds.Left + 1, bounds.Top + 1, bounds.Left + 1, bounds.Height - 1); 230g.DrawLine(dark, bounds.Left, bounds.Top + 1, bounds.Left, bounds.Height - 2); 233g.DrawLine(light, bounds.Left, bounds.Height - 1, bounds.Width - 1, bounds.Height - 1); 234g.DrawLine(dark, bounds.Left, bounds.Height - 2, bounds.Width - 1, bounds.Height - 2); 241g.DrawLine(light, bounds.Width - 1, bounds.Top, bounds.Width - 1, bounds.Height - 1); 242g.DrawLine(dark, bounds.Width - 2, bounds.Top, bounds.Width - 2, bounds.Height - 2); 264Size measuredBounds = TextRenderer.MeasureText(g, groupBoxText, font, new Size(textBounds.Width, textBounds.Height), flags); 287g.DrawLine(light, bounds.Left + 1, boxTop, bounds.Left + 1, bounds.Height - 1); 288g.DrawLine(dark, bounds.Left, boxTop - 1, bounds.Left, bounds.Height - 2); 291g.DrawLine(light, bounds.Left, bounds.Height - 1, bounds.Width, bounds.Height - 1); 292g.DrawLine(dark, bounds.Left, bounds.Height - 2, bounds.Width - 1, bounds.Height - 2); 303g.DrawLine(light, bounds.Width - 1, boxTop, bounds.Width - 1, bounds.Height - 1); 304g.DrawLine(dark, bounds.Width - 2, boxTop - 1, bounds.Width - 2, bounds.Height - 2);
winforms\Managed\System\WinForms\Label.cs (4)
1101yLoc = (r.Y+r.Height - 4)-pointImageSize.Height; 1107yLoc = r.Y + (r.Height - pointImageSize.Height)/2; 1538Size preferredSize = GetPreferredSize(new Size(clientRect.Width, clientRect.Height)); 1539showToolTip = (clientRect.Width < preferredSize.Width || clientRect.Height < preferredSize.Height);
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (3)
215bounds.Height = Math.Min(bounds.Height, value.Height); 237bounds.Height = Math.Max(bounds.Height, value.Height); 282bool hChangedButNotSpecified = ((specified & BoundsSpecified.Height) == BoundsSpecified.None) & height != originalBounds.Height;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (23)
45proposedConstraints.Height = bounds.Height; 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; 167bottom += displayRect.Height; 171top += displayRect.Height; 176bottom += (displayRect.Height/2); 177top += (displayRect.Height/2); 207if (bottom < top || cachedBounds.Height != element.Bounds.Height || cachedBounds.Y != element.Bounds.Y) { 211bottom = top + Math.Max(element.Bounds.Height, cachedBounds.Height) + Math.Abs(bottom); 234if (CommonProperties.GetAutoSize(container) && ((displayRectangle.Width == 0) || (displayRectangle.Height == 0))) { 283remainingBounds.Y += element.Bounds.Height; 284remainingBounds.Height -= element.Bounds.Height; 294remainingBounds.Height -= element.Bounds.Height; 351Math.Max(0, newElementBounds.Height - remainingBounds.Height)); 571int parentHeight = parentDisplayRect.Height; 605anchorInfo.Top = oldAnchorInfo.Bottom - bounds.Height; // control might have been resized, update Top anchor 735if ((displayRectangle.Width == 0) || (displayRectangle.Height == 0)) { 862if (anchorDest.Height < 0) { 863prefSize.Height = Math.Max(prefSize.Height, elementSpace.Bottom + anchorDest.Height);
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (3)
119Rectangle measureBounds = new Rectangle(displayRect.X, displayRect.Y, displayRect.Width, displayRect.Height - layoutSize.Height); 186Size elementConstraints = new Size(Int32.MaxValue, rowBounds.Height - elementProxy.Margin.Size.Height); 220Rectangle cellBounds = new Rectangle(location, new Size(requiredSize.Width, rowBounds.Height));
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (6)
285withinThis.Y += withinThis.Height - alignThis.Height; 288withinThis.Y += (withinThis.Height - alignThis.Height) / 2; 298withinThis.Y += withinThis.Height - alignThis.Height; 301withinThis.Y += (withinThis.Height - alignThis.Height) / 2; 425return (rectangle.Width == 0 || rectangle.Height == 0); 455region1.Y += bounds.Height - specifiedContent.Height;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (3)
1230cellBounds.Height = Math.Max(cellBounds.Height , 1); 1239elementBounds.Height = Math.Min(cellBounds.Height, elementBounds.Height);
winforms\Managed\System\WinForms\LinkLabel.cs (10)
516yLoc = clientRect.Bottom - textRect.Height; 518yLoc = (clientRect.Height - textRect.Height) / 2; 531if (textRect.Height > clientRect.Height) { 533height = clientRect.Height; 535height = textRect.Height; 678Size clientSize = new Size(clientRectWithPadding.Width, clientRectWithPadding.Height); 1145Size preferredSize = GetPreferredSize(new Size(clientRect.Width, clientRect.Height)); 1146showToolTip = (clientRect.Width < preferredSize.Width || clientRect.Height < preferredSize.Height);
winforms\Managed\System\WinForms\MDIClient.cs (5)
215int sh = (int)Math.Round((bounds.Y + bounds.Height) * dy - sy); 244int yDelta = oldBounds.Height - newBounds.Height; 298rgn1 = SafeNativeMethods.CreateRectRgn(0, 0, bounds.Width, bounds.Height); 301bounds.Width - rect.right, bounds.Height - rect.bottom);
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
1964if (height != oldBounds.Height) {
winforms\Managed\System\WinForms\NativeMethods.cs (1)
6476this.height = r.Height;
winforms\Managed\System\WinForms\PictureBox.cs (4)
456result.Y += (result.Height - image.Height) / 2; 462float ratio = Math.Min((float)ClientRectangle.Width / (float)imageSize.Width, (float)ClientRectangle.Height / (float)imageSize.Height); 466result.Y = (ClientRectangle.Height - result.Height) /2;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
749NativeMethods.RECT scroll = NativeMethods.RECT.FromXYWH(rect.X, rect.Y, rect.Width, rect.Height);
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1734Rectangle rect = new Rectangle (0, 0 , item.Bounds.Width - 1, item.Bounds.Height - 1);
winforms\Managed\System\WinForms\PropertyGrid.cs (5)
2334cyNew = Math.Min((rectTarget.Y + rectTarget.Height - 15),cyNew); 2346if (rc.Width < rc.Height) { 2348ControlPaint.DrawReversibleLine(new Point(rc.X+i, rc.Y), new Point(rc.X+i, rc.Y+rc.Height), ctlDrawTo.BackColor); 2352for (int i = 0; i < rc.Height; i++) { 3200int yNew = rectDoc.Height + rectDoc.Y - dividerMoveY - (cyDivider / 2); // we subtract two so the mouse is still over the divider
winforms\Managed\System\WinForms\PropertyGridInternal\CategoryGridEntry.cs (1)
216Rectangle focusRect = new Rectangle(indent, rect.Y, labelWidth+3, rect.Height-1);
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (3)
119Rectangle rectInvalidate = new Rectangle(rect.Width-1,0,newRect.Width-rect.Width+1,rect.Height); 124if (ClientRectangle.Width != rect.Width || ClientRectangle.Height != rect.Height) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (11)
1891g.FillRectangle(blank, borderWidth-1, rect.Y, totalWidth-borderWidth+3, rect.Height); 1895g.DrawLine(linePen, totalWidth, rect.Y, totalWidth, rect.Height); 1907g.FillRectangle(blank, rect.X, rect.Y, rect.Width, rect.Height); 1912g.FillRectangle(stripeBrush, rect.X, rect.Y, borderWidth, rect.Height); 1915g.FillRectangle(gridHost.GetSelectedItemWithFocusBackBrush(g), stringX, rect.Y, rect.Width - stringX - 1, rect.Height); 1919Rectangle textRect = new Rectangle(stringX, rect.Y + 1, maxSpace, rect.Height - 1); 2063g.DrawRectangle(p, outline.X, outline.Y, outline.Width - 1, outline.Height - 1); 2067g.DrawLine(p, outline.X + indent,outline.Y + outline.Height / 2, 2068outline.X + outline.Width - indent - 1,outline.Y + outline.Height/2); 2073outline.X + outline.Width/2, outline.Y + outline.Height - indent - 1); 2199IntNativeMethods.RECT lpRect = IntNativeMethods.RECT.FromXYWH(rect.X + (int)m.OffsetX + 2, rect.Y + (int)m.OffsetY - 1, rect.Width - 4, rect.Height);
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
180NativeMethods.RECT rect = NativeMethods.RECT.FromXYWH(itemRect.X, itemRect.Y, itemRect.Width, itemRect.Height);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
623uiItemRects[i] = new Rectangle(rect.Right - ((scaledImageSizeX + 1) * (i + 1)), (rect.Height - scaledImageSizeY) / 2, scaledImageSizeX, scaledImageSizeY);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (21)
558return new Point(pt.X + (rect.Width / 2), pt.Y + (rect.Height / 2)); 793return new Rectangle(pt.x, pt.y, rect.Width, rect.Height); 1061rectTarget.Width,rectTarget.Height); 1644if (rectScreen.Y + rectScreen.Height < (size.Height + loc.Y + Edit.Height)) { 1649loc.Y += rect.Height + 1; 1723if (rectScreen.Y + rectScreen.Height < (size.Height + loc.Y + Edit.Height)) { 1728loc.Y += rect.Height + 1; 2223Size sizeWindow = new Size(rect.Width,rect.Height); 3462Point posEnd = FindPosition(clipRect.X, clipRect.Y + clipRect.Height); 3536yPos = rect.Y + rect.Height; 3774int yDelta = lastClientRect == Rectangle.Empty ? 0 : newRect.Height - lastClientRect.Height; 3783Rectangle rectInvalidate = new Rectangle(lastClientRect.Width-1,0,newRect.Width-lastClientRect.Width+1,lastClientRect.Height); 3788Rectangle rectInvalidate = new Rectangle(0,lastClientRect.Height-1,lastClientRect.Width,newRect.Height-lastClientRect.Height+1); 4083if (gridentry.OutlineRect.Height != outlineRectIconSize || gridentry.OutlineRect.Width != outlineRectIconSize) { 4430sizeBtn.Width,rect.Height); 5838newBounds.Height = Math.Max(MinDropDownSize.Height, dragBaseRect.Height + (dragPoint.Y - dragStart.Y)); 5849if ((dragBaseRect.Height - delta) > MinDropDownSize.Height) 5852newBounds.Height = dragBaseRect.Height - delta;
winforms\Managed\System\WinForms\Screen.cs (1)
328NativeMethods.RECT rc = NativeMethods.RECT.FromXYWH(rect.X, rect.Y, rect.Width, rect.Height);
winforms\Managed\System\WinForms\ScrollableControl.cs (26)
273rect.Height = displayRect.Height; 289displayRectangle.Height = Math.Max(displayRectangle.Height, AutoScrollMinSize.Height); 408display.Height = client.Height; 444int maxY = minClient.Height; 558int ctlBottom = -display.Y + bounds.Y + bounds.Height + scrollMargin.Height; 587if (maxY <= fullClient.Height) { 597if (needHscroll && maxY > clientToBe.Height) { 607maxY = clientToBe.Height; 644displayRect = new Rectangle(displayRect.X, displayRect.Y, this.HorizontalScroll.Maximum, this.displayRect.Height); 711int maxPos = -(client.Height - displayRect.Height); 848int minY = Math.Min(client.Height - displayRectangle.Height, 0); 876NativeMethods.RECT rcClip = NativeMethods.RECT.FromXYWH(cr.X, cr.Y, cr.Width, cr.Height); 877NativeMethods.RECT rcUpdate = NativeMethods.RECT.FromXYWH(cr.X, cr.Y, cr.Width, cr.Height); 915&& (client.Width > 0 && client.Height > 0)) { 973else if (bounds.Y + bounds.Height + yMargin > client.Height) { 975yCalc = client.Height - (bounds.Y + bounds.Height + yMargin - displayRect.Y); 1133|| displayRect.Height != height) { 1141int minY = ClientRectangle.Height - height; 1252VerticalScroll.maximum = displayRect.Height-1; 1255VerticalScroll.largeChange = ClientRectangle.Height; 1317int maxPos = -(client.Height - displayRect.Height);
winforms\Managed\System\WinForms\SplitContainer.cs (4)
858OnSplitterMoved(new SplitterEventArgs(SplitterRectangle.X + SplitterRectangle.Width/2, SplitterRectangle.Y + SplitterRectangle.Height/2, SplitterRectangle.X, SplitterRectangle.Y)); 1182SplitterCancelEventArgs se = new SplitterCancelEventArgs(this.Left + SplitterRectangle.X + SplitterRectangle.Width/2, this.Top + SplitterRectangle.Y + SplitterRectangle.Height/2, xSplit, ySplit); 1639SafeNativeMethods.PatBlt(new HandleRef(this, dc), r.X, r.Y, r.Width, r.Height, NativeMethods.PATINVERT); 2383return new Rectangle(containerRectangle.X + splitterRectangle.X, containerRectangle.Y + splitterRectangle.Y, splitterRectangle.Width, splitterRectangle.Height);
winforms\Managed\System\WinForms\Splitter.cs (9)
456bounds.Y += bounds.Height - splitSize; 469OnSplitterMoved(new SplitterEventArgs(Left, Top, (Left + bounds.Width / 2), (Top + bounds.Height / 2))); 668if (r.Height < minWeight) r.Height = minWeight; 672if (r.Height < minWeight) r.Height = minWeight; 673r.Y = bounds.Y + bounds.Height - splitSize - r.Height; 699return r.Height; 725initTargetSize = target.Bounds.Height; 776SafeNativeMethods.PatBlt(new HandleRef(ParentInternal, dc), r.X, r.Y, r.Width, r.Height, NativeMethods.PATINVERT);
winforms\Managed\System\WinForms\StatusBar.cs (1)
1888ti.rect = NativeMethods.RECT.FromXYWH(tool.rect.X, tool.rect.Y, tool.rect.Width, tool.rect.Height);
winforms\Managed\System\WinForms\StatusStrip.cs (1)
494TableLayoutSettings.RowStyles[0].Height = Math.Max(0,this.DisplayRectangle.Height);
winforms\Managed\System\WinForms\TabControl.cs (1)
414NativeMethods.RECT rect = NativeMethods.RECT.FromXYWH(bounds.X, bounds.Y, bounds.Width, bounds.Height);
winforms\Managed\System\WinForms\TableLayoutPanel.cs (7)
439Rectangle insideCellBounds = new Rectangle(outsideCellBounds.X + (cellBorderWidth + 1) / 2, outsideCellBounds.Y + (cellBorderWidth + 1)/ 2, outsideCellBounds.Width - (cellBorderWidth + 1) / 2, outsideCellBounds.Height - (cellBorderWidth + 1) / 2); 464Rectangle tableBounds = new Rectangle(cellBorderWidth/2 + displayRect.X, cellBorderWidth/2 + displayRect.Y, displayRect.Width - cellBorderWidth, displayRect.Height - cellBorderWidth); 469g.DrawLine(SystemPens.ControlDark, tableBounds.X, tableBounds.Y + tableBounds.Height - 1, tableBounds.X + tableBounds.Width - 1, tableBounds.Y + tableBounds.Height - 1); 473g.DrawLine(pen, tableBounds.X + tableBounds.Width - 1, tableBounds.Y, tableBounds.X + tableBounds.Width - 1, tableBounds.Y + tableBounds.Height - 1); 474g.DrawLine(pen, tableBounds.X, tableBounds.Y + tableBounds.Height - 1, tableBounds.X + tableBounds.Width - 1, tableBounds.Y + tableBounds.Height - 1);
winforms\Managed\System\WinForms\TabPage.cs (2)
718Rectangle rectWithBorder = new Rectangle(inflateRect.X - 4, inflateRect.Y - 2, inflateRect.Width + 8, inflateRect.Height + 6); 747base.SetBoundsCore (r.X, r.Y, r.Width, r.Height, specified == BoundsSpecified.None ? BoundsSpecified.None : BoundsSpecified.All);
winforms\Managed\System\WinForms\ToolBar.cs (1)
1742if (leftTop.y + tooltipHeight > SystemInformation.WorkingArea.Height) {
winforms\Managed\System\WinForms\ToolStrip.cs (7)
269CommonProperties.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.Width, bounds.Height, BoundsSpecified.Location); 2569maxSize.Height += overflowItemMargin.Vertical + overflowItem.Bounds.Height; 2839using (Bitmap image = new Bitmap(bounds.Width, bounds.Height)) 2848SafeNativeMethods.BitBlt(new HandleRef(this, desthDC), bounds.X, bounds.Y, bounds.Width, bounds.Height, 4294gripRectangle.Height = displayRect.Height; 4783SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height, specified); 5561int heightUnit = orig.Height/ 2;
winforms\Managed\System\WinForms\ToolStripComboBox.cs (1)
736Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
winforms\Managed\System\WinForms\ToolStripControlHost.cs (3)
58CommonProperties.UpdateSpecifiedBounds(c, bounds.X, bounds.Y, bounds.Width, bounds.Height); 475CommonProperties.UpdateSpecifiedBounds(control, specifiedBounds.X, specifiedBounds.Y, specifiedBounds.Width, specifiedBounds.Height); 485CommonProperties.UpdateSpecifiedBounds(control, bounds.X, bounds.Y, bounds.Width, bounds.Height);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (5)
1252offset.Y = - dropDownBounds.Height; 1255offset.Y = - dropDownBounds.Height; 1444SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height, BoundsSpecified.Location); 1761base.SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height, specified); 1988if (bounds.Width > 0 && bounds.Height >0) {
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (3)
263preferredSize.Height += DropDownArrowRect.Height + scaledDropDownArrowPadding.Vertical; 285dropDownArrowRect = new Rectangle(scaledDropDownArrowPadding.Left,0, dropDownArrowSize.Width, ownerItem.Bounds.Height); 289dropDownArrowRect = new Rectangle(options.client.Right,0, dropDownArrowSize.Width, ownerItem.Bounds.Height);
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (3)
316offset.Y = -dropDownBounds.Height + 1; 319offset.Y = -dropDownBounds.Height + 1; 389if (Rectangle.Intersect(dropDownBounds, itemScreenBounds).Height > 1) {
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (6)
378maxNonMenuItemSize.Height = Math.Max(item.Bounds.Height, maxNonMenuItemSize.Height); 511textRectangle.Y += (textRectangle.Height %2); // if the height is odd, push down by one px, see 339274 for picture 528delta = nextItem.Bounds.Bottom - (displayRect.Y + displayRect.Height); 680deltaToScroll += this.Items[i].Bounds.Height; 701deltaToScroll -= this.Items[i].Bounds.Height; 786int height = GetDropDownBounds(this.Bounds).Height;
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (20)
57 int height = (toolStrip.Orientation == Orientation.Horizontal) ? bounds.Height : bounds.Width; 58 int width = (toolStrip.Orientation == Orientation.Horizontal) ? bounds.Width : bounds.Height; 145 g.DrawRectangle(SystemPens.ButtonHighlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 150 g.DrawRectangle(SystemPens.ButtonHighlight, bounds.X, bounds.Y, bounds.Width-1, bounds.Height -1); 233 g.DrawRectangle(SystemPens.ButtonHighlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 245 g.DrawRectangle(SystemPens.ButtonShadow, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 263 bool oddHeight = ((bounds.Height & 0x1) == 0x1); 269 g.DrawLine(p, bounds.X + indent, bounds.Height - 1, bounds.Width - 1, bounds.Height - 1); 272 g.DrawLine(p, bounds.X, bounds.Y + indent, bounds.X, bounds.Height - 1); 274 g.DrawLine(p, bounds.Width - 1, bounds.Y + indent, bounds.Width - 1, bounds.Height - 1); 288 g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(1, bounds.Height - 2, 1, 1)); 295 g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(bounds.Width - 2, bounds.Height - 2, 1, 1)); 317 if (bounds.Height >= 8) { 334 int startY = bounds.Height / 2; 379 g.DrawImage(image, imageRect, 0, 0, imageRect.Width, imageRect.Height, GraphicsUnit.Pixel, attrs); 399g.DrawRectangle(SystemPens.Highlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 402g.DrawRectangle(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 427 g.DrawRectangle(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 432 g.DrawRectangle(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
1116return Bounds.Height; 2450SetBounds(currentBounds.X, currentBounds.Y, value, currentBounds.Height);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
1499checkRectangle.Y += (checkRectangle.Height - imageHeight)/2;
winforms\Managed\System\WinForms\ToolStripOverflow.cs (1)
101SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.Height, specified);
winforms\Managed\System\WinForms\ToolStripPanel.cs (3)
1149cursorLoc.Y += toolStripToDrag.GripRectangle.Height /2; 1211else if (Orientation == Orientation.Vertical && (bounds.Height == 0)) { 1212bounds.Height = ParentInternal.DisplayRectangle.Height;
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (2)
246constrainingSize.Height = ToolStripPanelRow.Bounds.Height; 277if (spaceToFree > 0 && bounds.Height > spaceToFree) {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (14)
530if (cachedBounds.Height > minSize.Height) { 531spaceToFree -= (cachedBounds.Height - minSize.Height); 540cellOffsets[j] += Math.Max(0,currentCell.CachedBounds.Height-cachedBounds.Height); 675preferredSize.Height = DisplayRectangle.Height; 964int y = previousRowBounds.Y + previousRowBounds.Height - (previousRowBounds.Height >> 2); 973dragBounds.Height += (nextRowBounds.Height >> 2) + Row.Margin.Bottom + ToolStripPanel.RowsInternal[index + 1].Margin.Top; 1455displayRect.Height = ToolStripPanel.ParentInternal.DisplayRectangle.Height - (ToolStripPanel.Margin.Vertical + ToolStripPanel.Padding.Vertical) - Row.Margin.Vertical; 1458displayRect.Height = raftingDisplayRectangle.Height - Row.Margin.Vertical; 1507return totalSize.Height < DisplayRectangle.Height; 1691freedSpace += DisplayRectangle.Height; 1754int spaceToFree = (lastCell != null)? lastCell.Bounds.Bottom - newBounds.Height : 0; 1959int spaceOccupiedByCell = cell.Margin.Vertical + cell.Bounds.Height;
winforms\Managed\System\WinForms\ToolStripProfessionalLowResolutionRenderer.cs (7)
49bool oddHeight = ((bounds.Height & 0x1) == 0x1); 55g.DrawLine(p, bounds.X + indent, bounds.Height - 1, bounds.Width - 1, bounds.Height - 1); 58g.DrawLine(p, bounds.X, bounds.Y + indent, bounds.X, bounds.Height - 1); 60g.DrawLine(p, bounds.Width - 1, bounds.Y + indent, bounds.Width - 1, bounds.Height - 1); 74g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(1, bounds.Height - 2, 1, 1)); 81g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(bounds.Width - 2, bounds.Height - 2, 1, 1));
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (41)
335g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 347g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 381g.DrawLine(p, bounds.Left, bounds.Height - 1, bounds.Right, bounds.Height - 1); 384g.DrawLine(p, bounds.Width - 2, bounds.Height - 2, bounds.Width - 1, bounds.Height - 3); 389g.DrawLine(p, bounds.Width -1, 0,bounds.Width -1, bounds.Height - 1); 392g.DrawLine(p, bounds.Width - 2, bounds.Height - 2, bounds.Width - 1, bounds.Height - 3); 408edging = new Rectangle(bounds.Width - 1, 3, 1, bounds.Height - 3); 411edging = new Rectangle(3, bounds.Height -1, bounds.Width -3, bounds.Height - 1); 437int height = (toolStrip.Orientation == Orientation.Horizontal) ? bounds.Height : bounds.Width; 438int width = (toolStrip.Orientation == Orientation.Horizontal) ? bounds.Width : bounds.Height; 494if ((bounds.Width == 0) || (bounds.Height == 0)) { 523g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 566g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 743Point bottomLeft = new Point(0, bounds.Height - 1); 744Point bottomRight = new Point(bounds.Width - 1, bounds.Height - 1); 837if ((bounds.Width == 0) || (bounds.Height == 0)) { 859endGradient.Y = bounds.Bottom - endGradient.Height; 860useDoubleGradient = (bounds.Height > (firstGradientWidth + secondGradientWidth)); 909Rectangle bounds = DpiHelper.IsScalingRequired ? new Rectangle(e.ImageRectangle.Left-2, (e.Item.Height - e.ImageRectangle.Height )/2- 1, e.ImageRectangle.Width+4, e.ImageRectangle.Height +2) : 921g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 931g.DrawRectangle(SystemPens.Highlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 936if ((bounds.Width == 0) || (bounds.Height == 0)) { 947g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 1039g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 1071overflowBoundsFill.Y = overflowBoundsFill.Height - overflowButtonWidth + 1; 1103Point start = new Point(overflowBoundsFill.Left - 1, overflowBoundsFill.Height - 2); 1104Point end = new Point(overflowBoundsFill.Left, overflowBoundsFill.Height - 2); 1163Point bottomLeft = new Point(0, bounds.Height - 1); 1219if ((bounds.Width == 0) || (bounds.Height == 0)) { 1236if ((bounds.Width == 0) || (bounds.Height == 0)) { 1273bounds.Height = Math.Max(0, bounds.Height -6); 1302if (bounds.Height >= 4) { 1327int startY = bounds.Height / 2; 1351if ((bounds.Width == 0) || (bounds.Height == 0)) { 1396g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 1443Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (3)
711Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2); 908imageRect.Height, GraphicsUnit.Pixel, e.ImageAttributes); 934if (e.TextDirection != ToolStripTextDirection.Horizontal && textRect.Width > 0 && textRect.Height > 0) {
winforms\Managed\System\WinForms\ToolStripRenderEventArgs.cs (1)
128if (overlap.Height == 2) {
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (2)
386splitterBounds = new Rectangle(splitButtonButtonBounds.Right, splitButtonButtonBounds.Top, splitterWidth, splitButtonButtonBounds.Height); 391splitterBounds = new Rectangle(dropDownButtonBounds.Right, dropDownButtonBounds.Top, splitterWidth, dropDownButtonBounds.Height);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (3)
178if (currentHeight > displayRectangle.Height - overflowWidth) { 182int spaceRecovered = SendNextItemToOverflow(currentHeight - displayRectangle.Height, false); 363itemSize.Height = Math.Max(displayRectangle.Height - itemMargin.Vertical, 0);
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (7)
268bounds.Height = ((bounds.Height -2/*number of pixels for border*/) / 4) * 4; // make sure height is an even interval of 4. 269bounds.Y = Math.Max(0,(e.GripBounds.Height - bounds.Height -2/*number of pixels for border*/) / 2); 282if (bounds.Height >= 4) { 413g.DrawRectangle(p, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1); 619if (bounds.Height >= 4) { 644int startY = bounds.Height / 2;
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
875g.FillRectangle(b, 0, clientRect.Bottom, this.Width, this.Height - clientRect.Height); // bottom border
winforms\Managed\System\WinForms\ToolTip.cs (5)
1799int centeredY = toolRectangle.Top + toolRectangle.Height / 2 - height / 2; // tooltip will be aligned with tool horizontally 1819locationWeights[i] += Math.Abs((long)intersection.Width * intersection.Height); // Intersection is a weight 1831* (Math.Abs((long)possibleLocations[i].Height) - Math.Abs((long)locationAreaWithinScreen.Height)); 1842locationWithinTopControlAreas[i] = Math.Abs((long)locationWithinTopControlRectangle.Height * locationWithinTopControlRectangle.Width);
winforms\Managed\System\WinForms\TrackBar.cs (1)
462SetBounds(r.X, r.Y, r.Height, r.Width, BoundsSpecified.All);
winforms\Managed\System\WinForms\TrackBarRenderer.cs (5)
157if (numTicks <= 0 || bounds.Height <= 0 || bounds.Width <= 0 || g == null) { 165visualStyleRenderer.DrawEdge(g, new Rectangle(bounds.X, bounds.Y, lineWidth, bounds.Height), Edges.Left, edgeStyle, EdgeEffects.None); 174visualStyleRenderer.DrawEdge(g, new Rectangle((int)Math.Round(x), bounds.Y, lineWidth, bounds.Height), Edges.Left, edgeStyle, EdgeEffects.None); 188if (numTicks<=0 || bounds.Height <= 0 || bounds.Width<=0 || g == null ) { 200float inc = ((float)bounds.Height - lineWidth) / ((float)numTicks - 1);
winforms\Managed\System\WinForms\TreeView.cs (2)
2828bounds = new Rectangle(textLoc, new Size(textSize.Width, bounds.Height)); 3392client = new Point(treeNode.Bounds.X , treeNode.Bounds.Y + treeNode.Bounds.Height / 2);
winforms\Managed\System\WinForms\Triangle.cs (3)
65int lrWidth =(int)(bounds.Height * TRI_WIDTH_RATIO); 111bounds.Y +(bounds.Height - updnWidth)/2); 117bounds.Y +(bounds.Height - lrHeight)/2);
winforms\Managed\System\WinForms\UpDownBase.cs (7)
811Rectangle clipLeft = new Rectangle(bounds.Left, bounds.Top, border, bounds.Height); 813Rectangle clipRight = new Rectangle(bounds.Right - border, bounds.Top, border, bounds.Height); 1107upDownEditBounds.Size = new Size(clientArea.Width - defaultButtonsWidth, clientArea.Height); 1120/*h*/clientArea.Height+(borderFixup*2)); 1574rect.Y += rect.Height; 1615rectDown.Y += rectDown.Height / 2; 1914bounds.Y += bounds.Height;
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (10)
283if (bounds.Width < 0 || bounds.Height < 0) { 314if (bounds.Width < 0 || bounds.Height < 0) { 317if (clipRectangle.Width < 0 || clipRectangle.Height < 0) { 383if (bounds.Width < 0 || bounds.Height < 0) { 410if (bounds.Width < 0 || bounds.Height < 0) { 445if (bounds.Width < 0 || bounds.Height < 0) { 488if (bounds.Width < 0 || bounds.Height < 0) { 512if (bounds.Width < 0 || bounds.Height < 0) { 536if (contentBounds.Width < 0 || contentBounds.Height < 0) { 564if (bounds.Width < 0 || bounds.Height < 0) {
winforms\Managed\System\WinForms\VScrollProperties.cs (1)
32return ParentControl.ClientRectangle.Height;
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (1)
309lprcPosRect.bottom = this.Host.Bounds.Height + this.Host.Bounds.Y;
winforms\Managed\System\WinForms\WinFormsUtils.cs (3)
105Math.Min(constrainingBounds.Height -2, bounds.Height)); 124bounds.Y = constrainingBounds.Bottom - 1 - bounds.Height;
System.Windows.Forms.DataVisualization (61)
Common\General\Legend.cs (17)
477 Math.Min(legendPosition.Height, titleSize.Height)); 480 legendPosition.Height -= this._titlePosition.Height; 512 legendPosition.Location.Y + this._titlePosition.Height, 514 Math.Min(legendPosition.Height - this._titlePosition.Height, highestHeader.Height)); 515 this._headerPosition.Height = Math.Max(this._headerPosition.Height, 0); 518 legendPosition.Height -= this._headerPosition.Height; 530 legendPosition.Y + this._offset.Height + this.GetBorderSize() + this._titlePosition.Height + this._headerPosition.Height, 532 legendPosition.Height - 2 * (this._offset.Height + this.GetBorderSize()) ); 2493 separatorRect.Y += this.GetBorderSize() + this._titlePosition.Height; 2494 separatorRect.Height -= 2 * this.GetBorderSize() + this._titlePosition.Height; 2503 if(separatorRect.Width > 0 && separatorRect.Height > 0) 2532 this._legendItemsAreaPosition.Height > this._truncatedDotsSize / 2) 4033 this._headerPosition.Height > 0) 4093 if(rect.Width > 0 && rect.Height > 0) 4099 if(this._titlePosition.Height <= 0)
Common\General\LegendColumns.cs (35)
1915 if(this.cellPosition.Width <= 0 || this.cellPosition.Height <= 0) 2049if (charSize.Height > this.cellPosition.Height && (format.FormatFlags & StringFormatFlags.LineLimit) != 0) 2054else if (charSize.Height < this.cellPosition.Height && (format.FormatFlags & StringFormatFlags.LineLimit) == 0) 2105 imageCellPosition.Height = imagePosition.Height; 2121 if(newHeight > this.cellPosition.Height) 2123 newHeight = this.cellPosition.Height; 2131 if(imagePosition.Height > imageCellPosition.Height) 2133 scaleValue = (float)imagePosition.Height / (float)imageCellPosition.Height; 2141 imagePosition.Height = (int)(imagePosition.Height / scaleValue); 2146 imagePosition.Y = (int)((this.cellPosition.Y + this.cellPosition.Height/2f) - imagePosition.Height/2f); 2166 imagePosition.Y = this.cellPosition.Bottom - imagePosition.Height; 2236 if(newHeight > this.cellPosition.Height) 2238 newHeight = this.cellPosition.Height; 2244 if(seriesMarkerPosition.Height <= 0 || seriesMarkerPosition.Width <= 0) 2251 seriesMarkerPosition.Y = (int)((this.cellPosition.Y + this.cellPosition.Height/2f) - seriesMarkerPosition.Height/2f); 2271 seriesMarkerPosition.Y = this.cellPosition.Bottom - seriesMarkerPosition.Height; 2301if (imageScale.Height > seriesMarkerPosition.Height) 2303scaleValue = (float)imageScale.Height / (float)seriesMarkerPosition.Height; 2311imageScale.Height = (int)(imageScale.Height / scaleValue); 2315imageScale.Y = (int)((seriesMarkerPosition.Y + seriesMarkerPosition.Height / 2f) - imageScale.Height / 2f); 2369 point1.Y = (int)(seriesMarkerPosition.Y + seriesMarkerPosition.Height/2F); 2407 int markerSize = (int)Math.Min(seriesMarkerPosition.Width, seriesMarkerPosition.Height); 2424 point.Y = (int)(seriesMarkerPosition.Y + seriesMarkerPosition.Height/2f); 2442 if(imageScale.Height > seriesMarkerPosition.Height) 2444 scaleValue = (float)imageScale.Height / (float)seriesMarkerPosition.Height; 2452 imageScale.Height = (int)(imageScale.Height / scaleValue);
WinForm\ChartWinControl.cs (2)
430paintBufferBitmap.Height < scaleY * ClientRectangle.Height) 439paintBufferBitmap = new Bitmap((int)(ClientRectangle.Width * scaleX), (int)(ClientRectangle.Height * scaleY), e.Graphics);
WinForm\Utilities\Printing.cs (7)
147_chartImage.Height = position.Height; 258marginPixel.Height = (int)(marginPixel.Height * (ev.Graphics.DpiY / 100.0f)); 265float chartHeightScale = ((float)marginPixel.Height) / ((float)chartPosition.Height); 267chartPosition.Height = (int)(chartPosition.Height * Math.Min(chartWidthScale, chartHeightScale)); 271chartPosition.Y += (marginPixel.Height - chartPosition.Height) / 2;
System.Workflow.Activities (19)
Designers\ConditionalDesigner.cs (4)
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; 122new Point(rectangle.Right - 1, rectangle.Top + rectangle.Height / 2), 124new Point(rectangle.Left, rectangle.Top + rectangle.Height / 2),
Designers\ListenDesigner.cs (2)
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\StateDesigner.cs (1)
1456stateDesigner.Location = new Point(location.X, location.Y + moveBounds.Height + DefaultStateDesignerAutoLayoutDistance - freeSpaceHeight);
Designers\StateDesigner.Layouts.cs (4)
512int midVert = layoutBounds.Y + (layoutBounds.Height / 2); 523int midVert = layoutBounds.Y + (layoutBounds.Height / 2); 1020if (rectangle.Width > 0 && rectangle.Height > 0) 1204Size size = new Size(this.Size.Width, this.Size.Height - _titleBarLayout.Bounds.Height);
Designers\StateDesignerConnector.cs (4)
234path.AddLine(new Point(bounds.Left + bounds.Width / 2, bounds.Top), new Point(bounds.Right, bounds.Top + bounds.Height / 2)); 235path.AddLine(new Point(bounds.Right, bounds.Top + bounds.Height / 2), new Point(bounds.Left + bounds.Width / 2, bounds.Bottom)); 236path.AddLine(new Point(bounds.Left + bounds.Width / 2, bounds.Bottom), new Point(bounds.Left, bounds.Top + bounds.Height / 2)); 237path.AddLine(new Point(bounds.Left, bounds.Top + bounds.Height / 2), new Point(bounds.Left + bounds.Width / 2, bounds.Top));
Designers\StateMachineDesignerPaint.cs (1)
60int height = rectangle.Height;
Designers\WhileDesigner.cs (3)
47connectionPoint = new Point(imageRectangle.Right + e.AmbientTheme.Margin.Width / 2, imageRectangle.Top + imageRectangle.Height / 2); 49connectionPoint = new Point(textRectangle.Right + e.AmbientTheme.Margin.Width / 2, textRectangle.Top + textRectangle.Height / 2); 75connectors[connectors.GetLength(0) - 1].Height = connectors[connectors.GetLength(0) - 1].Height - (((designerTheme != null) ? designerTheme.ConnectorSize.Height : 0) / 3);
System.Workflow.ComponentModel (140)
AuthoringOM\Design\ActivityDesigner.cs (9)
542textRectangle.Y = bounds.Top + (bounds.Height - this.textSize.Height) / 2; 565imageRectangle.Y = bounds.Top + (bounds.Height - DesignerTheme.ImageSize.Height) / 2; 947Rectangle hitRectangle = new Rectangle(bounds.Left, bounds.Top, bounds.Left - bounds.Left, bounds.Height); 950hitRectangle = new Rectangle(bounds.Left, bounds.Top, bounds.Width, bounds.Height - bounds.Height); 953hitRectangle = new Rectangle(bounds.Right, bounds.Top, bounds.Width - bounds.Width, bounds.Height); 1072Rectangle viewPort = new Rectangle(bounds.Location, new Size(bounds.Width + 1, bounds.Height + 1)); 1180connections.Add(new Point(bounds.Left, bounds.Top + bounds.Height / 2)); 1186connections.Add(new Point(bounds.Right, bounds.Top + bounds.Height / 2));
AuthoringOM\Design\ActivityPreviewDesigner.cs (2)
800return new Point(dropConnector.Left + dropConnector.Width / 2, dropConnector.Top + dropConnector.Height / 2); 935Size selectionSize = new Size(Math.Max(itemBounds.Width / 6, 1), Math.Max(itemBounds.Height / 6, 1));
AuthoringOM\Design\CompositeActivityDesigner.cs (7)
246if (anchorSize.Height > expandButtonRectangle.Height) 247expandButtonRectangle.Y += (anchorSize.Height - expandButtonRectangle.Height) / 2; 267titleHeight = Math.Max(expandButtonRectangle.Height, textRectangle.Height); 268titleHeight += imageRectangle.Height; 272titleHeight = Math.Max(expandButtonRectangle.Height, imageRectangle.Height);
AuthoringOM\Design\Connector.cs (6)
523path.AddLine(new Point(bounds.Left + bounds.Width / 2, bounds.Top), new Point(bounds.Right, bounds.Top + bounds.Height / 2)); 524path.AddLine(new Point(bounds.Right, bounds.Top + bounds.Height / 2), new Point(bounds.Left + bounds.Width / 2, bounds.Bottom)); 525path.AddLine(new Point(bounds.Left + bounds.Width / 2, bounds.Bottom), new Point(bounds.Left, bounds.Top + bounds.Height / 2)); 526path.AddLine(new Point(bounds.Left, bounds.Top + bounds.Height / 2), new Point(bounds.Left + bounds.Width / 2, bounds.Top)); 1349if ((distance < current.Bounds.Width || distance < current.Bounds.Height) && next.Type == EditPoint.EditPointTypes.MultiSegmentEditPoint) 1359if ((distance < current.Bounds.Width || distance < current.Bounds.Height) && previous.Type == EditPoint.EditPointTypes.MultiSegmentEditPoint)
AuthoringOM\Design\DesignerHelpers.cs (24)
193graphics.DrawImage(image, imageRectangle, source.X, source.Y, source.Width, source.Height, GraphicsUnit.Pixel, imageAttributes); 204rectangle.Height = Math.Min(size.Height, destination.Height); 222rectangle.Y = destination.Bottom - rectangle.Height; 224rectangle.Y = destination.Top + destination.Height / 2 - rectangle.Height / 2; 380graphics.DrawLine(CompositeDesignerTheme.ExpandButtonForegoundPen, boundingRect.Left + 2, boundingRect.Top + boundingRect.Height / 2, boundingRect.Right - 2, boundingRect.Top + boundingRect.Height / 2); 425if (shadowSourceRectangle.IsEmpty || shadowSourceRectangle.Width < 0 || shadowSourceRectangle.Height < 0) 778int arrowHeight = bounds.Height + bounds.Height % 2; 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); 1922distances.Add(DistanceBetweenPoints(point, new Point(rect.Right, rect.Top + rect.Height / 2))); 1926distances.Add(DistanceBetweenPoints(point, new Point(rect.Left, rect.Bottom - rect.Height / 2)));
AuthoringOM\Design\DesignerWidgets.cs (34)
139using (Region clipRegion = new Region(new Rectangle(bounds.X, bounds.Y, bounds.Width + 1, bounds.Height + 1))) 196using (Region clipRegion = new Region(new Rectangle(bounds.X, bounds.Y, bounds.Width + 1, bounds.Height + 1))) 239itemRectangle.X += (itemRectangle.Width - itemRectangle.Height) / 2; 240itemRectangle.Width = itemRectangle.Height; 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)); 846int totalStripSize = this.bounds.Height - this.margin.Height; 1226graphics.DrawRectangle(SystemPens.ControlDarkDark, this.formRectangle.X, this.formRectangle.Y, this.formRectangle.Width - 1, this.formRectangle.Height - 1); 1239graphics.FillRectangle(SystemBrushes.InactiveCaptionText, itemBounds.X, itemBounds.Y, itemBounds.Width - 1, itemBounds.Height - 1); 1240graphics.DrawRectangle(SystemPens.ActiveCaption, itemBounds.X, itemBounds.Y, itemBounds.Width - 1, itemBounds.Height - 1); 1262int textVerticalOffset = textRectangle.Height - this.maxTextHeight; 1265textRectangle.Height = Math.Min(textRectangle.Height, this.maxTextHeight); 1927RectangleF tabTextRectangleF = new RectangleF(tabTextRectangle.X, tabTextRectangle.Y, tabTextRectangle.Width, tabTextRectangle.Height); 1932using (Bitmap bitmap = new Bitmap(tabTextRectangle.Height, tabTextRectangle.Width, e.Graphics)) 2014int lastItemWidth = (this.orientation == Orientation.Horizontal) ? lastItemStruct.TabItemRectangle.Width - itemSizeDecrease : lastItemStruct.TabItemRectangle.Height - itemSizeDecrease; 2031if ((i == this.tabItemList.Count - 1) && this.drawItems[i].TabItemRectangle.Height < this.reqTabItemSize) 2117textRectangle.Y += imageRectangle.Height + TabMargin; 2118textRectangle.Height -= (imageRectangle.Height + TabMargin); 2122if (textRectangle.Width <= 0 || textRectangle.Height <= 0) 2543rectangles[j] = new Rectangle(rectangles[j].Left, rectangles[j].Top, stripRectangle.Right - rectangles[j].Left, rectangles[j].Height); 2742imageRectangle.Size = new Size(itemRectangle.Width - 4, itemRectangle.Height - 4); 2834stripRectangle.Height = this.bounds.Height; 3242int maxDescHeight = Math.Max(this.previewModeDescRectangle.Height, this.previewModeButtonRectangle.Height); 3246descRectanglePos.Y = this.bounds.Top + maxDescHeight / 2 - this.previewModeDescRectangle.Height / 2; 3251previewModeBitmapPos.Y = this.bounds.Top + maxDescHeight / 2 - this.previewModeButtonRectangle.Height / 2; 3261location.Y = this.canvasBounds.Top + this.canvasBounds.Height / 2 - PreviewDesigner.Size.Height / 2; 3376this.canvasBounds.Size = new Size(Math.Max(this.canvasBounds.Width, designerTheme.PreviewWindowSize.Width), Math.Max(this.canvasBounds.Height, designerTheme.PreviewWindowSize.Height)); 3397totalSize.Height += this.canvasBounds.Height; 3413graphics.DrawRectangle(Pens.Black, this.previewModeButtonRectangle.Left - 1, this.previewModeButtonRectangle.Top - 1, this.previewModeButtonRectangle.Width + 1, this.previewModeButtonRectangle.Height + 1); 3417ActivityDesignerPaint.DrawImage(graphics, previewModeImage, new Rectangle(this.previewModeButtonRectangle.Left + 2, this.previewModeButtonRectangle.Top + 2, this.previewModeButtonRectangle.Width - 4, this.previewModeButtonRectangle.Height - 4), DesignerContentAlignment.Center); 3459Size maxBitmapSize = new Size(this.canvasBounds.Width - 2 * margin.Width, this.canvasBounds.Height - 2 * margin.Height); 3467destnRectangle.Y = this.canvasBounds.Top + this.canvasBounds.Height / 2 - destnRectangle.Height / 2;
AuthoringOM\Design\FreeFormDesigner.cs (1)
263minimumSize.Height = Math.Max(minimumSize.Height, childRectangle.Height);
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (1)
84graphics.DrawRectangle(SystemPens.ControlDarkDark, activatedBounds.Left, activatedBounds.Top, activatedBounds.Width - 1, activatedBounds.Height - 1);
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (2)
58grabHandles[3] = new Rectangle(new Point(selectionRect.Right - grabHandleSize.Width, selectionRect.Top + (selectionRect.Height - grabHandleSize.Height) / 2), grabHandleSize); 62grabHandles[7] = new Rectangle(new Point(selectionRect.Left, selectionRect.Top + (selectionRect.Height - grabHandleSize.Height) / 2), grabHandleSize);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (4)
125if (clientPoint.Y <= clientRectangle.Height / 10 && vScrollBar.Value > 0) 127else if (clientPoint.Y >= clientRectangle.Bottom - clientRectangle.Height / 10 && vScrollBar.Value < vScrollBar.Maximum - vScrollBar.LargeChange) 161scrollIndicatorRectangles[0].Y = (clientRectangle.Height - scrollIndicatorSize.Height) / 2; 166scrollIndicatorRectangles[1].Y = (clientRectangle.Height - scrollIndicatorSize.Height) / 2;
AuthoringOM\Design\MessageFilters\DragDropManager.cs (2)
678Size draggedImageSize = parentView.LogicalSizeToClient(new Size(imageRectangle.Width + descriptionRectangle.Width, Math.Max(imageRectangle.Height, descriptionRectangle.Height)));
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (2)
121e.Graphics.FillRectangle(dragRectangleBrush, dragRectangle.X, dragRectangle.Y, dragRectangle.Width - 1, dragRectangle.Height - 1); 122e.Graphics.DrawRectangle(ambientTheme.SelectionForegroundPen, dragRectangle.X, dragRectangle.Y, dragRectangle.Width - 1, dragRectangle.Height - 1);
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
352if (distance > rectangle.Width / 3 || distance > rectangle.Height / 3)
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (3)
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)
170Point center = parentView.LogicalPointToClient(new Point(dragRectangle.Location.X + dragRectangle.Width / 2, dragRectangle.Location.Y + dragRectangle.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 (1)
301dropTargets[i + 1].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), designerBounds1.Height);
AuthoringOM\Design\SequentialActivityDesigner.cs (2)
164helpTextRectangle.Y = connectors[0].Top + connectors[0].Height / 2 - this.helpTextSize.Height / 2; 494containerSize.Height += helpTextRectangle.Height;
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (10)
112bounds.Height = margin.Height + imageBounds.Height; 113bounds.Height += (imageBounds.Height > 0) ? margin.Height : 0; 114bounds.Height += textBounds.Height; 115bounds.Height += (textBounds.Height > 0) ? margin.Height : 0; 120bounds.Y = (this.isHeader) ? designerBounds.Top : designerBounds.Bottom - bounds.Height; 168bounds.Y += textRectangle.Height; 169bounds.Y += (textRectangle.Height > 0) ? margin.Height : 0; 174bounds.Y -= textRectangle.Height; 175bounds.Y -= (textRectangle.Height > 0) ? margin.Height : 0; 176bounds.Y -= bounds.Height;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (10)
140titleHeight += Header.Bounds.Height; 261connectionPoints[connectionPoints.Count - 1] = new Point(connectionPoints[connectionPoints.Count - 1].X, connectionPoints[connectionPoints.Count - 1].Y - Footer.Bounds.Height); 280size.Height += footer.ImageRectangle.Height + 2 * e.AmbientTheme.Margin.Height + footer.FooterBarRectangle.Size.Height; 344if (MinHeaderBarHeight > textRectangle.Height) 345bounds.Height += (MinHeaderBarHeight - textRectangle.Height); 355if (MinHeaderBarHeight > textRectangle.Height) 356textRectangle.Y += (MinHeaderBarHeight - textRectangle.Height) / 2; 433bounds.Height = Math.Max(bounds.Height, rootDesigner.Size.Height - rootDesigner.TitleHeight - rootDesigner.OptimalHeight); 436int minHeight = ImageRectangle.Height; 440bounds.Height = Math.Max(minHeight, bounds.Height);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
696return new Point(dropConnector.Left + dropConnector.Width / 2, dropConnector.Top + dropConnector.Height / 2);
AuthoringOM\Design\WorkflowLayouts.cs (12)
145this.parentView.RootDesigner.Bounds.Width >= 0 && this.parentView.RootDesigner.Bounds.Height >= 0) 233this.parentView.RootDesigner.Bounds.Width >= 0 && this.parentView.RootDesigner.Bounds.Height >= 0) 424Size deltaSize = new Size(pageLayoutData.ViewablePageBounds.Width - intersectedPhysicalViewPort.Width, pageLayoutData.ViewablePageBounds.Height - intersectedPhysicalViewPort.Height); 436insersectedLogicalViewPort.Height = pageLayoutData.LogicalPageBounds.Height - deltaLocation.Y; 459Size deltaSize = new Size(pageLayoutData.LogicalPageBounds.Width - intersectedLogicalViewPort.Width, pageLayoutData.LogicalPageBounds.Height - intersectedLogicalViewPort.Height); 471insersectedPhysicalViewPort.Height = pageLayoutData.ViewablePageBounds.Height - deltaLocation.Y; 567viewPortBitmapArea.Height = pageLayoutData.LogicalPageBounds.Height; 641if (!pageLayoutData.PageBounds.IntersectsWith(physicalViewPort) || pageLayoutData.PageBounds.Width <= 0 || pageLayoutData.PageBounds.Height <= 0) 673viewPortBitmapArea.Height = intersectedViewPort.Height; 690graphics.DrawRectangle(ambientTheme.ForegroundPen, pageLayoutData.ViewablePageBounds.Left - 3, pageLayoutData.ViewablePageBounds.Top - 3, pageLayoutData.ViewablePageBounds.Width + 6, pageLayoutData.ViewablePageBounds.Height + 6);
AuthoringOM\Design\WorkflowView.cs (4)
1535viewPortData.LogicalViewPort = new Rectangle(Point.Empty, new Size(rootDesigner.Bounds.Width + 2 * DefaultWorkflowLayout.Separator.Width, rootDesigner.Bounds.Height + 2 * DefaultWorkflowLayout.Separator.Height)); 1536viewPortData.MemoryBitmap = new Bitmap(viewPortData.LogicalViewPort.Width, viewPortData.LogicalViewPort.Height, graphics); 1754if ((rect.Top < clientRectangle.Top) || (rect.Height > clientRectangle.Height))
System.WorkflowServices (2)
System\Workflow\Activities\Design\GradientPanel.cs (2)
88Rectangle shadowRect = new Rectangle(frameRect.X, frameRect.Y + 6, frameRect.Width, frameRect.Height - 5); 89glossHeight = frameRect.Height / 3;