Display Label. More...
Inherits OverlayBase.
Public Member Functions | |
DisplayLabel (string text, bool canDrag, Color color, Point pos) | |
Construct a display label. More... | |
DisplayLabel (string text, bool canDrag, Color color, Point pos, object tag) | |
Construct a display label. More... | |
DisplayLabel (DisplayLabel obj) | |
Copy constructor. More... | |
Protected Member Functions | |
override void | Overlay_ConnectedToDisplay () |
Add a label to a display. More... | |
override void | Overlay_DisconnectedFromDisplay (bool handBackID) |
Remove a label from its display More... | |
Protected Member Functions inherited from OverlayBase | |
OverlayBase (string text, bool canDrag, Color color, object tag) | |
ctor for DisplayObjects More... | |
Properties | |
Point | Location [get, set] |
Pixel position of the label (in pixels of the image that is currently being displayed). | |
Properties inherited from OverlayBase | |
Display | Parent [get] |
The display on which the label lives (if any...). Note that a label may only be associated with one display at a time | |
object | Tag [get, set] |
Field for user-definable data to be associated with the overlay object. | |
bool | InvokeRequired [get] |
tell whether actions on the display object require an invoke action or not (being user interface objects, display objects should not be modified asynchronously) | |
string | Text [get, set] |
Text being displayed on the label and/or in the status line | |
virtual Color | Color [get, set] |
Color of the label | |
bool | IsDragable [get, set] |
Label dragable? | |
Additional Inherited Members | |
Protected Attributes inherited from OverlayBase | |
Color | color_ = Color.White |
Internally stored color. | |
Display Label.
DisplayLabel | ( | string | text, |
bool | canDrag, | ||
Color | color, | ||
Point | pos | ||
) |
Construct a display label.
text | label text |
canDrag | If true, the label becomes dragable, if false it will remain fixed |
color | label color |
pos | label position in pixel coordinates |
DisplayLabel | ( | string | text, |
bool | canDrag, | ||
Color | color, | ||
Point | pos, | ||
object | tag | ||
) |
Construct a display label.
text | label text |
canDrag | If true, the label becomes dragable, if false it will remain fixed |
color | label color |
pos | label position in pixel coordinates |
tag | object with which this label is to be associated |
DisplayLabel | ( | DisplayLabel | obj | ) |
Copy constructor.
obj | DisplayLabel object to copy. |
|
protectedvirtual |
Add a label to a display.
ObjectDisposedException | If the display we are trying to work on has already been disposed |
Implements OverlayBase.
|
protectedvirtual |
Remove a label from its display
handBackID | true if the overlay ID should be handed back to the display, false otherwise. |
ObjectDisposedException | If the display we are trying to work on has already been disposed |
Implements OverlayBase.