Class CircularLabelTick
Inherited Members
Namespace: Syncfusion.Windows.Gauge
Assembly: Syncfusion.Gauge.WPF.dll
Syntax
public class CircularLabelTick : TickBase
Constructors
CircularLabelTick()
Initializes a new instance of the CircularLabelTick class.
Declaration
public CircularLabelTick()
Fields
CalculateFormulaProperty
Identifies the CalculateFormula dependency property.
Declaration
public static readonly DependencyProperty CalculateFormulaProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
FontFamilyProperty
Identifies the FontFamily dependency property.
Declaration
public static readonly DependencyProperty FontFamilyProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
FontSizeProperty
Identifies the FontSize dependency property.
Declaration
public static readonly DependencyProperty FontSizeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
FontWeightProperty
Identifies the FontWeight dependency property.
Declaration
public static readonly DependencyProperty FontWeightProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IncludeFirstValueProperty
Identifies the IncludeFirstValue dependency property.
Declaration
public static readonly DependencyProperty IncludeFirstValueProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsCalculateFormulaEnabledProperty
Identifies the IsCalculateFormulaEnabled dependency property.
Declaration
public static readonly DependencyProperty IsCalculateFormulaEnabledProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsLogarithmicProperty
Identifies the IsLogarithmic dependency property.
Declaration
public static readonly DependencyProperty IsLogarithmicProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsRelativeAngleProperty
Identifies the IsRelativeAngle dependency property.
Declaration
public static readonly DependencyProperty IsRelativeAngleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LogBaseProperty
Identifies the LogBase dependency property.
Declaration
public static readonly DependencyProperty LogBaseProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
NumberFormatInfoProperty
Identifies the NumberFormatInfo dependency property.
Declaration
public static readonly DependencyProperty NumberFormatInfoProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
CalculateFormula
Gets or sets the Formula string that can be used to calculate the label values. This is a dependency property.
Declaration
public string CalculateFormula { get; set; }
Property Value
Type | Description |
---|---|
System.String | Type: System.String Default CalculateFormula is string.Empty. |
See Also
FontFamily
Gets or sets the font family for the labels. This is a dependency property.
Declaration
public FontFamily FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.FontFamily | Type: FontFamily |
See Also
FontSize
Gets or sets the font size for the labels. This is a dependency property.
Declaration
public double FontSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 10. |
See Also
FontWeight
Gets or sets the font weight for the labels. This is a dependency property.
Declaration
public FontWeight FontWeight { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.FontWeight | Type: FontWeight |
See Also
IncludeFirstValue
Gets or sets a value indicating whether to include first tick value. This is a dependency property.
Declaration
public bool IncludeFirstValue { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean |
See Also
IsCalculateFormulaEnabled
Gets or sets a value indicating whether IsCalculateFormula value is true or false, so that label values calculated using a formula were displayed on the scale.This is a dependency property.
Declaration
public bool IsCalculateFormulaEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default IsCalculateFormulaEnabled is "False". |
See Also
IsLogarithmic
Gets or sets a value indicating whether IsLogarithmic value is true or false, so that log values can be displayed on the scale.This is a dependency property.
Declaration
public bool IsLogarithmic { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default IsLogarithmic is "False". |
See Also
IsRelativeAngle
Gets or sets a value indicating whether the label's angle is relative to that of the scale's angle
Declaration
public bool IsRelativeAngle { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default IsRelativeAngle is "False". |
See Also
LogBase
Gets or sets the LogBase value that can be displayed in the scale. This is a dependency property.
Declaration
public double LogBase { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default LogBase is 10. |
See Also
NumberFormatInfo
Gets or sets the Custom's NumberFormatInfo value This is a dependency property.
Declaration
public NumberFormatInfo NumberFormatInfo { get; set; }
Property Value
Type | Description |
---|---|
System.Globalization.NumberFormatInfo | Type: System.Globalization.NumberFormatInfo Default value is "null". |
Methods
MeasureOverride(Size)
Measures the size in layout required for child elements and determines a size for the element.
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | constraint | The available size that this element can give to child elements. |
Returns
Type | Description |
---|---|
System.Windows.Size | The size that this element determines it needs during layout. |
Remarks
Assuming the Scale's Maximum value will be the longest string, the required size is calculated based on the longest string's size.
OnCalculateFormulaChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises CalculateFormulaChanged event.
Declaration
protected virtual void OnCalculateFormulaChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized property is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The System.EventArgs that contains the event data. |
OnIsCalculateFormulaEnabled(DependencyPropertyChangedEventArgs)
Updates property value cache and raises IsCalculateFormulaEnabledChanged event.
Declaration
protected virtual void OnIsCalculateFormulaEnabled(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnIsLogarithmicChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises IsLogarithmicChanged event.
Declaration
protected virtual void OnIsLogarithmicChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnIsRelativeAngleChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises IsRelativeAngleChanged event.
Declaration
protected virtual void OnIsRelativeAngleChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnLogBaseChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises LogBaseChanged event.
Declaration
protected virtual void OnLogBaseChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnNumberFormatInfoChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises NumberFormatInfoChanged event.
Declaration
protected virtual void OnNumberFormatInfoChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnRender(DrawingContext)
Participates in rendering operations that are directed by the layout system.
Declaration
protected override void OnRender(DrawingContext drawingContext)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | drawingContext | The drawing instructions for a specific element. |
Remarks
Number of Segments that are possible of "interval" length is calculated by the variable ratio. Angleinterval calculates the angle interval between two such segments. As each tick is placed the angleToPlace and the labelvalues are incremented by angleinterval and interval respectively.If IsLogarithmic is set to True, the label values are converted into Log values before getting displayed. The labels are then rotated to the appropriate angle and to appropriate location(based on ScalePlacement).
Events
CalculateFormulaChanged
Event that is raised when CalculateFormula property is changed.
Declaration
public event PropertyChangedCallback CalculateFormulaChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
IsCalculateFormulaEnabledChanged
Event that is raised when IsCalculateFormulaEnabled property is changed.
Declaration
public event PropertyChangedCallback IsCalculateFormulaEnabledChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
IsLogarithmicChanged
Event that is raised when IsLogarithmic property is changed.
Declaration
public event PropertyChangedCallback IsLogarithmicChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
IsRelativeAngleChanged
Event that is raised when IsRelativeAngle property is changed.
Declaration
public event PropertyChangedCallback IsRelativeAngleChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
LogBaseChanged
Event that is raised when LogBase property is changed.
Declaration
public event PropertyChangedCallback LogBaseChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
NumberFormatInfoChanged
Event that is raised when NumberFormatInfo property is changed.
Declaration
public event PropertyChangedCallback NumberFormatInfoChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |