TextAnnotation
Defines a Text annotation, which may be used to place read-only labels or read-write Textboxes on the parent UltrachartSurface
Inherits: AnchorPointAnnotation
Constructors
public TextAnnotation()
textAnnotation = TextAnnotation()
Initializes a new instance of the TextAnnotation class.
Properties
public CornerRadius CornerRadius { get; set; }
value = textAnnotation.CornerRadius
textAnnotation.CornerRadius = value
Gets or sets the CornerRadius of the TextAnnotation
public string Text { get; set; }
value = textAnnotation.Text
textAnnotation.Text = value
Gets or sets the Text of the TextAnnotation
public TextAlignment TextAlignment { get; set; }
value = textAnnotation.TextAlignment
textAnnotation.TextAlignment = value
Gets or sets the TextAlignment
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
protected override void FocusInputTextArea()
textAnnotation.FocusInputTextArea()
Focuses the text input area on the TextAnnotation
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
public override void OnApplyTemplate()
textAnnotation.OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.
protected override void RemoveFocusInputTextArea()
textAnnotation.RemoveFocusInputTextArea()
Remove focus from input text area. Applicable only for Text and label annotation
Fields
public static readonly DependencyProperty CornerRadiusProperty
value = TextAnnotation.CornerRadiusProperty
Defines the CornerRadius DependencyProperty
public static readonly DependencyProperty TextAlignmentProperty
value = TextAnnotation.TextAlignmentProperty
Defines the TextAlignment DependencyProperty
public static readonly DependencyProperty TextProperty
value = TextAnnotation.TextProperty
Defines the Text DependencyProperty
public static readonly DependencyProperty TextStretchProperty
value = TextAnnotation.TextStretchProperty
Defines the TextStretch DependencyProperty