50 references to ToInt32
mscorlib (6)
system\convert.cs (5)
677
return ToSByte(
ToInt32
(value));
781
return ToByte(
ToInt32
(value));
880
return ToInt16(
ToInt32
(value));
991
return ToUInt16(
ToInt32
(value));
1084
return
ToInt32
((double)value);
system\double.cs (1)
334
return Convert.
ToInt32
(m_value);
PresentationFramework (2)
src\Framework\System\windows\Documents\CaretElement.cs (1)
1160
i = Convert.
ToInt32
(value);
src\Framework\System\Windows\Documents\ImmComposition.cs (1)
2038
i = Convert.
ToInt32
(value);
System.Activities.DurableInstancing (3)
System\Activities\DurableInstancing\LoadWorkflowAsyncResult.cs (1)
74
parameters.Add(new SqlParameter { ParameterName = "@operationTimeout", SqlDbType = SqlDbType.Int, Value = (operationTimeout < Int32.MaxValue) ? Convert.
ToInt32
(operationTimeout) : Int32.MaxValue });
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (1)
86
parameters.Add(new SqlParameter { ParameterName = "@operationTimeout", SqlDbType = SqlDbType.Int, Value = (operationTimeout < Int32.MaxValue) ? Convert.
ToInt32
(operationTimeout) : Int32.MaxValue });
System\Activities\DurableInstancing\TryLoadRunnableWorkflowAsyncResult.cs (1)
47
command.Parameters.Add(new SqlParameter { ParameterName = "@operationTimeout", SqlDbType = SqlDbType.Int, Value = (operationTimeout < Int32.MaxValue) ? Convert.
ToInt32
(operationTimeout) : Int32.MaxValue });
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (2)
407
int editPointOffset = Convert.
ToInt32
(DesignerGeometryHelper.DistanceBetweenPoints(previous.Location, (next != null) ? next.Location : this.activeEditPoint.Location)) / 4;
428
int editPointOffset = Convert.
ToInt32
(DesignerGeometryHelper.DistanceBetweenPoints((previous != null) ? previous.Location : this.activeEditPoint.Location, next.Location)) / 4;
System.Data (2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (2)
407
int editPointOffset = Convert.
ToInt32
(DesignerGeometryHelper.DistanceBetweenPoints(previous.Location, (next != null) ? next.Location : this.activeEditPoint.Location)) / 4;
428
int editPointOffset = Convert.
ToInt32
(DesignerGeometryHelper.DistanceBetweenPoints((previous != null) ? previous.Location : this.activeEditPoint.Location, next.Location)) / 4;
System.ServiceModel (1)
System\ServiceModel\Dispatcher\XPathCompiler.cs (1)
413
ordinal = Convert.
ToInt32
(numExpr.Number);
System.Web (1)
httpserverutility.cs (1)
907
return Convert.
ToInt32
(_context.Timeout.TotalSeconds);
System.Workflow.Activities (2)
Designers\StateMachineDesignerPaint.cs (2)
47
return new Size(Convert.
ToInt32
(Math.Ceiling(textSize.Width)), Convert.
ToInt32
(Math.Ceiling(textSize.Height)));
System.Workflow.ComponentModel (28)
AuthoringOM\Design\Connector.cs (2)
1130
int editPointOffset = Convert.
ToInt32
(DesignerGeometryHelper.DistanceBetweenPoints(previous.Location, (next != null) ? next.Location : this.activeEditPoint.Location)) / 4;
1147
int editPointOffset = Convert.
ToInt32
(DesignerGeometryHelper.DistanceBetweenPoints((previous != null) ? previous.Location : this.activeEditPoint.Location, next.Location)) / 4;
AuthoringOM\Design\DesignerHelpers.cs (4)
79
return new Size(Convert.
ToInt32
(Math.Ceiling(textSize.Width)), Convert.
ToInt32
(Math.Ceiling(textSize.Height)));
505
Rectangle bounds = new Rectangle(0, 0, Convert.
ToInt32
(Math.Ceiling(boundsF.Width)), Convert.
ToInt32
(Math.Ceiling(boundsF.Height)));
AuthoringOM\Design\DesignerWidgets.cs (9)
1342
maxTextSize.Width = Math.Max(Convert.
ToInt32
(Math.Ceiling(size.Width)), maxTextSize.Width);
1343
maxTextSize.Height = Math.Max(Convert.
ToInt32
(Math.Ceiling(size.Height)), maxTextSize.Height);
1978
this.drawItems[i].TextSize = new Size(Convert.
ToInt32
(Math.Ceiling(sizef.Width)), Convert.
ToInt32
(Math.Ceiling(sizef.Height)));
2167
int width = Convert.
ToInt32
((Math.Ceiling(textSize.Width) / 3)) * 30;
3386
this.previewDescTextSize = new Size(Convert.
ToInt32
(Math.Ceiling(stringSize.Width)), Convert.
ToInt32
(Math.Ceiling(stringSize.Height)));
3464
destnRectangle.Width = Convert.
ToInt32
(Math.Ceiling((float)previewedActivityImage.Width / stretchFactor));
3465
destnRectangle.Height = Convert.
ToInt32
(Math.Ceiling((float)previewedActivityImage.Height / stretchFactor));
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (1)
1237
return Convert.
ToInt32
((double)uiValue * 100.0d); //in 1/100 of inch
AuthoringOM\Design\WorkflowLayouts.cs (4)
756
this.pageSize.Width = Convert.
ToInt32
(Math.Ceiling(((float)this.pageSize.Width) / this.scaling));
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)));
AuthoringOM\Design\WorkflowPrinting.cs (8)
154
viewPortSize.Width = Convert.
ToInt32
(Math.Ceiling((float)printableArea.Width / this.scaling));
155
viewPortSize.Height = Convert.
ToInt32
(Math.Ceiling((float)printableArea.Height / this.scaling));
158
scaledAlignment.X = Convert.
ToInt32
(Math.Ceiling((float)this.workflowAlignment.X / this.scaling));
159
scaledAlignment.Y = Convert.
ToInt32
(Math.Ceiling((float)this.workflowAlignment.Y / this.scaling));
266
layoutRectangle.Size = new Size(Convert.
ToInt32
(Math.Ceiling((stringSize.Width))), Convert.
ToInt32
(Math.Ceiling((stringSize.Height))));
346
this.totalPrintablePages.X = Convert.
ToInt32
(Math.Ceiling((this.scaling * (float)rootDesignerSize.Width) / (float)printableArea.Width));
348
this.totalPrintablePages.Y = Convert.
ToInt32
(Math.Ceiling((this.scaling * (float)rootDesignerSize.Height) / (float)printableArea.Height));
System.WorkflowServices (2)
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (2)
200
return Convert.
ToInt32
(this.lockTimeout.TotalSeconds);
302
return Convert.
ToInt32
(timeout.TotalSeconds);
UIAutomationClientsideProviders (1)
MS\Internal\AutomationProxies\WindowsSlider.cs (1)
179
int newVal = Convert.
ToInt32
(val);