Class AngleHotSpot
- Namespace
- CADability.UserInterface
- Assembly
- CADability.dll
Implements a hotspot IHotSpot to manipulate an angle via an angle property
public class AngleHotSpot : IHotSpot, ICommandHandler
- Inheritance
-
AngleHotSpot
- Implements
- Inherited Members
Constructors
AngleHotSpot(AngleProperty)
Constructs a hotspot to manipulate a length property
public AngleHotSpot(AngleProperty angleProperty)
Parameters
anglePropertyAnglePropertythe property to be manipulated
Fields
Position
The position of the hotspot
public GeoPoint Position
Field Value
Properties
ResourceId
The resource id of the associated AngleProperty, which identifies its label text.
public string ResourceId { get; }
Property Value
Methods
OnCommand(string)
Forwards the menu command to the associated AngleProperty, which processes the commands of its context menu (modify with mouse, angle from two points, add or subtract 30°, 45°, 90° or 180°).
public virtual bool OnCommand(string MenuId)
Parameters
MenuIdstringId of the menu command
Returns
- bool
true if the property handled the command, false otherwise
OnUpdateCommand(string, CommandState)
Forwards the request for the state of a menu item to the associated AngleProperty.
public virtual bool OnUpdateCommand(string MenuId, CommandState CommandState)
Parameters
MenuIdstringId of the menu command
CommandStateCommandStateState object to modify (enabled, checked)
Returns
- bool
true if the property handled the request, false otherwise