RadDiagramRuler
Represents ruler for RadDiagram.
Definition
Namespace:Telerik.Windows.Controls.Diagrams.Extensions
Assembly:Telerik.Windows.Controls.Diagrams.Extensions.dll
Syntax:
[TelerikToolboxCategory("Diagram")]
public class RadDiagramRuler : Control
Inheritance: objectRadDiagramRuler
Constructors
Initializes a new instance of the RadDiagramRuler class.
public RadDiagramRuler()
Fields
DiagramProperty
DependencyProperty
Identifies the Diagram dependency property.
public static readonly DependencyProperty DiagramProperty
MeasurementUnitProperty
DependencyProperty
Identifies the MeasurementUnit dependency property.
public static readonly DependencyProperty MeasurementUnitProperty
MouseIndicatorStyleProperty
DependencyProperty
Identifies the MouseIndicatorStyle dependency property.
public static readonly DependencyProperty MouseIndicatorStyleProperty
MouseIndicatorVisibilityProperty
DependencyProperty
Identifies the MouseIndicatorVisibility dependency property.
public static readonly DependencyProperty MouseIndicatorVisibilityProperty
PlacementProperty
DependencyProperty
Identifies the Placement dependency property.
public static readonly DependencyProperty PlacementProperty
ScaleDefinitionsProperty
DependencyProperty
Identifies the ScaleDefinitions dependency property.
public static readonly DependencyProperty ScaleDefinitionsProperty
StartOffsetProperty
DependencyProperty
Identifies the StartOffset dependency property.
public static readonly DependencyProperty StartOffsetProperty
Properties
Gets or sets the diagram.
public RadDiagram Diagram { get; set; }
Gets or sets the measurement unit.
public MeasurementUnit MeasurementUnit { get; set; }
MouseIndicatorStyle
Style
Gets or sets the style of mouse position indicator.
public Style MouseIndicatorStyle { get; set; }
MouseIndicatorVisibility
Visibility
Gets or sets the visibility of mouse position indicator.
public Visibility MouseIndicatorVisibility { get; set; }
Placement
Dock
Gets or sets the placement.
public Dock Placement { get; set; }
Gets or sets the scale definitions.
public DiagramScaleDefinitionCollection ScaleDefinitions { get; set; }
Gets or sets start offset for the scale (ticks). Provided value is summed with the beginning of Diagram viewport and result is used as a start for the ruler scale.
public double StartOffset { get; set; }
Methods
Gets the container type for item.
protected virtual ContainerTypeIdentifier GetContainerTypeForItemOverride(RulerScaleItem scaleItem)
The scale data item.
Returns:When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application.
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Forces full refresh of the ruler (ticks and labels are recreated).
public void Refresh()