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