DocumentRulerElement
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class DocumentRulerElement : ContentControl, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementContentControlDocumentRulerElement...
Implements:
Inherited Members
Constructors
public DocumentRulerElement()
Fields
public static readonly RadProperty ControllerProperty
public static readonly RadProperty IsReadOnlyProperty
public static readonly RadProperty MarkersBrushProperty
public static readonly RadProperty MeasurementUnitProperty
Properties
Gets or sets the associated RadRichTextBox. This is a dependency property.
public RadRichTextBox AssociatedRichTextBox { get; set; }
The associated rich text box.
public IDocumentRulerController Controller { get; set; }
public bool CreateHorizontalRuler { get; set; }
public bool CreateVerticalRuler { get; set; }
public RulerThumbType DefaultRulerThumbType { get; set; }
public int HorizontalRulerHeight { get; set; }
public bool IsReadOnly { get; set; }
public Brush MarkersBrush { get; set; }
public int MarkersContainerThickness { get; set; }
public UnitTypes MeasurementUnit { get; set; }
public int VerticalRulerWidth { get; set; }
Methods
Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.
protected override SizeF ArrangeOverride(SizeF finalSize)
The size that is available for element.
Returns:The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.
Overrides:
In this method call to the Arrange method of each child must be made.
public override void OnApplyTemplate()
Overrides:
protected virtual void OnAssociatedRichTextBoxChanged(RadRichTextBox oldRichTextBox, RadRichTextBox newRichTextBox)
Called before a property value is changed, allowing for validation or cancellation.
protected override void OnPropertyChanging(RadPropertyChangingEventArgs args)
The property changing event arguments.
Overrides: