LinearPointerLabel Class
Represents a text pointer for use in a LinearGauge.
public class LinearPointerLabel : LinearPointerBase, ILogicalParent, IVisualParent, IOrientedElement
- Inheritance:
- object Visual UIElement FrameworkElement GaugeElement PointerBase LinearPointerBase object
- Implements:
- ILogicalParent IVisualParent IOrientedElement
Constructors
LinearPointerLabel()
Initializes an instance of the class.
public LinearPointerLabel()
Properties
Angle
The angle used to render the tick.
FontFamily
The font family.
public FontFamily? FontFamily { get; set; }
Property Value
- FontFamily:
The default value is MessageFontFamily.
FontSize
The size of the font.
FontStyle
The font style.
public FontStyle FontStyle { get; set; }
Property Value
- FontStyle:
The default value is MessageFontStyle.
FontWeight
The font weight.
public FontWeight FontWeight { get; set; }
Property Value
- FontWeight:
The default value is MessageFontWeight.
Foreground
The foreground brush.
RoundMode
Indicates how to round the values displayed.
Text
The text that should be rendered at the specified value.
[Localizability(LocalizationCategory.Title)]
public string? Text { get; set; }
Property Value
TextFormat
The format used to convert Value to a string.
Methods
GetValueText(double)
Returns the string representation of the specified value, using TextFormat and RoundMode.
protected virtual string GetValueText(double value)
| Parameter | Type | Description |
|---|---|---|
| value | double | The value. |
Returns
- string:
The string representation of the specified value.
OnRender(DrawingContext)
When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.
protected override void OnRender(DrawingContext drawingContext)
| Parameter | Type | Description |
|---|---|---|
| drawingContext | DrawingContext | The drawing instructions for a specific element. This context is provided to the layout system. |
Fields
AngleProperty
Defines the Angle property.
public static readonly DependencyProperty AngleProperty
FontFamilyProperty
Defines the FontFamily property.
public static readonly DependencyProperty FontFamilyProperty
FontSizeProperty
Defines the FontSize property.
public static readonly DependencyProperty FontSizeProperty
FontStyleProperty
Defines the FontStyle property.
public static readonly DependencyProperty FontStyleProperty
FontWeightProperty
Defines the FontWeight property.
public static readonly DependencyProperty FontWeightProperty
ForegroundProperty
Defines the Foreground property.
public static readonly DependencyProperty ForegroundProperty
RoundModeProperty
Defines the RoundMode property.
public static readonly DependencyProperty RoundModeProperty
TextFormatProperty
Defines the TextFormat property.
public static readonly DependencyProperty TextFormatProperty
TextProperty
Defines the Text property.
public static readonly DependencyProperty TextProperty
Inherited Members
- LinearPointerBase.ValueExtentProperty
- LinearPointerBase.CalculateValue(Point)
- LinearPointerBase.CalculateValue(double)
- LinearPointerBase.CalculateExtent(double)
- LinearPointerBase.OnRenderSizeChanged(SizeChangedInfo)
- LinearPointerBase.UpdateDisplayValue()
- LinearPointerBase.UpdateValueExtent()
- LinearPointerBase.Orientation
- LinearPointerBase.ScaleBarAscent
- LinearPointerBase.ScaleBarExtent
- LinearPointerBase.ValueExtent
- PointerBase.ValueChangingEvent
- PointerBase.ValueChangedEvent
- PointerBase.BackgroundProperty
- PointerBase.BorderBrushProperty
- PointerBase.BorderDashStyleProperty
- PointerBase.BorderWidthProperty
- PointerBase.CanDragProperty
- PointerBase.DampeningMaximumDurationProperty
- PointerBase.DampeningMinimumDurationProperty
- PointerBase.DisplayValueProperty
- PointerBase.DragCursorProperty
- PointerBase.HasDropShadowProperty
- PointerBase.IsDraggingProperty
- PointerBase.IsDraggingAnimatedProperty
- PointerBase.IsSnappingEnabledProperty
- PointerBase.IsValueChangedEventRaisedProperty
- PointerBase.IsValueChangingEventRaisedProperty
- PointerBase.PointerAscentProperty
- PointerBase.PointerExtentProperty
- PointerBase.RefreshRateProperty
- PointerBase.ScaleOffsetProperty
- PointerBase.ScalePlacementProperty
- PointerBase.SnappingIntervalProperty
- PointerBase.SnappingModeProperty
- PointerBase.ThrottledValueProperty
- PointerBase.ValueProperty
- PointerBase.CancelDrag()
- PointerBase.OnCreateAutomationPeer()
- PointerBase.OnKeyDown(KeyEventArgs)
- PointerBase.OnMouseLeftButtonDown(MouseButtonEventArgs)
- PointerBase.OnMouseLeftButtonUp(MouseButtonEventArgs)
- PointerBase.OnMouseMove(MouseEventArgs)
- PointerBase.OnValueChanged(double, double)
- PointerBase.StartDrag(MouseButtonEventArgs)
- PointerBase.UpdateValue(Point)
- PointerBase.Background
- PointerBase.BorderBrush
- PointerBase.BorderDashStyle
- PointerBase.BorderWidth
- PointerBase.CanDrag
- PointerBase.DampeningMaximumDuration
- PointerBase.DampeningMinimumDuration
- PointerBase.DisplayValue
- PointerBase.DragCursor
- PointerBase.HasDropShadow
- PointerBase.IsDragging
- PointerBase.IsDraggingAnimated
- PointerBase.IsLogarithmic
- PointerBase.IsReversed
- PointerBase.IsSnappingEnabled
- PointerBase.IsValueChangedEventRaised
- PointerBase.IsValueChangingEventRaised
- PointerBase.LogarithmicBase
- PointerBase.Maximum
- PointerBase.Minimum
- PointerBase.PointerAscent
- PointerBase.PointerExtent
- PointerBase.RefreshRate
- PointerBase.ThrottledValue
- PointerBase.ScaleOffset
- PointerBase.ScalePlacement
- PointerBase.SnappingInterval
- PointerBase.SnappingMode
- PointerBase.Value
- PointerBase.ValueChanging
- PointerBase.ValueChanged
- GaugeElement.ZIndexProperty
- GaugeElement.GetVisualChild(int)
- GaugeElement.GetZIndex(UIElement)
- GaugeElement.SetZIndex(UIElement, int)
- GaugeElement.VisualChildren
- GaugeElement.VisualChildrenCount
- GaugeElement.ZIndex