Class DoubleHotSpot
- Namespace
- CADability.UserInterface
- Assembly
- CADability.dll
Implements a hotspot IHotSpot to manipulate a length via a length property
public class DoubleHotSpot : IHotSpot
- Inheritance
-
DoubleHotSpot
- Implements
- Inherited Members
Constructors
DoubleHotSpot(DoubleProperty)
Constructs a hotspot to manipulate a double property
public DoubleHotSpot(DoubleProperty doubleProperty)
Parameters
doublePropertyDoublePropertythe property to be manipulated
Fields
Position
The position of the hotspot in world coordinates, returned by GetHotspotPosition(). The owner of the hotspot keeps it up to date, typically the position of the value in the drawing, e.g. the text position of a dimension.
public GeoPoint Position
Field Value
Properties
ContextMenu
The context menu of the associated DoubleProperty. A double property has no standard context menu, so the menu is empty unless one was set with SetContextMenu(string, ICommandHandler) or PrependContextMenu.
public MenuWithHandler[] ContextMenu { get; }
Property Value
Hidden
True when the associated property is read-only; the hotspot is then not displayed.
public bool Hidden { get; }
Property Value
IsSelected
The selection state of the hotspot, which is the selection state of the associated DoubleProperty on its property page: selecting the hotspot selects the property entry in the control center and vice versa.
public bool IsSelected { get; set; }
Property Value
ResourceId
The resource id of the associated DoubleProperty, which identifies its label text.
public string ResourceId { get; }
Property Value
Methods
GetHotspotPosition()
Gets the position of the HotSpot
public GeoPoint GetHotspotPosition()
Returns
- GeoPoint
The position in the world coordinate system
GetInfoText(InfoLevelMode)
Returns the tooltip text of the hotspot, which is the label of the associated DoubleProperty.
public string GetInfoText(InfoLevelMode Level)
Parameters
LevelInfoLevelModeRequested info level; ignored, the label is returned for every level
Returns
- string
The label text of the associated property
StartDrag(IFrame)
Called when the user starts dragging a hotspot, i.e. the left mouse button is pushed while the mouse position leaves the hotspot square.
public void StartDrag(IFrame frame)
Parameters
frameIFrame