menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class StraightLineAnnotation - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class StraightLineAnnotation

    Inheritance
    System.Object
    Annotation
    SingleAnnotation
    ShapeAnnotation
    LineAnnotation
    StraightLineAnnotation
    HorizontalLineAnnotation
    VerticalLineAnnotation
    Implements
    ICloneable
    Inherited Members
    Annotation.AnnotationElement
    Annotation.CanUpdateRange(Object, Object)
    Annotation.Clone()
    Annotation.ContentTemplate
    Annotation.ContentTemplateProperty
    Annotation.CoordinateUnit
    Annotation.CoordinateUnitProperty
    Annotation.EnableClipping
    Annotation.EnableClippingProperty
    Annotation.EnableEditing
    Annotation.EnableEditingProperty
    Annotation.EnsurePoint(Point, Point)
    Annotation.FontFamily
    Annotation.FontFamilyProperty
    Annotation.FontSize
    Annotation.FontSizeProperty
    Annotation.FontStretch
    Annotation.FontStretchProperty
    Annotation.FontStyle
    Annotation.FontStyleProperty
    Annotation.FontWeight
    Annotation.FontWeightProperty
    Annotation.Foreground
    Annotation.ForegroundProperty
    Annotation.GetClippingValues(Double, ChartAxis)
    Annotation.GetElementPosition(FrameworkElement, Point)
    Annotation.GetElementPosition(Size, Point)
    Annotation.GetRenderedAnnotation()
    Annotation.GetRotatePoint(Double, FrameworkElement, Point)
    Annotation.IntersectsWith(Rect, Rect)
    Annotation.IsUiCleared
    Annotation.MouseDown
    Annotation.MouseLeave
    Annotation.MouseLeftButtonDown
    Annotation.MouseLeftButtonUp
    Annotation.MouseMove
    Annotation.MouseRightButtonDown
    Annotation.MouseRightButtonUp
    Annotation.MouseUp
    Annotation.OnSelected(EventArgs)
    Annotation.OnUnSelected(EventArgs)
    Annotation.RotatedTextRect
    Annotation.RotateElement(Double, FrameworkElement)
    Annotation.RotateElement(Double, FrameworkElement, Size)
    Annotation.SetData()
    Annotation.ShowToolTip
    Annotation.ShowToolTipProperty
    Annotation.Text
    Annotation.TextElement
    Annotation.TextElementCanvas
    Annotation.TextProperty
    Annotation.ToolTipContent
    Annotation.ToolTipContentProperty
    Annotation.ToolTipPlacement
    Annotation.ToolTipPlacementProperty
    Annotation.ToolTipShowDuration
    Annotation.ToolTipShowDurationProperty
    Annotation.ToolTipTemplate
    Annotation.ToolTipTemplateProperty
    Annotation.x1
    Annotation.X1
    Annotation.X1Property
    Annotation.XAxisName
    Annotation.XAxisNameProperty
    Annotation.y1
    Annotation.Y1
    Annotation.Y1Property
    Annotation.YAxisName
    Annotation.YAxisNameProperty
    LineAnnotation.arrowLine
    LineAnnotation.CloneAnnotation(Annotation)
    LineAnnotation.DrawLine(Point, Point, Shape)
    LineAnnotation.GetTextPosition(Size, Point, Size)
    LineAnnotation.GrabExtent
    LineAnnotation.GrabExtentProperty
    LineAnnotation.HorizontalChange
    LineAnnotation.LineCap
    LineAnnotation.LineCapProperty
    LineAnnotation.OnDragCompleted(Object, DragCompletedEventArgs)
    LineAnnotation.SetBindings()
    LineAnnotation.SetTextElementPosition(Point, Point, Size, Point, ContentControl)
    LineAnnotation.ShowLine
    LineAnnotation.ShowLineProperty
    LineAnnotation.UpdateAnnotation()
    LineAnnotation.VerticalChange
    ShapeAnnotation.CanDrag
    ShapeAnnotation.CanDragProperty
    ShapeAnnotation.CanResize
    ShapeAnnotation.CanResizeProperty
    ShapeAnnotation.DraggingMode
    ShapeAnnotation.DraggingModeProperty
    ShapeAnnotation.Fill
    ShapeAnnotation.FillProperty
    ShapeAnnotation.GetTextPosition(Size, Point)
    ShapeAnnotation.HorizontalTextAlignment
    ShapeAnnotation.HorizontalTextAlignmentProperty
    ShapeAnnotation.OnDragCompleted(AnnotationDragCompletedEventArgs)
    ShapeAnnotation.OnDragDelta(AnnotationDragDeltaEventArgs)
    ShapeAnnotation.OnDragStarted(EventArgs)
    ShapeAnnotation.Stroke
    ShapeAnnotation.StrokeDashArray
    ShapeAnnotation.StrokeDashArrayProperty
    ShapeAnnotation.StrokeDashCap
    ShapeAnnotation.StrokeDashCapProperty
    ShapeAnnotation.StrokeDashOffset
    ShapeAnnotation.StrokeDashOffsetProperty
    ShapeAnnotation.StrokeEndLineCap
    ShapeAnnotation.StrokeEndLineCapProperty
    ShapeAnnotation.StrokeLineJoin
    ShapeAnnotation.StrokeLineJoinProperty
    ShapeAnnotation.StrokeMiterLimit
    ShapeAnnotation.StrokeMiterLimitProperty
    ShapeAnnotation.StrokeProperty
    ShapeAnnotation.StrokeStartLineCap
    ShapeAnnotation.StrokeStartLineCapProperty
    ShapeAnnotation.StrokeThickness
    ShapeAnnotation.StrokeThicknessProperty
    ShapeAnnotation.VerticalTextAlignment
    ShapeAnnotation.VerticalTextAlignmentProperty
    ShapeAnnotation.x2
    ShapeAnnotation.X2
    ShapeAnnotation.X2Property
    ShapeAnnotation.y2
    ShapeAnnotation.Y2
    ShapeAnnotation.Y2Property
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.WPF.dll
    Syntax
    public abstract class StraightLineAnnotation : LineAnnotation, ICloneable

    Constructors

    StraightLineAnnotation()

    Constructor

    Declaration
    public StraightLineAnnotation()

    Fields

    AxisLabelTemplateProperty

    The DependencyProperty for AxisLabelTemplate property.

    Declaration
    public static readonly DependencyProperty AxisLabelTemplateProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ShowAxisLabelProperty

    The Dependencyproperty for ShowAxisLabel property.

    Declaration
    public static readonly DependencyProperty ShowAxisLabelProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    Properties

    AxisLabelTemplate

    Gets or sets the custom template for the axis label.

    Declaration
    public DataTemplate AxisLabelTemplate { get; set; }
    Property Value
    Type Description
    System.Windows.DataTemplate

    System.Windows.DataTemplate

    ShowAxisLabel

    Gets or sets a value indicating whether to enable or disable the annotation label displaying in axis.

    Declaration
    public bool ShowAxisLabel { get; set; }
    Property Value
    Type
    System.Boolean

    Methods

    SetAxisMarkerValue(Object, Object, Object, Object, AxisMode)

    Declaration
    protected void SetAxisMarkerValue(object X1, object X2, object Y1, object Y2, AxisMode axisMode)
    Parameters
    Type Name Description
    System.Object X1
    System.Object X2
    System.Object Y1
    System.Object Y2
    AxisMode axisMode

    Events

    DragCompleted

    Occurs when annotation drag is completed.

    Declaration
    public event EventHandler<AnnotationDragCompletedEventArgs> DragCompleted
    Event Type
    Type
    System.EventHandler<AnnotationDragCompletedEventArgs>

    DragDelta

    Occurs while dragging the annotation.

    Declaration
    public event EventHandler<AnnotationDragDeltaEventArgs> DragDelta
    Event Type
    Type
    System.EventHandler<AnnotationDragDeltaEventArgs>

    DragStarted

    Occurs when annotation drag is started.

    Declaration
    public event EventHandler DragStarted
    Event Type
    Type
    System.EventHandler

    Selected

    Occurs when Syncfusion.UI.Xaml.Charts.Annotation becomes selected.

    Declaration
    public event EventHandler Selected
    Event Type
    Type
    System.EventHandler

    UnSelected

    Occurs when Syncfusion.UI.Xaml.Charts.Annotation becomes unselected.

    Declaration
    public event EventHandler UnSelected
    Event Type
    Type
    System.EventHandler

    Implements

    ICloneable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved