67 references to Graphics
System.Workflow.Activities (18)
Designers\ConditionalDesigner.cs (4)
105e.Graphics.FillPath(compositeDesignerTheme.ForegroundBrush, decisionDiamond); 106e.Graphics.DrawPath(compositeDesignerTheme.ForegroundPen, decisionDiamond); 112e.Graphics.FillPath(compositeDesignerTheme.ForegroundBrush, decisionDiamond); 113e.Graphics.DrawPath(compositeDesignerTheme.ForegroundPen, decisionDiamond);
Designers\ListenDesigner.cs (4)
83e.Graphics.FillEllipse(compositeDesignerTheme.ForegroundBrush, roundRectangle); 84e.Graphics.DrawEllipse(compositeDesignerTheme.ForegroundPen, roundRectangle); 87e.Graphics.FillEllipse(compositeDesignerTheme.ForegroundBrush, roundRectangle); 88e.Graphics.DrawEllipse(compositeDesignerTheme.ForegroundPen, roundRectangle);
Designers\SetStateDesigner.cs (1)
172ActivityDesignerPaint.DrawText(e.Graphics,
Designers\StateDesigner.cs (1)
1562Graphics graphics = e.Graphics;
Designers\StateDesignerConnector.cs (6)
149e.Graphics.DrawLines(lineEditPen, segments); 179StateMachineDesignerPaint.DrawConnector(e.Graphics, 214StateMachineDesignerPaint.DrawConnector(e.Graphics, 239e.Graphics.FillPath(Brushes.White, path); 240e.Graphics.DrawPath(e.AmbientTheme.SelectionForegroundPen, path); 246e.Graphics.FillEllipse(e.AmbientTheme.SelectionForegroundBrush, bounds);
Designers\WhileDesigner.cs (2)
63DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, points, LineAnchor.None, LineAnchor.ArrowAnchor); 64DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, new Point[] { points[0], new Point(bounds.Left + bounds.Width / 2, bounds.Bottom) }, LineAnchor.None, LineAnchor.None);
System.Workflow.ComponentModel (44)
AuthoringOM\Design\ActivityDesigner.cs (3)
1672ActivityDesignerPaint.DrawDesignerBackground(e.Graphics, this); 1677ActivityDesignerPaint.DrawText(e.Graphics, font, Text, TextRectangle, StringAlignment.Near, e.AmbientTheme.TextQuality, e.DesignerTheme.ForegroundBrush); 1681ActivityDesignerPaint.DrawImage(e.Graphics, Image, ImageRectangle, DesignerContentAlignment.Fill);
AuthoringOM\Design\ActivityPreviewDesigner.cs (3)
539this.previewStrip.Draw(e.Graphics); 545e.Graphics.DrawLine(e.DesignerTheme.ForegroundPen, this.separatorLine[0], this.separatorLine[1]); 546this.previewWindow.Draw(e.Graphics, e.ViewPort);
AuthoringOM\Design\CompositeActivityDesigner.cs (2)
1239ActivityDesignerPaint.DrawExpandButton(e.Graphics, expandButtonRectangle, !Expanded, compositeDesignerTheme); 1467using (PaintEventArgs paintEventArgs = new PaintEventArgs(e.Graphics, e.ViewPort))
AuthoringOM\Design\Connector.cs (9)
174e.Graphics.FillEllipse(Brushes.White, bounds); 175e.Graphics.DrawEllipse(e.AmbientTheme.SelectionForegroundPen, bounds); 178e.Graphics.FillEllipse(e.AmbientTheme.SelectionForegroundBrush, bounds); 445ActivityDesignerPaint.DrawConnectors(e.Graphics, e.DesignerTheme.ForegroundPen, new List<Point>(ConnectorSegments).ToArray(), arrowCapSize, maxCapSize, theme.ConnectorStartCap, theme.ConnectorEndCap); 459ActivityDesignerPaint.DrawConnectors(e.Graphics, lineSelectionPen, new List<Point>(ConnectorSegments).ToArray(), arrowCapSize, maxCapSize, theme.ConnectorStartCap, theme.ConnectorEndCap); 487ActivityDesignerPaint.DrawConnectors(e.Graphics, editableConnectorPen, segments, arrowCapSize, maxCapSize, theme.ConnectorStartCap, theme.ConnectorEndCap); 528e.Graphics.FillPath(Brushes.White, path); 529e.Graphics.DrawPath(e.AmbientTheme.SelectionForegroundPen, path); 535e.Graphics.FillEllipse(e.AmbientTheme.SelectionForegroundBrush, bounds);
AuthoringOM\Design\FreeFormDesigner.cs (3)
1077Region oldClipRegion = e.Graphics.Clip; 1085e.Graphics.Clip = clipRegion; 1099e.Graphics.Clip = oldClipRegion;
AuthoringOM\Design\MessageFilters\GlyphManager.cs (2)
252glyph.Draw(e.Graphics, designer); 255this.activeGlyph.DrawActivated(e.Graphics, this.activeDesigner);
AuthoringOM\Design\ParallelActivityDesigner.cs (11)
355DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, parallelLinks, LineAnchor.None, LineAnchor.None); 362DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, parallelLinks, LineAnchor.None, LineAnchor.None); 369DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, parallelLinks, LineAnchor.None, LineAnchor.None); 376DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, parallelLinks, LineAnchor.None, LineAnchor.None); 389DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, connectingLine, compositeDesignerTheme.ConnectorStartCap, compositeDesignerTheme.ConnectorEndCap); 396DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, connectingLine, compositeDesignerTheme.ConnectorStartCap, compositeDesignerTheme.ConnectorEndCap); 424DrawConnectors(e.Graphics, e.AmbientTheme.DropIndicatorPen, new Point[] { new Point(dropTargetRectangle.Left + dropTargetRectangle.Width / 2, dropTargetRectangle.Top + 2), new Point(dropTargetRectangle.Left + dropTargetRectangle.Width / 2, dropTargetRectangle.Bottom - 2) }, compositeDesignerTheme.ConnectorStartCap, compositeDesignerTheme.ConnectorEndCap); 438DrawConnectors(e.Graphics, e.AmbientTheme.DropIndicatorPen, connectorPoints, LineAnchor.None, LineAnchor.None); 442DrawConnectors(e.Graphics, e.AmbientTheme.DropIndicatorPen, connectorPoints, LineAnchor.None, LineAnchor.None); 454DrawConnectors(e.Graphics, e.AmbientTheme.DropIndicatorPen, connectorPoints, LineAnchor.None, LineAnchor.None); 458DrawConnectors(e.Graphics, e.AmbientTheme.DropIndicatorPen, connectorPoints, LineAnchor.None, LineAnchor.None);
AuthoringOM\Design\SequentialActivityDesigner.cs (4)
411DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, new Point[] { new Point(connectors[0].X + connectors[0].Width / 2, connectors[0].Y + 2), new Point(connectors[0].X + connectors[0].Width / 2, helpTextRectangle.Top - 2) }, compositeDesignerTheme.ConnectorStartCap, LineAnchor.None); 412DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, new Point[] { new Point(connectors[0].X + connectors[0].Width / 2, helpTextRectangle.Bottom + 2), new Point(connectors[0].X + connectors[0].Width / 2, connectors[0].Bottom - 2) }, LineAnchor.None, compositeDesignerTheme.ConnectorEndCap); 415ActivityDesignerPaint.DrawText(e.Graphics, compositeDesignerTheme.Font, this.HelpText, helpTextRectangle, StringAlignment.Center, e.AmbientTheme.TextQuality, compositeDesignerTheme.ForegroundBrush); 425DrawConnectors(e.Graphics, pen, new Point[] { new Point(connectors[i].Left + connectors[i].Width / 2, connectors[i].Top + 2), new Point(connectors[i].Left + connectors[i].Width / 2, connectors[i].Bottom - 2) }, startCap, endCap);
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (2)
213ActivityDesignerPaint.DrawText(e.Graphics, font, Text, TextRectangle, StringAlignment.Center, TextQuality.AntiAliased, e.DesignerTheme.ForegroundBrush); 217ActivityDesignerPaint.DrawImage(e.Graphics, Image, ImageRectangle, DesignerContentAlignment.Fill);
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (4)
388e.Graphics.FillRectangle(linearGradientBrush, rectangle); 389e.Graphics.DrawLine(e.DesignerTheme.BorderPen, rectangle.Left, rectangle.Bottom, rectangle.Right, rectangle.Bottom); 475e.Graphics.FillRectangle(linearGradientBrush, rectangle); 476e.Graphics.DrawLine(e.DesignerTheme.BorderPen, rectangle.Left, rectangle.Top, rectangle.Right, rectangle.Top);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
675using (PaintEventArgs paintEventArgs = new PaintEventArgs(e.Graphics, e.ViewPort))
System.WorkflowServices (5)
System\Workflow\Activities\ReceiveActivityDesigner.cs (2)
186e.Graphics.DrawImage(ImageResources.Arrow, incomingArrowRect); 198e.Graphics.DrawImage(ImageResources.Arrow, outgoingArrowRect);
System\Workflow\Activities\SendActivityDesigner.cs (2)
138e.Graphics.DrawImage(ImageResources.Arrow, outgoingArrowRect); 151e.Graphics.DrawImage(ImageResources.Arrow, incomingArrowRect);
System\Workflow\ComponentModel\Design\DesignerPainter.cs (1)
126sink.OnPaint(new PaintEventArgs(eventArgs.Graphics, eventArgs.ClipRectangle), eventArgs.ClipRectangle);