Class
RadDiagramRuler

Represents ruler for RadDiagram.

Definition

Namespace:Telerik.Windows.Controls.Diagrams.Extensions

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

Syntax:

cs-api-definition
[TelerikToolboxCategory("Diagram")]
public class RadDiagramRuler : Control

Inheritance: objectRadDiagramRuler

Constructors

RadDiagramRuler()

Initializes a new instance of the RadDiagramRuler class.

Declaration

cs-api-definition
public RadDiagramRuler()

Fields

DiagramProperty

Identifies the Diagram dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DiagramProperty

Field Value

DependencyProperty

MeasurementUnitProperty

Identifies the MeasurementUnit dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MeasurementUnitProperty

Field Value

DependencyProperty

MouseIndicatorStyleProperty

Identifies the MouseIndicatorStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MouseIndicatorStyleProperty

Field Value

DependencyProperty

MouseIndicatorVisibilityProperty

Identifies the MouseIndicatorVisibility dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MouseIndicatorVisibilityProperty

Field Value

DependencyProperty

PlacementProperty

Identifies the Placement dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PlacementProperty

Field Value

DependencyProperty

ScaleDefinitionsProperty

Identifies the ScaleDefinitions dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ScaleDefinitionsProperty

Field Value

DependencyProperty

StartOffsetProperty

Identifies the StartOffset dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StartOffsetProperty

Field Value

DependencyProperty

Properties

Diagram

Gets or sets the diagram.

Declaration

cs-api-definition
public RadDiagram Diagram { get; set; }

Property Value

RadDiagram

MeasurementUnit

Gets or sets the measurement unit.

Declaration

cs-api-definition
public MeasurementUnit MeasurementUnit { get; set; }

Property Value

MeasurementUnit

MouseIndicatorStyle

Gets or sets the style of mouse position indicator.

Declaration

cs-api-definition
public Style MouseIndicatorStyle { get; set; }

Property Value

Style

MouseIndicatorVisibility

Gets or sets the visibility of mouse position indicator.

Declaration

cs-api-definition
public Visibility MouseIndicatorVisibility { get; set; }

Property Value

Visibility

Placement

Gets or sets the placement.

Declaration

cs-api-definition
public Dock Placement { get; set; }

Property Value

Dock

ScaleDefinitions

Gets or sets the scale definitions.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists")]
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public DiagramScaleDefinitionCollection ScaleDefinitions { get; set; }

Property Value

DiagramScaleDefinitionCollection

StartOffset

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.

Declaration

cs-api-definition
public double StartOffset { get; set; }

Property Value

double

Methods

GetContainerTypeForItemOverride(RulerScaleItem)

Gets the container type for item.

Declaration

cs-api-definition
protected virtual ContainerTypeIdentifier GetContainerTypeForItemOverride(RulerScaleItem scaleItem)

Parameters

scaleItem

RulerScaleItem

The scale data item.

Returns

ContainerTypeIdentifier

OnApplyTemplate()

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.

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCreateAutomationPeer()

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

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

The type-specific AutomationPeer implementation.

OnInitialized(EventArgs)

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

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

Refresh()

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

Declaration

cs-api-definition
public void Refresh()