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