238 references to Empty
System.Drawing (5)
commonui\System\Drawing\BufferedGraphicsContext.cs (3)
59
bufferSize = Size.
Empty
;
594
bufferSize = Size.
Empty
;
595
virtualSize = Size.
Empty
;
commonui\System\Drawing\Icon.cs (1)
61
private Size iconSize = System.Drawing.Size.
Empty
;
commonui\System\Drawing\Printing\PreviewPageInfo.cs (1)
24
private Size physicalSize = Size.
Empty
;
System.Web.DataVisualization (19)
Common\Converters\LegendConverters.cs (2)
254
values.Add(System.Drawing.Size.
Empty
);
292
return System.Drawing.Size.
Empty
;
Common\General\Legend.cs (13)
294
private Size _offset = Size.
Empty
;
392
internal Size singleWCharacterSize = Size.
Empty
;
493
Size highestHeader = Size.
Empty
;
707
Size itemHalfSpacing = Size.
Empty
;
873
this._offset = Size.
Empty
;
884
Size optimalSize = Size.
Empty
;
933
Size titleSize = Size.
Empty
;
943
Size highestHeader = Size.
Empty
;
2330
this._offset = Size.
Empty
;
3973
Size titleSize = Size.
Empty
;
4005
Size headerSize = Size.
Empty
;
4374
Size size = Size.
Empty
;
4378
size = Size.
Empty
;
Common\General\LegendColumns.cs (4)
844
private Size _imageSize = Size.
Empty
;
884
private Size _cachedCellSize = Size.
Empty
;
1426
this._cachedCellSize = Size.
Empty
;
1493
Size cellSize = Size.
Empty
;
System.Windows.Forms (135)
misc\GDI\WindowsGraphics2.cs (2)
380
return Size.
Empty
;
448
return Size.
Empty
;
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (10)
1045
Size checkSize = checkSizeLinear > 0 ? new Size(checkSizeLinear + 1, checkSizeLinear) : Size.
Empty
;
1050
Size requiredImageSize = (imageSize != Size.
Empty
) ? imageSize + textImageInsetSize : Size.
Empty
;
1057
Size textSize = Size.
Empty
;
1132
if (imageSize != Size.
Empty
) {
1315
if(imageSize == Size.
Empty
|| text == null || text.Length == 0 || textImageRelation == TextImageRelation.Overlay) {
1321
if (layout.options.everettButtonCompat && imageSize != Size.
Empty
) {
1442
Size textSize = Size.
Empty
;
1520
layout.imageSize = Size.
Empty
;
1546
layout.imageSize = (Control.Image == null) ? Size.
Empty
: Control.Image.Size;
winforms\Managed\System\WinForms\ComboBox.cs (1)
976
Size textExtent = Size.
Empty
;
winforms\Managed\System\WinForms\ContainerControl.cs (1)
707
Size borderSize = SizeFromClientSize(Size.
Empty
);
winforms\Managed\System\WinForms\Control.cs (9)
2218
get { return Size.
Empty
; }
3304
if (value == Size.
Empty
) {
4761
get { return GetPreferredSize(Size.
Empty
); }
6456
if (MaximumSize != Size.
Empty
|| MinimumSize != Size.
Empty
) {
11490
MinimumSize = Size.
Empty
;
11491
MaximumSize = Size.
Empty
;
11538
minSize = ScaleSize(LayoutUtils.UnionSizes(Size.
Empty
, minSize), // make sure we dont go below 0.
11544
maxSize = ScaleSize(LayoutUtils.UnionSizes(Size.
Empty
, maxSize), // make sure we dont go below 0.
winforms\Managed\System\WinForms\Cursor.cs (1)
41
private static Size cursorSize = System.Drawing.Size.
Empty
;
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
2589
return GetPreferredSize(g, dataGridViewCellStyle, rowIndex, Size.
Empty
);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (1)
601
glyphSize = Size.
Empty
;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
1369
Size preferredSize = Size.
Empty
;
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (4)
497
preferredSize = Size.
Empty
;
509
preferredSize = Size.
Empty
;
532
preferredSize = Size.
Empty
;
544
preferredSize = Size.
Empty
;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
38
private Size maxSize = System.Drawing.Size.
Empty
;
winforms\Managed\System\WinForms\ErrorProvider.cs (2)
885
Size mirrordcExtent = Size.
Empty
;
1054
mirrordcExtent = Size.
Empty
;
winforms\Managed\System\WinForms\Form.cs (5)
199
private Size autoScaleBaseSize = System.Drawing.Size.
Empty
;
200
private Size minAutoSize = Size.
Empty
;
663
minAutoSize = Size.
Empty
;
1579
return Size.
Empty
;
6350
autoScaleBaseSize = Size.
Empty
;
winforms\Managed\System\WinForms\GDI\TextRenderer.cs (6)
227
return Size.
Empty
;
239
return Size.
Empty
;
251
return Size.
Empty
;
266
return Size.
Empty
;
295
return Size.
Empty
;
325
return Size.
Empty
;
winforms\Managed\System\WinForms\GroupBox.cs (1)
693
Size borderSize = SizeFromClientSize(Size.
Empty
);
winforms\Managed\System\WinForms\Label.cs (2)
1256
bordersAndPadding += SizeFromClientSize(Size.
Empty
);
1288
proposedConstraints = LayoutUtils.UnionSizes(proposedConstraints,Size.
Empty
);
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (4)
325
Debug.Assert(xGetPreferredSizeCache(element) == Size.
Empty
, "Error detected in xClearPreferredSizeCache.");
354
return Size.
Empty
;
360
Debug.Assert(value == Size.
Empty
|| value != xGetPreferredSizeCache(element), "PERF: Caller should guard against setting PreferredSizeCache to original value.");
633
return Size.
Empty
;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (4)
260
Size preferredSize = Size.
Empty
;
492
Size preferredSizeForDocking = Size.
Empty
;
493
Size preferredSizeForAnchoring = Size.
Empty
;
823
Size prefSize = Size.
Empty
;
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (4)
107
Size layoutSize = Size.
Empty
;
117
Size rowSize = Size.
Empty
;
166
Size rowSize = Size.
Empty
;
581
get { return CommonProperties.GetMinimumSize(Element, Size.
Empty
); }
winforms\Managed\System\WinForms\Layout\LayoutEngine.cs (1)
28
internal virtual Size GetPreferredSize(IArrangedElement container, Size proposedConstraints) { return Size.
Empty
; }
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (1)
54
Size largestSize = Size.
Empty
;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (3)
643
Size preferredSize = Size.
Empty
;
736
maxWidth = GetElementSize(element, Size.
Empty
).Width;
1786
return Size.
Empty
;
winforms\Managed\System\WinForms\ListView.cs (3)
157
private Size tileSize = Size.
Empty
;
1645
return Size.
Empty
;
1674
return !this.tileSize.Equals(Size.
Empty
);
winforms\Managed\System\WinForms\Panel.cs (1)
194
Size borderSize = SizeFromClientSize(Size.
Empty
);
winforms\Managed\System\WinForms\PictureBox.cs (1)
1222
Size bordersAndPadding = SizeFromClientSize(Size.
Empty
) + Padding.Size;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
57
private Size imageSize = System.Drawing.Size.
Empty
; // 100ths of inch, not pixels
winforms\Managed\System\WinForms\PropertyStore.cs (1)
141
return Size.
Empty
;
winforms\Managed\System\WinForms\RichTextBox.cs (1)
559
Size scrollBarPadding = Size.
Empty
;
winforms\Managed\System\WinForms\ScrollableControl.cs (5)
69
private Size userAutoScrollMinSize = System.Drawing.Size.
Empty
;
79
private Size scrollMargin = System.Drawing.Size.
Empty
;
84
private Size requestedScrollMargin = System.Drawing.Size.
Empty
;
1024
AutoScrollMargin = Size.
Empty
;
1028
AutoScrollMinSize = Size.
Empty
;
winforms\Managed\System\WinForms\SplitterPanel.cs (1)
336
return Size.
Empty
;
winforms\Managed\System\WinForms\SystemInformation.cs (2)
1921
return Size.
Empty
;
1945
return Size.
Empty
;
winforms\Managed\System\WinForms\TabControl.cs (2)
46
private static readonly Size DEFAULT_ITEMSIZE = Size.
Empty
;
61
private Size cachedSize = Size.
Empty
;
winforms\Managed\System\WinForms\TextBox.cs (1)
440
Size scrollBarPadding = Size.
Empty
;
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
964
Size bordersAndPadding = SizeFromClientSize(Size.
Empty
) + Padding.Size;
winforms\Managed\System\WinForms\ToolBar.cs (2)
42
internal Size buttonSize = System.Drawing.Size.
Empty
;
1434
buttonSize = Size.
Empty
;
winforms\Managed\System\WinForms\ToolStrip.cs (7)
86
private Size largestDisplayedItemSize = Size.
Empty
;
2477
Size maxSize = Size.
Empty
;
2535
Size maxSize = Size.
Empty
;
2590
return item.AutoSize ? item.GetPreferredSize(Size.
Empty
) : item.Size;
4351
Size biggestItemSize = Size.
Empty
; // used in determining OnPaint caching.
5219
private Size cachedHDCSize = Size.
Empty
;
5269
cachedHDCSize = Size.
Empty
;
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
1275
return GetPreferredSize(Size.
Empty
);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (8)
39
private Size maxItemSize = Size.
Empty
;
334
Size maxTextSize = Size.
Empty
;
335
Size maxImageSize = Size.
Empty
;
337
Size maxArrowSize = Size.
Empty
;
338
Size maxNonMenuItemSize = Size.
Empty
;
363
Size imageSize = Size.
Empty
;
779
Size upSize = UpScrollButton.GetPreferredSize(Size.
Empty
);
785
Size downSize = DownScrollButton.GetPreferredSize(Size.
Empty
);
winforms\Managed\System\WinForms\ToolStripGrip.cs (1)
105
Size preferredSize = Size.
Empty
;
winforms\Managed\System\WinForms\ToolStripItem.cs (11)
67
private Size cachedTextSize = Size.
Empty
;
604
content.Size = LayoutUtils.UnionSizes(Size.
Empty
, content.Size);
1910
return Size.
Empty
;
1924
Size imageSize = Size.
Empty
;
1929
imageSize = (image == null) ? Size.
Empty
: image.Size;
2722
return Size.
Empty
;
2724
else if (cachedTextSize == Size.
Empty
) {
3196
cachedTextSize = Size.
Empty
;
3385
cachedTextSize = Size.
Empty
;
4752
Size preferredSize = Size.
Empty
;
4765
return Size.
Empty
;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (5)
59
private Size cachedShortcutSize = Size.
Empty
;
159
cachedShortcutSize = Size.
Empty
;
834
return Size.
Empty
;
838
return Size.
Empty
;
840
else if (cachedShortcutSize == Size.
Empty
) {
winforms\Managed\System\WinForms\ToolStripOverflow.cs (1)
151
Size biggestItemSize = Size.
Empty
;
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
86
this.MinimumSize = Size.
Empty
; // consider 1,1
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (1)
237
Size preferredSize = Size.
Empty
;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (3)
343
if (toolStrip.MinimumSize == Size.
Empty
) {
989
Size totalSize = Size.
Empty
;
1500
Size totalSize = Size.
Empty
;
winforms\Managed\System\WinForms\ToolStripScrollButton.cs (1)
152
Size preferredSize = Size.
Empty
;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (6)
57
return Size.
Empty
;
253
Size itemSize = Size.
Empty
;
299
itemSize = item.AutoSize ? item.GetPreferredSize(Size.
Empty
) : item.Size;
393
Size itemSize = Size.
Empty
;
402
toolStripPreferredSize = ToolStrip.GetPreferredSizeVertical(toolStrip, Size.
Empty
) - toolStrip.Padding.Size;
435
itemSize = item.AutoSize ? item.GetPreferredSize(Size.
Empty
) : item.Size;
winforms\Managed\System\WinForms\ToolTip.cs (1)
1791
bubbleSize = Size.
Empty
;
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
81
private Size webBrowserBaseChangingSize = Size.
Empty
;
System.Windows.Forms.DataVisualization (19)
Common\Converters\LegendConverters.cs (2)
254
values.Add(System.Drawing.Size.
Empty
);
292
return System.Drawing.Size.
Empty
;
Common\General\Legend.cs (13)
294
private Size _offset = Size.
Empty
;
392
internal Size singleWCharacterSize = Size.
Empty
;
493
Size highestHeader = Size.
Empty
;
707
Size itemHalfSpacing = Size.
Empty
;
873
this._offset = Size.
Empty
;
884
Size optimalSize = Size.
Empty
;
933
Size titleSize = Size.
Empty
;
943
Size highestHeader = Size.
Empty
;
2330
this._offset = Size.
Empty
;
3973
Size titleSize = Size.
Empty
;
4005
Size headerSize = Size.
Empty
;
4374
Size size = Size.
Empty
;
4378
size = Size.
Empty
;
Common\General\LegendColumns.cs (4)
844
private Size _imageSize = Size.
Empty
;
884
private Size _cachedCellSize = Size.
Empty
;
1426
this._cachedCellSize = Size.
Empty
;
1493
Size cellSize = Size.
Empty
;
System.Workflow.Activities (16)
Designers\SetStateDesigner.cs (2)
31
private Size targetStateSize = Size.
Empty
;
160
Size.
Empty
);
Designers\StateDesigner.cs (5)
56
private Size _minimumSize = Size.
Empty
;
552
_minimumSize = Size.
Empty
;
1497
Size newSize = Size.
Empty
;
1527
_minimumSize = Size.
Empty
;
1528
this.Size = Size.
Empty
;
Designers\StateDesigner.Layouts.cs (8)
448
_textSize = StateMachineDesignerPaint.MeasureString(graphics, font, text, StringAlignment.Near, Size.
Empty
);
767
_breadCrumbSeparatorSize = StateMachineDesignerPaint.MeasureString(graphics, font, BreadCrumbSeparator, StringAlignment.Near, Size.
Empty
);
768
Size size = Size.
Empty
;
849
Size size = Size.
Empty
;
852
size = StateMachineDesignerPaint.MeasureString(graphics, compositeDesignerTheme.Font, text, StringAlignment.Center, Size.
Empty
);
893
Size size = Size.
Empty
;
966
_textLayout.OnLayoutSize(graphics, designerTheme, ambientTheme, Size.
Empty
);
967
_imageLayout.OnLayoutSize(graphics, designerTheme, ambientTheme, Size.
Empty
);
Designers\StateDesignerConnector.cs (1)
226
Size size = (Source != null) ? Source.Bounds.Size : Size.
Empty
;
System.Workflow.ComponentModel (44)
AuthoringOM\Design\ActivityDesigner.cs (5)
72
private Size size = Size.
Empty
;
75
private Size textSize = Size.
Empty
;
1711
Size actualTextSize = ActivityDesignerPaint.MeasureString(e.Graphics, e.DesignerTheme.BoldFont, Text, StringAlignment.Center, Size.
Empty
);
1732
this.textSize = Size.
Empty
;
1735
Size size = Size.
Empty
;
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (1)
388
object size = Size.
Empty
;
AuthoringOM\Design\ActivityPreviewDesigner.cs (1)
612
Size containerSize = Size.
Empty
;
AuthoringOM\Design\CompositeActivityDesigner.cs (6)
48
private Size actualTextSize = Size.
Empty
;
239
Size imageSize = (Image != null) ? designerTheme.ImageSize : Size.
Empty
;
333
Size expandButtonSize = (CanExpandCollapse) ? designerTheme.ExpandButtonSize : Size.
Empty
;
343
Size textSize = Size.
Empty
;
1290
this.actualTextSize = ActivityDesignerPaint.MeasureString(e.Graphics, e.DesignerTheme.BoldFont, Text, StringAlignment.Center, Size.
Empty
);
1292
this.actualTextSize = Size.
Empty
;
AuthoringOM\Design\Connector.cs (1)
515
Size size = (this.source != null) ? this.source.Bounds.Size : Size.
Empty
;
AuthoringOM\Design\DesignerHelpers.cs (3)
437
Size offset = Size.
Empty
;
503
GraphicsPath designerPath = GetDesignerPath(designer, new Point(-location.X, -location.Y), Size.
Empty
, DesignerEdges.None);
529
return GetDesignerPath(designer, Point.Empty, Size.
Empty
, DesignerEdges.None, enableRoundedCorners);
AuthoringOM\Design\DesignerInterfaces.cs (2)
162
public Size ShadowDepth = Size.
Empty
;
164
public Size ViewPortSize = Size.
Empty
;
AuthoringOM\Design\DesignerWidgets.cs (8)
125
: base(serviceProvider, Orientation.Horizontal, itemSize, Size.
Empty
)
575
private Size margin = Size.
Empty
;
750
Size reqdSize = Size.
Empty
;
1294
Size fittingOffset = Size.
Empty
;
1337
Size maxTextSize = Size.
Empty
;
2884
return ((designerTheme != null) ? designerTheme.PreviewItemSize : Size.
Empty
);
3201
private Size previewDescTextSize = Size.
Empty
;
3393
Size totalSize = Size.
Empty
;
AuthoringOM\Design\FreeFormDesigner.cs (2)
969
Size direction = Size.
Empty
;
1339
Size size = Size.
Empty
;
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
568
Size size = Size.
Empty
;
AuthoringOM\Design\ParallelActivityDesigner.cs (1)
246
Size containerSize = Size.
Empty
;
AuthoringOM\Design\SequentialActivityDesigner.cs (1)
45
private Size helpTextSize = Size.
Empty
;
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (2)
41
internal Size textSize = Size.
Empty
;
196
this.textSize = ActivityDesignerPaint.MeasureString(e.Graphics, font, Text, StringAlignment.Center, Size.
Empty
);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (2)
472
Size arrowCapSize = Size.
Empty
;
473
Size maxCapSize = Size.
Empty
;
AuthoringOM\Design\WorkflowLayouts.cs (7)
85
Size rootDesignerSize = (this.parentView.RootDesigner != null) ? this.parentView.RootDesigner.Size : Size.
Empty
;
216
Size rootDesignerSize = (this.parentView.RootDesigner != null) ? this.parentView.RootDesigner.Size : Size.
Empty
;
347
private Size pageSize = Size.
Empty
;
371
Size maxSize = Size.
Empty
;
385
Size rootDesignerSize = (this.parentView.RootDesigner != null) ? this.parentView.RootDesigner.Size : Size.
Empty
;
725
Size rootDesignerSize = (this.parentView.RootDesigner != null) ? this.parentView.RootDesigner.Size : Size.
Empty
;
824
Size size = Size.
Empty
;
AuthoringOM\Design\WorkflowPrinting.cs (1)
153
Size viewPortSize = Size.
Empty
;