Table of Contents

TTMSFNCChartAnnotation Class

Represents a single annotation attached to a chart point, drawn as a labeled shape with an optional leader line.

API unit family: TMSFNCChart Inherits from: TCollectionItem

Syntax

TTMSFNCChartAnnotation = class(TCollectionItem)

Properties

Name Description
Arrow Arrowhead style drawn on the leader line.
ArrowColor Color of the arrowhead; default is black.
ArrowOpacity Opacity of the arrowhead (0.0 fully transparent, 1.0 fully opaque).
ArrowSize Size of the arrowhead in pixels.
AutoSize When True, the annotation box automatically sizes to fit its text content.
DataInteger Arbitrary integer value for associating application data with this annotation.
DataObject Arbitrary object reference for associating application data with this annotation.
DataString Arbitrary string value for associating application data with this annotation.
Fill Fill settings for the annotation background shape.
Font Font used to render the annotation text.
Height Fixed height of the annotation box in pixels when AutoSize is False.
LineColor Color of the leader line; default is black.
LineOpacity Opacity of the leader line (0.0 fully transparent, 1.0 fully opaque).
LineWidth Width of the leader line in pixels.
OffsetX Horizontal offset of the annotation box from the associated point in pixels.
OffsetY Vertical offset of the annotation box from the associated point in pixels.
Shape Background shape of the annotation box.
Stroke Stroke settings for the annotation background shape border.
Tag User-defined integer tag for identifying the annotation in event handlers.
Text Text content displayed inside the annotation shape.
TextHorizontalAlignment Horizontal alignment of the text within the annotation box.
TextVerticalAlignment Vertical alignment of the text within the annotation box.
Visible When True, the annotation is drawn; when False, it is hidden.
Width Fixed width of the annotation box in pixels when AutoSize is False.
WordWrap When True, long text wraps to multiple lines within the annotation box.

Methods

Name Description
Chart Returns the owning TTMSFNCChart instance. Returns the owning chart instance.
GetValue Returns a TTMSFNCChartAnnotationVirtual snapshot of the annotation's current field values.
Point Returns the TTMSFNCChartPoint this annotation is attached to.
Serie Returns the TTMSFNCChartSerie that owns the point this annotation belongs to. Returns the series associated with this settings object.