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

Hereda de: AnchorPointAnnotation

Constructores

TextAnnotation()

Initializes a new instance of the TextAnnotation class.

Propiedades

CornerRadius : CornerRadius

Gets or sets the CornerRadius of the TextAnnotation

Text : string

Gets or sets the Text of the TextAnnotation

TextAlignment : TextAlignment

Gets or sets the TextAlignment

TextStretch : Stretch

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

Métodos

FocusInputTextArea()

Focuses the text input area on the TextAnnotation

IsPointWithinBounds(Point) : bool

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

point
The point to test

Devuelve: true if the Point is within the bounds

OnApplyTemplate()

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

RemoveFocusInputTextArea()

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

Campos

CornerRadiusProperty : DependencyProperty

Defines the CornerRadius DependencyProperty

TextAlignmentProperty : DependencyProperty

Defines the TextAlignment DependencyProperty

TextProperty : DependencyProperty

Defines the Text DependencyProperty

TextStretchProperty : DependencyProperty

Defines the TextStretch DependencyProperty