Class ShowPropertyHotSpot
- Namespace
- CADability.UserInterface
- Assembly
- CADability.dll
A hotspot (see IHotSpot) which stands for a property entry that has no position of its own, e.g. a length: it is displayed at the position set by its owner and, when the user drags it, starts a GeneralGeoPointAction and reports the new positions via PositionChangedEvent, so that the owner can update its property. Used e.g. for the width and height hotspots of a rectangular polyline.
public class ShowPropertyHotSpot : IHotSpot
- Inheritance
-
ShowPropertyHotSpot
- Implements
- Inherited Members
Constructors
ShowPropertyHotSpot(IPropertyEntry, IFrame)
public ShowPropertyHotSpot(IPropertyEntry showProperty, IFrame frame)
Parameters
showPropertyIPropertyEntryframeIFrame
Properties
Hidden
A hotspot may be hidden if the respective property is readonly
public bool Hidden { get; }
Property Value
IsSelected
Sets or gets the selection state of a hotspot
public bool IsSelected { get; set; }
Property Value
Position
public GeoPoint Position { get; set; }
Property Value
ResourceId
Get the ResourceId of the Hotspot
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 info text to be displayed in the ToolTip.
public string GetInfoText(InfoLevelMode Level)
Parameters
LevelInfoLevelModeRequested info level (simple info or detailed info)
Returns
- string
The info string
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
Events
PositionChangedEvent
public event ShowPropertyHotSpot.PositionChangedDelegate PositionChangedEvent