25 instantiations of GraphicsPath
System.Drawing.Common (10)
System\Drawing\Drawing2D\GraphicsPath.cs (8)
15/// <inheritdoc cref="GraphicsPath(Point[], byte[], FillMode)"/> 18/// <inheritdoc cref="GraphicsPath(Point[], byte[], FillMode)"/> 26/// <inheritdoc cref="GraphicsPath(Point[], byte[], FillMode)"/> 29/// <inheritdoc cref="GraphicsPath(Point[], byte[], FillMode)"/> 35/// <inheritdoc cref="GraphicsPath(Point[], byte[], FillMode)"/> 57/// <inheritdoc cref="GraphicsPath(Point[], byte[], FillMode)"/> 71/// <inheritdoc cref="GraphicsPath(Point[], byte[], FillMode)"/> 98return new GraphicsPath(path);
System\Drawing\Graphics.cs (2)
733using GraphicsPath path = new(); 1207using GraphicsPath path = new();
System.Windows.Forms (15)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\FlatButtonDarkModeRenderer.cs (1)
112using var path = new GraphicsPath();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernButtonDarkModeRenderer.cs (1)
227GraphicsPath path = new();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\PopupButtonDarkModeRenderer.cs (1)
201GraphicsPath path = new();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (3)
225GraphicsPath path = new(); 264GraphicsPath path = new(); 314GraphicsPath path = new();
System\Windows\Forms\Controls\ComboBox\ComboBox.ModernComboAdapter.cs (1)
439GraphicsPath path = new();
System\Windows\Forms\Controls\GroupBox\GroupBox.Modern.cs (1)
489GraphicsPath path = new();
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
2746using GraphicsPath roundedBodyPath = new();
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
1126using GraphicsPath bodyPath = new();
System\Windows\Forms\ParentBackgroundRenderer.cs (1)
81using GraphicsPath outline = new();
System\Windows\Forms\Rendering\Animation\AnimatedFocusIndicatorRenderer.cs (1)
114using GraphicsPath focusPath = new();
System\Windows\Forms\Rendering\Button\PopupButtonKeyCapRenderer.cs (1)
612GraphicsPath path = new();
System\Windows\Forms\Rendering\CheckBox\AnimatedCheckGlyphRenderer.cs (1)
246GraphicsPath path = new();
System\Windows\Forms\Rendering\CheckBox\AnimatedToggleSwitchRenderer.cs (1)
245using GraphicsPath path = new();
86 references to GraphicsPath
System.Drawing (1)
System.Drawing.cs (1)
33[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.GraphicsPath))]
System.Drawing.Common (33)
System\Drawing\Drawing2D\CustomLineCap.cs (6)
15public CustomLineCap(GraphicsPath? fillPath, GraphicsPath? strokePath) : this(fillPath, strokePath, LineCap.Flat) { } 17public CustomLineCap(GraphicsPath? fillPath, GraphicsPath? strokePath, LineCap baseCap) : this(fillPath, strokePath, baseCap, 0) { } 19public CustomLineCap(GraphicsPath? fillPath, GraphicsPath? strokePath, LineCap baseCap, float baseInset)
System\Drawing\Drawing2D\GraphicsPath.cs (5)
61/// Initializes a new instance of the <see cref='GraphicsPath'/> class. 66/// A <see cref="Drawing2D.FillMode"/> enumeration that specifies how the interiors of shapes in this <see cref="GraphicsPath"/> 312/// Appends a series of connected line segments to the end of this <see cref="GraphicsPath"/>. 769public void AddPath(GraphicsPath addingPath, bool connect) 880/// Applies a warp transform, defined by a rectangle and a parallelogram, to this <see cref="GraphicsPath"/>.
System\Drawing\Drawing2D\GraphicsPathIterator.cs (6)
11public GraphicsPathIterator(GraphicsPath? path) 71public int NextSubpath(GraphicsPath path, out bool isClosed) 106public int NextMarker(GraphicsPath path) 190/// Copies the <see cref="GraphicsPath.PathPoints"/> property and <see cref="GraphicsPath.PathTypes"/> property data 191/// of the associated <see cref="GraphicsPath"/>.
System\Drawing\Drawing2D\PathGradientBrush.cs (2)
9/// Encapsulates a <see cref="Brush"/> object that fills the interior of a <see cref="GraphicsPath"/> object with a gradient. 97public PathGradientBrush(GraphicsPath path)
System\Drawing\Graphics.cs (7)
535public void SetClip(GraphicsPath path) => SetClip(path, Drawing2D.CombineMode.Replace); 537public void SetClip(GraphicsPath path, Drawing2D.CombineMode combineMode) 733using GraphicsPath path = new(); 901/// Draws the lines and curves defined by a <see cref='GraphicsPath'/>. 903public void DrawPath(Pen pen, GraphicsPath path) 1207using GraphicsPath path = new(); 2848public void FillPath(Brush brush, GraphicsPath path)
System\Drawing\PointerExtensions.cs (1)
22public static GpPath* Pointer(this Drawing2D.GraphicsPath? path) => path is null ? null : path._nativePath;
System\Drawing\Region.cs (6)
33public Region(GraphicsPath path) 114public void Intersect(GraphicsPath path) 133public void Union(GraphicsPath path) 152public void Xor(GraphicsPath path) 171public void Exclude(GraphicsPath path) 190public void Complement(GraphicsPath path)
System.Windows.Forms (52)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\FlatButtonDarkModeRenderer.cs (1)
112using var path = new GraphicsPath();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\IButtonRenderer.cs (1)
19static void DrawButtonBorder(Graphics graphics, GraphicsPath path, Color borderColor, int borderWidth)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernButtonDarkModeRenderer.cs (9)
107using GraphicsPath borderPath = CreateRingPath( 118using GraphicsPath bodyPath = CreateRoundedPath(pathBounds, radius); 153using GraphicsPath gapPath = CreateRingPath( 162using GraphicsPath ringPath = CreateRingPath( 225private static GraphicsPath CreateRoundedPath(RectangleF bounds, float radius) 227GraphicsPath path = new(); 233private static GraphicsPath CreateRingPath( 238GraphicsPath path = CreateRoundedPath(outerBounds, outerRadius); 241using GraphicsPath innerPath = CreateRoundedPath(innerBounds, innerRadius);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\PopupButtonDarkModeRenderer.cs (4)
42using GraphicsPath bodyPath = CreateRoundedPath(bodyBounds); 127using GraphicsPath borderClip = CreateRoundedPath(bounds); 199private GraphicsPath CreateRoundedPath(Rectangle bounds) 201GraphicsPath path = new();
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (12)
49using GraphicsPath fillPath = CreateRoundedPath(pathBounds, FocusIndicatorCornerRadius); 79using GraphicsPath focusPath = CreateRingPath( 161using GraphicsPath borderPath = CreateRoundedPath( 223private static GraphicsPath GetTopLeftSegmentPath(Rectangle bounds, int radius) 225GraphicsPath path = new(); 262private static GraphicsPath GetBottomRightSegmentPath(Rectangle bounds, int radius) 264GraphicsPath path = new(); 312private static GraphicsPath CreateRoundedPath(RectangleF bounds, float radius) 314GraphicsPath path = new(); 320private static GraphicsPath CreateRingPath( 325GraphicsPath path = CreateRoundedPath(outerBounds, outerRadius); 328using GraphicsPath innerPath = CreateRoundedPath(innerBounds, innerRadius);
System\Windows\Forms\Controls\ComboBox\ComboBox.ModernComboAdapter.cs (4)
368using GraphicsPath path = CreateFieldPath( 392using GraphicsPath path = CreateFieldPath( 435private static GraphicsPath CreateFieldPath( 439GraphicsPath path = new();
System\Windows\Forms\Controls\GroupBox\GroupBox.Modern.cs (4)
346using GraphicsPath path = CreateModernFramePath(bounds); 471using GraphicsPath path = CreateModernFramePath(bounds); 487private GraphicsPath CreateModernFramePath(Rectangle bounds) 489GraphicsPath path = new();
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
2746using GraphicsPath roundedBodyPath = new();
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
1126using GraphicsPath bodyPath = new();
System\Windows\Forms\ParentBackgroundRenderer.cs (1)
81using GraphicsPath outline = new();
System\Windows\Forms\Rendering\Animation\AnimatedFocusIndicatorRenderer.cs (1)
114using GraphicsPath focusPath = new();
System\Windows\Forms\Rendering\Button\PopupButtonKeyCapRenderer.cs (9)
168using (GraphicsPath outerPath = CreateRoundedPath(outer, metrics.CornerRadius + 1f)) 174using GraphicsPath innerPath = CreateRoundedPath(inner, metrics.CornerRadius); 182using GraphicsPath bodyPath = CreateRoundedPath(metrics.KeyRect, metrics.CornerRadius); 201using GraphicsPath bowlPath = CreateRoundedPath(bowl, metrics.BowlRadius); 281using GraphicsPath borderPath = CreateRoundedPath( 302using GraphicsPath focusPath = CreateRoundedPath( 423using GraphicsPath clipPath = CreateRoundedPath( 610private static GraphicsPath CreateRoundedPath(Rectangle rect, float radius) 612GraphicsPath path = new();
System\Windows\Forms\Rendering\CheckBox\AnimatedCheckGlyphRenderer.cs (3)
135using GraphicsPath path = CreateBoxPath(bounds, flatStyle); 244private static GraphicsPath CreateBoxPath(Rectangle bounds, FlatStyle flatStyle) 246GraphicsPath path = new();
System\Windows\Forms\Rendering\CheckBox\AnimatedToggleSwitchRenderer.cs (1)
245using GraphicsPath path = new();