LineAnnotationWithLabelsBase
Provides a base class for HorizontalLineAnnotation, VerticalLineAnnotation
Herda de: LineAnnotation
Construtores
LineAnnotationWithLabelsBase()
Initializes a new instance of the LineAnnotationWithLabelsBase class.
Propriedades
AnnotationLabels : ObservableCollection<AnnotationLabel>
Gets or sets a collection of annotation labels
DefaultLabelValue : IComparable
Gets or sets value which labels will be bound to
DefaultTextFormatting : string
Gets the default text formatting value
FormattedLabel : string
Gets the formatted label value
LabelPlacement : LabelPlacement
Gets or sets placement for the default label
LabelTextFormatting : string
Gets or sets formatting string which is applied to all annotation labels
LabelValue : IComparable
Gets or sets a value for the default label
Métodos
AddLabel() : AnnotationLabel
Adds new label to AnnotationLabels
Retorna: Label which has been created
ApplyPlacement(AnnotationLabel, LabelPlacement)
Positions the AnnotationLabel using the value of the LabelPlacement enum
- label
- The label to place
- placement
- Placement arguments
Attach(AnnotationLabel)
Called internally to attach an AnnotationLabel to the current instance
- label
- The AnnotationLabel to attach
AttachLabels(IEnumerable<AnnotationLabel>)
Adds a collection of AnnotationLabel instances to the LineAnnotationWithLabelsBase
- labels
- The collection of labels to add
Detach(AnnotationLabel)
Detaches the AnnotationLabel from the current LineAnnotationWithLabelsBase
- label
- The label to detach
DetachLabels(IEnumerable<AnnotationLabel>)
Removes a collection of AnnotationLabel instances to the LineAnnotationWithLabelsBase
- labels
- The collection of labels to remove
GetSelectedCursor() : Cursor
Gets the Cursor to use for the annotation when selected
GetUsedAxis() : IAxis
Returns axis, which current annotation shows data value for
IsPointWithinBounds(Point) : bool
Returns true if the Point is within the bounds of the current IHitTestable element
- point
- The point to test
Retorna: true if the Point is within the bounds
MakeInvisible()
Hides current instance of LineAnnotationWithLabelsBase
MakeVisible(AnnotationCoordinates)
Hides current instance of LineAnnotationWithLabelsBase
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.
OnAttached()
Called when the Annotation is attached to parent surface
OnAxisAlignmentChanged(IAxis, AxisAlignment)
Virtual method to override if you wish to be notified that the AxisAlignment has changed
- axis
- oldAlignment
OnXAxesCollectionChanged(object, NotifyCollectionChangedEventArgs)
Virtual method to override if you wish to be notified that the parent XAxes has changed
OnXAxisIdChanged()
Virtual method to override if you wish to be notified that the XAxisId has changed
OnYAxesCollectionChanged(object, NotifyCollectionChangedEventArgs)
Virtual method to override if you wish to be notified that the parent YAxes has changed
OnYAxisIdChanged()
Virtual method to override if you wish to be notified that the YAxisId has changed
PlaceAxisLabel(IAxis, AnnotationLabel, Point)
Place on ModifierAxisCanvas of appropriate axis at position.
TryPlaceAxisLabels(Point)
Try to place all annotation labels on ModifierAxisCanvas of appropriate axis at position.
Campos
AnnotationLabelsProperty : DependencyProperty
Defines the AnnotationLabels Property
DefaultLabelValueProperty : DependencyProperty
Defines the DefaultLabelValue Property
DefaultTextFormattingProperty : DependencyProperty
Defines the DefaultTextFormatting Property
FormattedLabelProperty : DependencyProperty
Defines the FormattedLabel Property
LabelPlacementProperty : DependencyProperty
Defines the LabelPlacement Property
LabelTextFormattingProperty : DependencyProperty
Defines the LabelTextFormatting Property
LabelValueProperty : DependencyProperty
Defines the LabelValue Property
ShowLabelProperty : DependencyProperty
Defines the ShowLabel Property