namespace StockSharp.Charting; /// /// Used to transfer annotation draw data. /// public interface IAnnotationData { /// Show/hide annotation. bool? IsVisible { get; set; } /// Whether user can edit annotation. bool? IsEditable { get; set; } /// /// X1 coordinate for annotation drawing. /// for coordinate mode or . /// otherwise. /// IComparable X1 { get; set; } /// /// Y1 coordinate for annotation drawing. /// for coordinate mode or . /// otherwise. /// IComparable Y1 { get; set; } /// /// X2 coordinate for annotation drawing. /// for coordinate mode or . /// otherwise. /// IComparable X2 { get; set; } /// /// Y2 coordinate for annotation drawing. /// for coordinate mode or . /// otherwise. /// IComparable Y2 { get; set; } /// Brush to draw lines and borders. Brush Stroke { get; set; } /// Brush to fill background. Brush Fill { get; set; } /// Text color. Brush Foreground { get; set; } /// Line thickness. Thickness? Thickness { get; set; } /// Turn on/off label show for horizontal and vertical lines. bool? ShowLabel { get; set; } /// Label placement for horizontal and vertical lines. LabelPlacement? LabelPlacement { get; set; } /// Alignment for horizontal lines. HorizontalAlignment? HorizontalAlignment { get; set; } /// Alignment for vertical lines. VerticalAlignment? VerticalAlignment { get; set; } /// /// Coordinate mode. /// means for X and price for Y. /// means relative to the screen edges: double. 0=top/left, 0.5=center, 1=bottom/right /// AnnotationCoordinateMode? CoordinateMode { get; set; } /// Text for text annotation. string Text { get; set; } }