LinearTickLabelBase Class
Represents the base class for linear tick labels.
public abstract class LinearTickLabelBase : LinearTickBase, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, ILogicalParent, IVisualParent
- Inheritance:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement GaugeElement TickBase LinearTickBase Object
- Implements:
- ILogicalParent IVisualParent
Remarks
For detailed documentation on this control's features and how to use them, please see the Gauge documentation topics.
Constructors
LinearTickLabelBase()
protected LinearTickLabelBase()
Properties
FontFamily
Gets or sets the font family. This is a dependency property.
public FontFamily FontFamily { get; set; }
Property Value
- System.Windows.Media.FontFamily:
The font family. The default value is
SystemFonts.MessageFontFamily
.
FontSize
Gets or sets the size of the font. This is a dependency property.
public Unit FontSize { get; set; }
Property Value
- Unit:
The size of the font. The default value is
SystemFonts.MessageFontSize
.
FontStyle
Gets or sets the font style. This is a dependency property.
public FontStyle FontStyle { get; set; }
Property Value
- System.Windows.FontStyle:
The font style. The default value is
SystemFonts.MessageFontStyle
.
FontWeight
Gets or sets the font weight. This is a dependency property.
public FontWeight FontWeight { get; set; }
Property Value
- System.Windows.FontWeight:
The font weight. The default value is
SystemFonts.MessageFontWeight
.
Foreground
Gets or sets the foreground brush. This is a dependency property.
public Brush Foreground { get; set; }
Property Value
- System.Windows.Media.Brush:
The foreground brush. The default value is
WhiteSmoke
.
RoundMode
Gets or sets a RoundMode indicating how to round the values displayed. This is a dependency property.
public RoundMode RoundMode { get; set; }
Property Value
TextFormat
Gets or sets the format used to convert Value
to a string. This is a dependency property.
public string TextFormat { get; set; }
Property Value
- System.String:
The format used to convert
Value
to a string. The default value is"{0:G}"
.
Methods
GetValues()
Gets the values to be rendered by this tick label element.
protected abstract DoubleCollection GetValues()
Returns
- System.Windows.Media.DoubleCollection:
Zero or more values to be rendered by this tick label element.
GetValueText(Double)
Gets the string representation of the specified value, using TextFormat and RoundMode.
protected virtual string GetValueText(double value)
Parameter | Type | Description |
---|---|---|
value | System.Double | The value. |
Returns
- System.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 | System.Windows.Media.DrawingContext | The drawing instructions for a specific element. This context is provided to the layout system. |
Fields
FontFamilyProperty
Identifies the FontFamily dependency property. This field is read-only.
public static readonly DependencyProperty FontFamilyProperty
FontSizeProperty
Identifies the FontSize dependency property. This field is read-only.
public static readonly DependencyProperty FontSizeProperty
FontStyleProperty
Identifies the FontStyle dependency property. This field is read-only.
public static readonly DependencyProperty FontStyleProperty
FontWeightProperty
Identifies the FontWeight dependency property. This field is read-only.
public static readonly DependencyProperty FontWeightProperty
ForegroundProperty
Identifies the Foreground dependency property. This field is read-only.
public static readonly DependencyProperty ForegroundProperty
RoundModeProperty
Identifies the RoundMode dependency property. This field is read-only.
public static readonly DependencyProperty RoundModeProperty
TextFormatProperty
Identifies the TextFormat dependency property. This field is read-only.
public static readonly DependencyProperty TextFormatProperty
Inherited Members
- LinearTickBase.CalculateExtent(Double)
- LinearTickBase.Orientation
- LinearTickBase.ScaleBarAscent
- LinearTickBase.ScaleBarExtent
- TickBase.AngleProperty
- TickBase.BorderBrushProperty
- TickBase.BorderDashStyleProperty
- TickBase.BorderWidthProperty
- TickBase.HasDropShadowProperty
- TickBase.IntervalOriginProperty
- TickBase.MajorIntervalProperty
- TickBase.MajorIntervalTypeProperty
- TickBase.MinorIntervalProperty
- TickBase.MinorIntervalTypeProperty
- TickBase.ScaleOffsetProperty
- TickBase.ScalePlacementProperty
- TickBase.Angle
- TickBase.BorderBrush
- TickBase.BorderDashStyle
- TickBase.BorderWidth
- TickBase.HasDropShadow
- TickBase.IntervalOrigin
- TickBase.IsLogarithmic
- TickBase.IsReversed
- TickBase.LogarithmicBase
- TickBase.MajorInterval
- TickBase.MajorIntervalType
- TickBase.Maximum
- TickBase.Minimum
- TickBase.MinorInterval
- TickBase.MinorIntervalType
- TickBase.ScaleOffset
- TickBase.ScalePlacement
- GaugeElement.ZIndexProperty
- GaugeElement.ILogicalParent.AddLogicalChild(Object)
- GaugeElement.ILogicalParent.RemoveLogicalChild(Object)
- GaugeElement.IVisualParent.AddVisualChild(Visual)
- GaugeElement.IVisualParent.RemoveVisualChild(Visual)
- GaugeElement.GetVisualChild(Int32)
- GaugeElement.GetZIndex(UIElement)
- GaugeElement.SetZIndex(UIElement, Int32)
- GaugeElement.VisualChildren
- GaugeElement.VisualChildrenCount
- GaugeElement.ZIndex
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()