New to Telerik UI for WPFStart a free 30-day trial

Represents ruler for RadDiagram.

Definition

Namespace:Telerik.Windows.Controls.Diagrams.Extensions

Assembly:Telerik.Windows.Controls.Diagrams.Extensions.dll

Syntax:

C#
[TelerikToolboxCategory("Diagram")]
public class RadDiagramRuler : Control

Inheritance: objectRadDiagramRuler

Constructors

Initializes a new instance of the RadDiagramRuler class.

C#
public RadDiagramRuler()

Fields

DiagramProperty

DependencyProperty

Identifies the Diagram dependency property.

C#
public static readonly DependencyProperty DiagramProperty

MeasurementUnitProperty

DependencyProperty

Identifies the MeasurementUnit dependency property.

C#
public static readonly DependencyProperty MeasurementUnitProperty

MouseIndicatorStyleProperty

DependencyProperty

Identifies the MouseIndicatorStyle dependency property.

C#
public static readonly DependencyProperty MouseIndicatorStyleProperty

Identifies the MouseIndicatorVisibility dependency property.

C#
public static readonly DependencyProperty MouseIndicatorVisibilityProperty

PlacementProperty

DependencyProperty

Identifies the Placement dependency property.

C#
public static readonly DependencyProperty PlacementProperty

ScaleDefinitionsProperty

DependencyProperty

Identifies the ScaleDefinitions dependency property.

C#
public static readonly DependencyProperty ScaleDefinitionsProperty

StartOffsetProperty

DependencyProperty

Identifies the StartOffset dependency property.

C#
public static readonly DependencyProperty StartOffsetProperty

Properties

Gets or sets the diagram.

C#
public RadDiagram Diagram { get; set; }

Gets or sets the measurement unit.

C#
public MeasurementUnit MeasurementUnit { get; set; }

Gets or sets the style of mouse position indicator.

C#
public Style MouseIndicatorStyle { get; set; }

Gets or sets the visibility of mouse position indicator.

C#
public Visibility MouseIndicatorVisibility { get; set; }

Gets or sets the placement.

C#
public Dock Placement { get; set; }

Gets or sets the scale definitions.

C#
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.

C#
public double StartOffset { get; set; }

Methods

Gets the container type for item.

C#
protected virtual ContainerTypeIdentifier GetContainerTypeForItemOverride(RulerScaleItem scaleItem)
Parameters:scaleItemRulerScaleItem

The scale data item.

Returns:

ContainerTypeIdentifier

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.

C#
public override void OnApplyTemplate()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Forces full refresh of the ruler (ticks and labels are recreated).

C#
public void Refresh()