Table of Contents

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

showProperty IPropertyEntry
frame IFrame

Properties

Hidden

A hotspot may be hidden if the respective property is readonly

public bool Hidden { get; }

Property Value

bool

IsSelected

Sets or gets the selection state of a hotspot

public bool IsSelected { get; set; }

Property Value

bool

Position

public GeoPoint Position { get; set; }

Property Value

GeoPoint

ResourceId

Get the ResourceId of the Hotspot

public string ResourceId { get; }

Property Value

string

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

Level InfoLevelMode

Requested 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

frame IFrame

Events

PositionChangedEvent

public event ShowPropertyHotSpot.PositionChangedDelegate PositionChangedEvent

Event Type

ShowPropertyHotSpot.PositionChangedDelegate