public sealed class Grip
UI shape grip base class.

Constructors

Grip

#
public Grip(int index, PointF location, GripShape shape, string name, string info, int parentGrip = -1)
index (int)
location (PointF)
shape (GripShape)
name (string)
info (string)
parentGrip (int = -1)

Properties

Index

#
public int Index { get; }
Gets the index of this grip within the shape.

Info

#
public string Info { get; }
Gets the tooltip info of this grip.

Location

#
public PointF Location { get; }
Gets the location of this shape.

Name

#
public string Name { get; }
Gets the name of this grip.

ParentIndex

#
public int ParentIndex { get; }
Gets the index of the parent grip (if any).

Shape

#
public GripShape Shape { get; }
Gets the grip shape.

Methods

Move

#
public Grip Move(float dx, float dy)
Move this grip to a new location.
dx (float)
dy (float)

MoveTo

#
public Grip MoveTo(PointF point)
Move this grip to a new location.
point (PointF)