menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ShapesPainter - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ShapesPainter

    Represents the functionalities that encapsulates the painting logic for a triangle.

    Inheritance
    System.Object
    ShapesPainter
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.WinForms.Core
    Assembly: Syncfusion.Core.WinForms.dll
    Syntax
    public class ShapesPainter

    Constructors

    ShapesPainter()

    Declaration
    public ShapesPainter()

    Methods

    DrawTriangle(Graphics, Rectangle, TriangleDirection, Brush, Pen, Boolean)

    Paints a triangle to a given graphics canvas.

    Declaration
    public static void DrawTriangle(Graphics g, Rectangle bounds, TriangleDirection direction, Brush backBrush, Pen backPen, bool opaque)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    The System.Drawing.Graphics context of the canvas.

    System.Drawing.Rectangle bounds

    The System.Drawing.Rectangle with the bounds.

    TriangleDirection direction

    The TriangleDirection which indicates the sort order.

    System.Drawing.Brush backBrush

    Brush to paint the inner region of the triangle.

    System.Drawing.Pen backPen

    Pen to draw a triangle boundary.

    System.Boolean opaque

    Specifies if the triangle should be drawn transparent.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved