menu

WinForms

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

    Show / Hide Table of Contents

    Class DrawShape

    The DrawShape class can be used to set shape to particular custom point on the chart area.

    Inheritance
    System.Object
    DrawShape
    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.Windows.Forms.Chart
    Assembly: Syncfusion.Chart.Base.dll
    Syntax
    public class DrawShape

    Constructors

    DrawShape()

    Initializes a new instance of the DrawShape class.

    Declaration
    public DrawShape()

    Properties

    Border

    Gets or sets border to the custom shape.

    Declaration
    public ChartLineInfo Border { get; set; }
    Property Value
    Type
    ChartLineInfo

    Color

    Gets or sets background color to the Shape. Default color is "White"

    Declaration
    public Color Color { get; set; }
    Property Value
    Type
    System.Drawing.Color

    Font

    Gets or sets the font of the text.

    Declaration
    public ChartFontInfo Font { get; set; }
    Property Value
    Type
    ChartFontInfo

    Position

    Gets or sets the position of the shape in relation to the point.

    Declaration
    public ChartTextOrientation Position { get; set; }
    Property Value
    Type
    ChartTextOrientation

    Size

    Gets or sets size to the Shape to draw around the custom points Default Size is (50, 50)

    Declaration
    public Size Size { get; set; }
    Property Value
    Type
    System.Drawing.Size

    Text

    Gets or sets the text of the custom point.

    Declaration
    public string Text { get; set; }
    Property Value
    Type
    System.String

    TextColor

    Gets or sets text color to the custom shape. Default color is "White"

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    Type

    Gets or sets the style of the shape that is to be displayed. Default shape is Square. It will support the limitted shape(Square, Circle, Hexagon, Pentagon) draw around the custom point

    Declaration
    public ChartCustomShape Type { get; set; }
    Property Value
    Type
    ChartCustomShape

    Methods

    Dispose()

    Method to dispose DrawShape object.

    Declaration
    public void Dispose()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved