Class LineAnnotation
Represents the LineAnnotation class.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class LineAnnotation : ShapeAnnotation, ICloneable
Constructors
LineAnnotation()
Declaration
public LineAnnotation()
Fields
arrowLine
Declaration
protected ArrowLine arrowLine
Field Value
Type |
---|
ArrowLine |
GrabExtentProperty
Declaration
public static readonly DependencyProperty GrabExtentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LineCapProperty
The DependencyProperty for LineCap property.
Declaration
public static readonly DependencyProperty LineCapProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShowLineProperty
The DependencyProperty for ShowLine property.
Declaration
public static readonly DependencyProperty ShowLineProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
GrabExtent
Gets or sets the grab extent for the dragging line annotation.
Declaration
public double GrabExtent { get; set; }
Property Value
Type |
---|
System.Double |
HorizontalChange
Gets or sets the horizontal change.
Declaration
protected double HorizontalChange { get; set; }
Property Value
Type |
---|
System.Double |
LineCap
Gets or sets the line cap for the LineAnnotation
.
Declaration
public LineCap LineCap { get; set; }
Property Value
Type | Description |
---|---|
LineCap |
ShowLine
Gets or sets a value indicating whether to show the line or not.
Declaration
public bool ShowLine { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | if |
VerticalChange
Gets or sets the vertical change.
Declaration
protected double VerticalChange { get; set; }
Property Value
Type |
---|
System.Double |
Methods
CloneAnnotation(Annotation)
Clones the annotation.
Declaration
protected override DependencyObject CloneAnnotation(Annotation annotation)
Parameters
Type | Name | Description |
---|---|---|
Annotation | annotation | The annotation. |
Returns
Type | Description |
---|---|
System.Windows.DependencyObject | Returns the cloned annotation. |
Overrides
DrawLine(Point, Point, Shape)
Draws the line.
Declaration
protected void DrawLine(Point point, Point point2, Shape shape)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | point | The first point. |
System.Windows.Point | point2 | The second point. |
System.Windows.Shapes.Shape | shape | The shape to be used. |
GetTextPosition(Size, Point, Size)
Gets the text position.
Declaration
protected override Point GetTextPosition(Size desiredSize, Point originalPosition, Size textSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | desiredSize | The desired size. |
System.Windows.Point | originalPosition | The original position. |
System.Windows.Size | textSize | The text size. |
Returns
Type | Description |
---|---|
System.Windows.Point | Returns the text position after the alignment. |
Overrides
OnDragCompleted(Object, DragCompletedEventArgs)
Updates the drag completed interactions.
Declaration
protected virtual void OnDragCompleted(object sender, DragCompletedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender object. |
System.Windows.Controls.Primitives.DragCompletedEventArgs | e | The drag completed event arguments. |
SetBindings()
Sets the binding between the annotation and System.Windows.UIElement.
Declaration
protected override void SetBindings()
Overrides
SetTextElementPosition(Point, Point, Size, Point, ContentControl)
Sets the text element position.
Declaration
protected virtual void SetTextElementPosition(Point point, Point point2, Size desiredSize, Point positionedPoint, ContentControl textElement)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | point | The first point. |
System.Windows.Point | point2 | The second point. |
System.Windows.Size | desiredSize | The desired size. |
System.Windows.Point | positionedPoint | The position point. |
System.Windows.Controls.ContentControl | textElement | The text element. |
UpdateAnnotation()
Updates the annotation.
Declaration
public override void UpdateAnnotation()