Annotation |
The annotation is a label that is positioned and placed over the hotspot as a static label at runtime. The Annotation tab of the HotImage Designer Hotopot dialog box allows you to easily set the annotation properties at design time.
Right click on the hospot in the HotImage Designer. Select properties form the dropdown menu to invoke the hotspot properties dialog box. The Annotation object is used for placing an annotation directly onto a Hotspot like a label. It is associated with the hotspot, so that if for example, the hotspot moves due to resizing of the HotImage, then the label will also move retaining its relative position to the hotspot. The Annotation tab in the hotspot properties dialog alows you to visually set the properties of the Annotation object during design time. The annotation properties can be set at runtime, by gaining access to the hotspot object, either from the Hotspots collection or from an event which passes a reference to the hotspot in the Deltabit.HotspotEventArgs. The following is an example of changing a property for a hotspot's Annotation at runtime.
private void hotImage2_HotClick(object sender, Deltabit.HotspotEventArgs e) { e.Hotspot.Annotation.TextBrush.Color = Color.Green; }
The following are the properties that can be set at design time in the Annotation tab of the Hotspot dialog:
Text: This is the static text that is displayed in the annotation lable.
TextBrush: In the Hotspot dialog box the dropdown allows you to select the color of the TextBrush.
Allignment: Allows you to select the allignment from a grid of buttons representing TopLeft, Top, TopRight, Left, Center, Right, BottomLeft, Bottom and BottomRight. Furthermore the position of the annotation can be further adjusted by setting a value for the OffsetX and OffsetY properties of the Annotation object.
BackgroundBrush: In the Hotspot dialog box the dropdown allows you to select the color of the BackgroundBrush that is displayed as a background for the annotation label.
Font: Sets the font to be displayed in the annotation. By clicking on the label displaying the current font, the Font dialog box is invoked and the detailed font can be selected.
Visible: Sets if the annotation is displayed at runtime.