TextAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

Defines a Text annotation, which may be used to place read-only labels or read-write Textboxes on the parent UltrachartSurface

Inherits: AnchorPointAnnotation

Constructors

TextAnnotation
public TextAnnotation()
textAnnotation = TextAnnotation()

Initializes a new instance of the TextAnnotation class.

Properties

CornerRadius
public CornerRadius CornerRadius { get; set; }
value = textAnnotation.CornerRadius
textAnnotation.CornerRadius = value

Gets or sets the CornerRadius of the TextAnnotation

Text
public string Text { get; set; }
value = textAnnotation.Text
textAnnotation.Text = value

Gets or sets the Text of the TextAnnotation

TextAlignment
public TextAlignment TextAlignment { get; set; }
value = textAnnotation.TextAlignment
textAnnotation.TextAlignment = value

Gets or sets the TextAlignment

TextStretch
private Stretch TextStretch { get; set; }
value = textAnnotation.TextStretch
textAnnotation.TextStretch = value

Gets or sets how Text stretches to fill its container. Applicable if the X1,Y1,X2,Y2 properties are all set, else text will be uniform

Methods

FocusInputTextArea
protected override void FocusInputTextArea()
textAnnotation.FocusInputTextArea()

Focuses the text input area on the TextAnnotation

IsPointWithinBounds
public override bool IsPointWithinBounds(Point point)
result = textAnnotation.IsPointWithinBounds(point)

Returns true if the Point is within the bounds of the current IHitTestable element

point
The point to test

Returns: true if the Point is within the bounds

OnApplyTemplate
public override void OnApplyTemplate()
textAnnotation.OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.

RemoveFocusInputTextArea
protected override void RemoveFocusInputTextArea()
textAnnotation.RemoveFocusInputTextArea()

Remove focus from input text area. Applicable only for Text and label annotation

Fields

CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
value = TextAnnotation.CornerRadiusProperty

Defines the CornerRadius DependencyProperty

TextAlignmentProperty
public static readonly DependencyProperty TextAlignmentProperty
value = TextAnnotation.TextAlignmentProperty

Defines the TextAlignment DependencyProperty

TextProperty
public static readonly DependencyProperty TextProperty
value = TextAnnotation.TextProperty

Defines the Text DependencyProperty

TextStretchProperty
public static readonly DependencyProperty TextStretchProperty
value = TextAnnotation.TextStretchProperty

Defines the TextStretch DependencyProperty