Show / Hide Table of Contents

    Class Polygon

    Definition

    Namespace:
    ElmSharp
    Assembly:
    ElmSharp.dll
    API Level:
    preview

    The Polygon is a widget that is used to draw a polygon (filled).

    public class Polygon : EvasObject
    Inheritance
    Object
    EvasObject
    Polygon

    Constructors

    View Source

    Polygon(EvasObject)

    Creates and initializes a new instance of the Polygon class. The EvasObject to which the new Polygon will be attached as a child.

    Declaration
    public Polygon(EvasObject parent)
    Parameters
    Type Name Description
    EvasObject parent
    API Level: preview

    Methods

    View Source

    AddPoint(Point)

    Adds a new vertex to the polygon. The coordinates of the new vertex.

    Declaration
    public void AddPoint(Point p)
    Parameters
    Type Name Description
    Point p
    API Level: preview
    View Source

    AddPoint(Int32, Int32)

    Adds a new vertex to the polygon. The X-coordinate of the new vertex. The Y-coordinate of the new vertex.

    Declaration
    public void AddPoint(int x, int y)
    Parameters
    Type Name Description
    Int32 x
    Int32 y
    API Level: preview
    View Source

    ClearPoints()

    Removes all the vertices of the polygon, making it empty.

    Declaration
    public void ClearPoints()
    API Level: preview
    View Source

    CreateHandle(EvasObject)

    Creates a widget handle.

    Declaration
    protected override IntPtr CreateHandle(EvasObject parent)
    Parameters
    Type Name Description
    EvasObject parent

    Parent EvasObject.

    Returns
    Type Description
    IntPtr

    Handle IntPtr.

    Overrides
    EvasObject.CreateHandle(EvasObject)
    API Level: preview

    Extension Methods

    RotaryEventExtensions.AddRotaryEventHandler(EvasObject, RotaryEventHandler)
    RotaryEventExtensions.RemoveRotaryEventHandler(EvasObject, RotaryEventHandler)
    RotaryEventExtensions.Activate(EvasObject)
    RotaryEventExtensions.Deactivate(EvasObject)
    • View Source
    Back to top Copyright © 2016-2020 Samsung
    Generated by DocFX