ClassRadDiagramRuler
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
RadDiagramRuler()
Initializes a new instance of the RadDiagramRuler class.
Declaration
public RadDiagramRuler()
Fields
DiagramProperty
Identifies the Diagram dependency property.
Declaration
public static readonly DependencyProperty DiagramProperty
Field Value
DependencyProperty
MeasurementUnitProperty
Identifies the MeasurementUnit dependency property.
Declaration
public static readonly DependencyProperty MeasurementUnitProperty
Field Value
DependencyProperty
MouseIndicatorStyleProperty
Identifies the MouseIndicatorStyle dependency property.
Declaration
public static readonly DependencyProperty MouseIndicatorStyleProperty
Field Value
DependencyProperty
MouseIndicatorVisibilityProperty
Identifies the MouseIndicatorVisibility dependency property.
Declaration
public static readonly DependencyProperty MouseIndicatorVisibilityProperty
Field Value
DependencyProperty
PlacementProperty
Identifies the Placement dependency property.
Declaration
public static readonly DependencyProperty PlacementProperty
Field Value
DependencyProperty
ScaleDefinitionsProperty
Identifies the ScaleDefinitions dependency property.
Declaration
public static readonly DependencyProperty ScaleDefinitionsProperty
Field Value
DependencyProperty
StartOffsetProperty
Identifies the StartOffset dependency property.
Declaration
public static readonly DependencyProperty StartOffsetProperty
Field Value
DependencyProperty
Properties
Diagram
Gets or sets the diagram.
MeasurementUnit
Gets or sets the measurement unit.
Declaration
public MeasurementUnit MeasurementUnit { get; set; }
Property Value
MouseIndicatorStyle
Gets or sets the style of mouse position indicator.
Declaration
public Style MouseIndicatorStyle { get; set; }
Property Value
Style
MouseIndicatorVisibility
Gets or sets the visibility of mouse position indicator.
Declaration
public Visibility MouseIndicatorVisibility { get; set; }
Property Value
Visibility
Placement
Gets or sets the placement.
Declaration
public Dock Placement { get; set; }
Property Value
Dock
ScaleDefinitions
Gets or sets the scale definitions.
Declaration
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists")]
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public DiagramScaleDefinitionCollection ScaleDefinitions { get; set; }
Property Value
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.
Methods
GetContainerTypeForItemOverride(RulerScaleItem)
Gets the container type for item.
Declaration
protected virtual ContainerTypeIdentifier GetContainerTypeForItemOverride(RulerScaleItem scaleItem)
Parameters
scaleItem
The scale data item.
Returns
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
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
Declaration
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
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
Refresh()
Forces full refresh of the ruler (ticks and labels are recreated).
Declaration
public void Refresh()