102 references to Margin
System.Workflow.Activities (16)
Designers\ConditionalDesigner.cs (1)
98
diamondRectangle.Width = compositeDesignerTheme.ConnectorSize.Height - 2 * e.AmbientTheme.
Margin
.Height + 2;
Designers\ListenDesigner.cs (1)
78
roundRectangle.Width = compositeDesignerTheme.ConnectorSize.Height - 2 * e.AmbientTheme.
Margin
.Height - 1;
Designers\SetStateDesigner.cs (3)
44
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
55
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
89
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
Designers\StateDesigner.Layouts.cs (7)
450
width += ambientTheme.
Margin
.Width * 2;
452
height += ambientTheme.
Margin
.Height;
462
origin.X += ambientTheme.
Margin
.Width;
463
origin.Y += ambientTheme.
Margin
.Height / 2;
668
int layoutWidth = layout.Size.Width + 2 * (selectionSize.Width + ambientTheme.
Margin
.Width);
981
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
1040
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
Designers\WhileDesigner.cs (4)
47
connectionPoint = new Point(imageRectangle.Right + e.AmbientTheme.
Margin
.Width / 2, imageRectangle.Top + imageRectangle.Height / 2);
49
connectionPoint = new Point(textRectangle.Right + e.AmbientTheme.
Margin
.Width / 2, textRectangle.Top + textRectangle.Height / 2);
51
connectionPoint = new Point(bounds.Left + bounds.Width / 2 + e.AmbientTheme.
Margin
.Width / 2, bounds.Top + e.AmbientTheme.
Margin
.Height / 2);
System.Workflow.ComponentModel (86)
AuthoringOM\Design\ActivityDesigner.cs (15)
540
textRectangle.X = bounds.Left + ambientTheme.
Margin
.Width;
541
textRectangle.X += (Image != null) ? designerTheme.ImageSize.Width + ambientTheme.
Margin
.Width : 0;
564
imageRectangle.X = bounds.Left + WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
.Width;
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);
1717
this.textSize.Width = MinimumSize.Width - 2 * e.AmbientTheme.
Margin
.Width;
1719
this.textSize.Width -= e.DesignerTheme.ImageSize.Width + e.AmbientTheme.
Margin
.Width;
1736
size.Width = 2 * e.AmbientTheme.
Margin
.Width + ((Image != null) ? (e.DesignerTheme.ImageSize.Width + e.AmbientTheme.
Margin
.Width) : 0) + this.textSize.Width;
1737
size.Height = e.AmbientTheme.
Margin
.Height + Math.Max(e.DesignerTheme.ImageSize.Height, this.textSize.Height) + e.AmbientTheme.
Margin
.Height;
3040
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
3092
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
AuthoringOM\Design\ActivityPreviewDesigner.cs (22)
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;
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);
583
this.separatorLine[0].X = bounds.Left + e.AmbientTheme.
Margin
.Width;
585
this.separatorLine[0].Y += e.AmbientTheme.
Margin
.Height + e.AmbientTheme.
Margin
.Height / 2;
587
this.separatorLine[1].X = bounds.Right - e.AmbientTheme.
Margin
.Width;
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);
615
containerSize.Height += e.AmbientTheme.
Margin
.Height;
623
containerSize.Width += 2 * e.AmbientTheme.
Margin
.Width;
625
containerSize.Height += 4 * e.AmbientTheme.
Margin
.Height;
627
containerSize.Height += e.AmbientTheme.
Margin
.Height;
632
containerSize.Width += 3 * e.AmbientTheme.
Margin
.Width;
646
containerSize.Height -= 2 * e.AmbientTheme.
Margin
.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);
998
rectangle.Inflate(ambientTheme.
Margin
.Width / 2, ambientTheme.
Margin
.Height / 2);
AuthoringOM\Design\CompositeActivityDesigner.cs (5)
245
expandButtonRectangle.Y += 2 * WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
.Height;
259
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
300
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
332
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
1297
containerSize.Height = TitleHeight + WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
.Height;
AuthoringOM\Design\Connector.cs (6)
185
Size defaultSize = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
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());
1537
routedPoints = ConnectorRouter.Route(sourcePoint, targetPoint, ambientTheme.
Margin
, rootDesigner.Bounds, new Rectangle[] { }, linesToExclude.ToArray(), new Point[] { });
1609
rectangleToExclude.Inflate(ambientTheme.
Margin
);
1696
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
AuthoringOM\Design\DesignerHelpers.cs (1)
514
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
AuthoringOM\Design\DesignerWidgets.cs (5)
2659
this.bounds.Width = 2 * WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
.Width;
2830
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
3238
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
3371
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
3407
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
AuthoringOM\Design\Glyphs\CommentGlyph.cs (1)
36
bounds.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
);
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (5)
51
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
59
bounds.Inflate(ambientTheme.
Margin
.Width / 2, ambientTheme.
Margin
.Height / 2);
86
activatedBounds.X += bounds.Width + ambientTheme.
Margin
.Width;
87
activatedBounds.Width -= (bounds.Width + 2 * ambientTheme.
Margin
.Width);
AuthoringOM\Design\Glyphs\LockedActivityGlyph.cs (2)
40
bounds.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
);
55
bounds.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
);
AuthoringOM\Design\Glyphs\ReadOnlyActivityGlyph.cs (2)
24
bounds.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
);
39
bounds.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (3)
143
indicatorSize.Width += 2 * ambientTheme.
Margin
.Width;
144
indicatorSize.Height += 2 * ambientTheme.
Margin
.Height;
154
Size indicatorMargins = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (4)
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);
AuthoringOM\Design\SequentialActivityDesigner.cs (1)
499
containerSize.Width += 3 * e.AmbientTheme.
Margin
.Width;
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (3)
105
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
137
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
159
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (8)
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;
437
minHeight += (minHeight > 0) ? 2 * WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
.Height : 0;
457
imageRectangle.Y += WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
.Height;
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (2)
568
containerSize.Width += 3 * e.AmbientTheme.
Margin
.Width;
569
containerSize.Height += e.AmbientTheme.
Margin
.Height;
AuthoringOM\Design\WorkflowLayouts.cs (1)
722
Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.
Margin
;