178 references to Ceiling
mscorlib (2)
system\runtime\memoryfailpoint.cs (2)
181ulong segmentSize = (ulong) (Math.Ceiling((double)size / GCSegmentSize) * GCSegmentSize); 185ulong requestedSizeRounded = (ulong)(Math.Ceiling((double)sizeInMegabytes / MemoryCheckGranularity) * MemoryCheckGranularity);
PresentationCore (18)
Core\CSharp\MS\Internal\Ink\StrokeNode.cs (8)
784line1XMax = Math.Ceiling(line1End.X); 789line1XMax = Math.Ceiling(line1Start.X); 795line2XMax = Math.Ceiling(line2End.X); 800line2XMax = Math.Ceiling(line2Start.X); 806line1YMax = Math.Ceiling(line1End.Y); 811line1YMax = Math.Ceiling(line1Start.Y); 817line2YMax = Math.Ceiling(line2End.Y); 822line2YMax = Math.Ceiling(line2Start.Y);
Core\CSharp\System\Windows\Ink\Stroke.cs (4)
780Math.Ceiling(cutAt[cutAt.Length - 1].EndFIndex) > sourceStylusPoints.Count - 1)); 836Math.Ceiling(cutAt[cutAt.Length - 1].EndFIndex) > sourceStylusPoints.Count - 1)); 892? (sourceStylusPoints.Count - 1) : (int)Math.Ceiling(endFIndex); 947double ceiling = Math.Ceiling(endFIndex);
Core\CSharp\System\Windows\Interop\HwndSource.cs (2)
1074size = new Point(Math.Ceiling(size.X), Math.Ceiling(size.Y));
Core\CSharp\System\Windows\Interop\HwndTarget.cs (4)
857(float)(Math.Ceiling((double)(_hwndClientRectInScreenCoords.right - _hwndClientRectInScreenCoords.left))), 858(float)(Math.Ceiling((double)(_hwndClientRectInScreenCoords.bottom - _hwndClientRectInScreenCoords.top)))); 1750(float)(Math.Ceiling((double)(_hwndClientRectInScreenCoords.right - _hwndClientRectInScreenCoords.left))), 1751(float)(Math.Ceiling((double)(_hwndClientRectInScreenCoords.bottom - _hwndClientRectInScreenCoords.top))));
PresentationFramework (14)
src\Framework\MS\Internal\AppModel\IconHelper.cs (1)
381return (((int)Math.Ceiling(original) + (nBitsCount - 1)) / nBitsCount) * nBitsCount;
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
2201lastLineIndex = (int)Math.Ceiling((viewport.Y + viewport.Height) / _lineHeight) - 1;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (2)
2287int calcItemsInViewportCount = (int)Math.Ceiling(factor * _itemsInExtendedViewportCount); 4866int calcItemsInExtendedViewportCount = (int)Math.Ceiling(factor * _actualItemsInExtendedViewportCount);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (10)
1294(int)Math.Ceiling(region.Right), 1295(int)Math.Ceiling(region.Bottom)); 1302(int)Math.Ceiling(region.Right) + 1, 1303(int)Math.Ceiling(region.Bottom) + 1, 1304(int)Math.Ceiling(radius), 1305(int)Math.Ceiling(radius)); 1423cxLeftWidth = (int)Math.Ceiling(deviceGlassThickness.Left), 1424cxRightWidth = (int)Math.Ceiling(deviceGlassThickness.Right), 1425cyTopHeight = (int)Math.Ceiling(deviceGlassThickness.Top), 1426cyBottomHeight = (int)Math.Ceiling(deviceGlassThickness.Bottom),
PresentationFramework.Classic (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
101int blocks = (int)Math.Ceiling(width / blockTotal);
PresentationFramework.Luna (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
101int blocks = (int)Math.Ceiling(width / blockTotal);
PresentationFramework.Royale (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
101int blocks = (int)Math.Ceiling(width / blockTotal);
System (4)
security\system\security\cryptography\bigint.cs (1)
481char[] dec = new char[(int)Math.Ceiling(m_size * 2 * 1.21)];
services\timers\system\timers\Timer.cs (3)
65double roundedInterval = Math.Ceiling(interval); 131int i = (int)Math.Ceiling(interval); 146int i = (int)Math.Ceiling(interval);
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
1166int imageWidth = (int)Math.Ceiling(bounds.Right); 1167int imageHeight = (int)Math.Ceiling(bounds.Bottom);
System.Drawing (9)
commonui\System\Drawing\Advanced\Font.cs (1)
1041return(int) Math.Ceiling(GetHeight());
commonui\System\Drawing\Point.cs (2)
209return new Point((int)Math.Ceiling(value.X), (int)Math.Ceiling(value.Y));
commonui\System\Drawing\Rectangle.cs (4)
300return new Rectangle((int)Math.Ceiling(value.X), 301(int)Math.Ceiling(value.Y), 302(int)Math.Ceiling(value.Width), 303(int)Math.Ceiling(value.Height));
commonui\System\Drawing\Size.cs (2)
193return new Size((int)Math.Ceiling(value.Width), (int)Math.Ceiling(value.Height));
System.Runtime.Caching (1)
System\Caching\MemoryCacheStore.cs (1)
322toTrim = (int)Math.Ceiling(((long)count * (long)percent) / 100D);
System.Security (1)
system\security\cryptography\bigint.cs (1)
484char[] dec = new char[(int)Math.Ceiling(m_size * 2 * 1.21)];
System.ServiceModel (1)
System\ServiceModel\Dispatcher\QueryFunctions.cs (1)
926context.SetValue(context, arg.basePtr, Math.Ceiling(context.PeekDouble(arg.basePtr)));
System.Web.DataVisualization (36)
Common\Borders3D\EmbedBorder.cs (1)
942 radius = (float)Math.Ceiling(radius);
Common\Borders3D\EmbossBorder.cs (1)
197 radius = (float)Math.Ceiling(radius);
Common\ChartTypes\FastPointChart.cs (1)
531 float crossLineWidth = (float)Math.Ceiling(markerSize/4F);
Common\ChartTypes\StackedBarChart.cs (2)
482 float right = (float)Math.Ceiling(areaPosition.Right); 483 float bottom = (float)Math.Ceiling(areaPosition.Bottom);
Common\ChartTypes\StackedColumnChart.cs (3)
488 float right = (float)Math.Ceiling(areaPosition.Right); 489 float bottom = (float)Math.Ceiling(areaPosition.Bottom); 1220absPosition.X = (float)Math.Ceiling(absPosition.X) + 1f;
Common\General\Axis.cs (8)
5699rect.Width = (float)Math.Ceiling(rect.Width); 5700rect.Height = (float)Math.Ceiling(rect.Height); 5764width = (float)Math.Ceiling(width) * 1.05f; 5765height = (float)Math.Ceiling(height) * 1.05f; 5766axisLabelSize.Width = (float)Math.Ceiling(axisLabelSize.Width) * 1.05f; 5767axisLabelSize.Height = (float)Math.Ceiling(axisLabelSize.Height) * 1.05f; 5939axisLabelSize.Width = (float)Math.Ceiling(axisLabelSize.Width); 5940axisLabelSize.Height = (float)Math.Ceiling(axisLabelSize.Height);
Common\General\AxisScale.cs (1)
1259 min = (double)( ((decimal)Math.Ceiling( min / inter ) - 1m ) * (decimal)inter );
Common\General\Chart.cs (3)
346Width = (int)Math.Ceiling(Width * newResolution / resolution); 347Height = (int)Math.Ceiling(Height * newResolution / resolution); 2183 int areaRows = (int)Math.Ceiling(((float)areaNumber) / ((float)areaColumns));
Common\General\ChartArea.cs (4)
2692 textSize.Width = (float)Math.Ceiling(textSize.Width * 1.1f); 2693 textSize.Height = (float)Math.Ceiling(textSize.Height * 1.1f); 2712 width = (float)Math.Abs(Math.Ceiling(width)); 2713 height = (float)Math.Abs(Math.Ceiling(height));
Common\General\ChartAreaAxes.cs (1)
1347 axisInterval = Math.Ceiling( axisInterval / axis.interval3DCorrection );
Common\General\ChartElement.cs (1)
1170 int pointIndex = (int)Math.Ceiling(current - 1);
Common\General\ChartGraphics.cs (6)
897float crossLineWidth = (float)Math.Ceiling(markerSize / 4F); 2681 return new Size( (int)Math.Ceiling(size.Width), (int)Math.Ceiling(size.Height)); 2697 return new Size( (int)Math.Ceiling(size.Width), (int)Math.Ceiling(size.Height)); 3791 radius = (float)Math.Ceiling(radius);
Common\General\Legend.cs (4)
453 this._offset.Width = (int)Math.Ceiling(singleWCharacterSize.Width / 2f); 454 this._offset.Height = (int)Math.Ceiling(singleWCharacterSize.Width / 3f); 920 this._offset.Width = (int)Math.Ceiling(singleWCharacterSize.Width / 2f); 921 this._offset.Height = (int)Math.Ceiling(singleWCharacterSize.Width / 3f);
System.Windows.Forms (17)
misc\GDI\WindowsFont.cs (1)
150int pixelsY = (int) Math.Ceiling( WindowsGraphicsCacheManager.MeasurementGraphics.DeviceContext.DpiY * size / 72); // 1 point = 1/72 inch.;
misc\GDI\WindowsGraphics2.cs (4)
347leftMargin = (int) Math.Ceiling(overhangPadding); 348rightMargin = (int) Math.Ceiling(overhangPadding * (1 + ItalicPaddingFactor)); 354leftMargin = (int) Math.Ceiling(2 * overhangPadding); 355rightMargin = (int) Math.Ceiling(overhangPadding * (2 + ItalicPaddingFactor));
winforms\Managed\System\WinForms\DataGridTable.cs (2)
384focusedTextWidth = (int) Math.Ceiling(g.MeasureString(((string) RelationsList[focusedRelation]), DataGrid.LinkFont).Width); 918int rwidth = (int) Math.Ceiling(g.MeasureString(((string) this.RelationsList[r]), this.DataGrid.LinkFont).Width)
winforms\Managed\System\WinForms\Layout\TableLayout.cs (2)
365int estimatedCols = Math.Max((int)Math.Ceiling((float)minSpace / numRows), minColumn); 1129remainingSpace -= (int) Math.Ceiling(desiredScaleSpace);
winforms\Managed\System\WinForms\ListBox.cs (1)
2240width = (int)(Math.Ceiling(graphics.MeasureString(GetItemText(item), this.Font).Width));
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (2)
323int detailsWidth = (int) Math.Ceiling(sizef.Width); 325detailsBtn.Width = (int) Math.Ceiling(detailsWidth * (ownerGrid.UseCompatibleTextRendering ? 1.15f : 1.4f));
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (2)
4318int maxRows = (int)Math.Ceiling(((double)GetOurSize().Height)/(1+RowHeight)); 4530visibleRows = (int)Math.Ceiling(((double)size.Height)/(1+RowHeight));
winforms\Managed\System\WinForms\RichTextBox.cs (1)
2823numerator = (int)Math.Ceiling(multiplier);
winforms\Managed\System\WinForms\Triangle.cs (2)
63int updnHeight =(int)Math.Ceiling((updnWidth/2) * TRI_HEIGHT_RATIO); 68int lrHeight =(int)Math.Ceiling((lrWidth/2) * TRI_HEIGHT_RATIO);
System.Windows.Forms.DataVisualization (36)
Common\Borders3D\EmbedBorder.cs (1)
942 radius = (float)Math.Ceiling(radius);
Common\Borders3D\EmbossBorder.cs (1)
197 radius = (float)Math.Ceiling(radius);
Common\ChartTypes\FastPointChart.cs (1)
531 float crossLineWidth = (float)Math.Ceiling(markerSize/4F);
Common\ChartTypes\StackedBarChart.cs (2)
482 float right = (float)Math.Ceiling(areaPosition.Right); 483 float bottom = (float)Math.Ceiling(areaPosition.Bottom);
Common\ChartTypes\StackedColumnChart.cs (3)
488 float right = (float)Math.Ceiling(areaPosition.Right); 489 float bottom = (float)Math.Ceiling(areaPosition.Bottom); 1220absPosition.X = (float)Math.Ceiling(absPosition.X) + 1f;
Common\General\Axis.cs (8)
5699rect.Width = (float)Math.Ceiling(rect.Width); 5700rect.Height = (float)Math.Ceiling(rect.Height); 5764width = (float)Math.Ceiling(width) * 1.05f; 5765height = (float)Math.Ceiling(height) * 1.05f; 5766axisLabelSize.Width = (float)Math.Ceiling(axisLabelSize.Width) * 1.05f; 5767axisLabelSize.Height = (float)Math.Ceiling(axisLabelSize.Height) * 1.05f; 5939axisLabelSize.Width = (float)Math.Ceiling(axisLabelSize.Width); 5940axisLabelSize.Height = (float)Math.Ceiling(axisLabelSize.Height);
Common\General\AxisScale.cs (1)
1259 min = (double)( ((decimal)Math.Ceiling( min / inter ) - 1m ) * (decimal)inter );
Common\General\Chart.cs (3)
346Width = (int)Math.Ceiling(Width * newResolution / resolution); 347Height = (int)Math.Ceiling(Height * newResolution / resolution); 2183 int areaRows = (int)Math.Ceiling(((float)areaNumber) / ((float)areaColumns));
Common\General\ChartArea.cs (4)
2692 textSize.Width = (float)Math.Ceiling(textSize.Width * 1.1f); 2693 textSize.Height = (float)Math.Ceiling(textSize.Height * 1.1f); 2712 width = (float)Math.Abs(Math.Ceiling(width)); 2713 height = (float)Math.Abs(Math.Ceiling(height));
Common\General\ChartAreaAxes.cs (1)
1347 axisInterval = Math.Ceiling( axisInterval / axis.interval3DCorrection );
Common\General\ChartElement.cs (1)
1170 int pointIndex = (int)Math.Ceiling(current - 1);
Common\General\ChartGraphics.cs (6)
897float crossLineWidth = (float)Math.Ceiling(markerSize / 4F); 2681 return new Size( (int)Math.Ceiling(size.Width), (int)Math.Ceiling(size.Height)); 2697 return new Size( (int)Math.Ceiling(size.Width), (int)Math.Ceiling(size.Height)); 3791 radius = (float)Math.Ceiling(radius);
Common\General\Legend.cs (4)
453 this._offset.Width = (int)Math.Ceiling(singleWCharacterSize.Width / 2f); 454 this._offset.Height = (int)Math.Ceiling(singleWCharacterSize.Width / 3f); 920 this._offset.Width = (int)Math.Ceiling(singleWCharacterSize.Width / 2f); 921 this._offset.Height = (int)Math.Ceiling(singleWCharacterSize.Width / 3f);
System.Workflow.Activities (5)
Designers\StateMachineDesignerPaint.cs (2)
47return new Size(Convert.ToInt32(Math.Ceiling(textSize.Width)), Convert.ToInt32(Math.Ceiling(textSize.Height)));
Rules\Design\Dialogs\IntellisenseTextBox.cs (3)
426clientPoint.Y += (int)Math.Ceiling(this.Font.GetHeight()) + 2; 430clientPoint.Y += (int)Math.Ceiling(this.Font.GetHeight()); 499clientPoint.Y += (int)Math.Ceiling(this.Font.GetHeight()) + 2;
System.Workflow.ComponentModel (27)
AuthoringOM\Design\DesignerHelpers.cs (4)
79return new Size(Convert.ToInt32(Math.Ceiling(textSize.Width)), Convert.ToInt32(Math.Ceiling(textSize.Height))); 505Rectangle bounds = new Rectangle(0, 0, Convert.ToInt32(Math.Ceiling(boundsF.Width)), Convert.ToInt32(Math.Ceiling(boundsF.Height)));
AuthoringOM\Design\DesignerWidgets.cs (11)
1342maxTextSize.Width = Math.Max(Convert.ToInt32(Math.Ceiling(size.Width)), maxTextSize.Width); 1343maxTextSize.Height = Math.Max(Convert.ToInt32(Math.Ceiling(size.Height)), maxTextSize.Height); 1978this.drawItems[i].TextSize = new Size(Convert.ToInt32(Math.Ceiling(sizef.Width)), Convert.ToInt32(Math.Ceiling(sizef.Height))); 2009int itemSizeDecrease = (int)Math.Ceiling(((double)(offset - maxTotalTabItemSize)) / (double)Math.Max(1, this.tabItemList.Count)); 2016itemSizeDecrease += (int)Math.Ceiling(((double)(this.reqTabItemSize - lastItemWidth)) / (double)Math.Max(1, this.tabItemList.Count)); 2167int width = Convert.ToInt32((Math.Ceiling(textSize.Width) / 3)) * 30; 3386this.previewDescTextSize = new Size(Convert.ToInt32(Math.Ceiling(stringSize.Width)), Convert.ToInt32(Math.Ceiling(stringSize.Height))); 3464destnRectangle.Width = Convert.ToInt32(Math.Ceiling((float)previewedActivityImage.Width / stretchFactor)); 3465destnRectangle.Height = Convert.ToInt32(Math.Ceiling((float)previewedActivityImage.Height / stretchFactor));
AuthoringOM\Design\WorkflowLayouts.cs (4)
756this.pageSize.Width = Convert.ToInt32(Math.Ceiling(((float)this.pageSize.Width) / this.scaling)); 757this.pageSize.Height = Convert.ToInt32(Math.Ceiling(((float)this.pageSize.Height) / this.scaling)); 766PageSeparator = new Size(Convert.ToInt32(Math.Ceiling(((float)PageSeparator.Width) / this.scaling)), Convert.ToInt32(Math.Ceiling(((float)PageSeparator.Height) / this.scaling)));
AuthoringOM\Design\WorkflowPrinting.cs (8)
154viewPortSize.Width = Convert.ToInt32(Math.Ceiling((float)printableArea.Width / this.scaling)); 155viewPortSize.Height = Convert.ToInt32(Math.Ceiling((float)printableArea.Height / this.scaling)); 158scaledAlignment.X = Convert.ToInt32(Math.Ceiling((float)this.workflowAlignment.X / this.scaling)); 159scaledAlignment.Y = Convert.ToInt32(Math.Ceiling((float)this.workflowAlignment.Y / this.scaling)); 266layoutRectangle.Size = new Size(Convert.ToInt32(Math.Ceiling((stringSize.Width))), Convert.ToInt32(Math.Ceiling((stringSize.Height)))); 346this.totalPrintablePages.X = Convert.ToInt32(Math.Ceiling((this.scaling * (float)rootDesignerSize.Width) / (float)printableArea.Width)); 348this.totalPrintablePages.Y = Convert.ToInt32(Math.Ceiling((this.scaling * (float)rootDesignerSize.Height) / (float)printableArea.Height));
System.Xml (1)
System\Xml\XPath\Internal\NumberFunctions.cs (1)
94return Math.Ceiling((double) arg.Evaluate(nodeIterator));
UIAutomationClientsideProviders (1)
MS\Internal\AutomationProxies\WindowsListView.cs (1)
1058int rowCount = (int) System.Math.Ceiling (((double) itemCount) / columnCount);