ClassDocumentRulerElement
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
DocumentRulerElement()
Declaration
public DocumentRulerElement()
Fields
ControllerProperty
Declaration
public static readonly RadProperty ControllerProperty
Field Value
IsReadOnlyProperty
Declaration
public static readonly RadProperty IsReadOnlyProperty
Field Value
MarkersBrushProperty
Declaration
public static readonly RadProperty MarkersBrushProperty
Field Value
MeasurementUnitProperty
Declaration
public static readonly RadProperty MeasurementUnitProperty
Field Value
Properties
AssociatedRichTextBox
Gets or sets the associated RadRichTextBox. This is a dependency property.
Declaration
public RadRichTextBox AssociatedRichTextBox { get; set; }
Property Value
The associated rich text box.
Controller
Declaration
public IDocumentRulerController Controller { get; set; }
Property Value
DefaultRulerThumbType
Declaration
public RulerThumbType DefaultRulerThumbType { get; set; }
Property Value
MeasurementUnit
Declaration
public UnitTypes MeasurementUnit { get; set; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
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
Remarks
In this method call to the Arrange method of each child must be made.
OnApplyTemplate()
Declaration
public override void OnApplyTemplate()
Overrides
OnAssociatedRichTextBoxChanged(RadRichTextBox, RadRichTextBox)
Declaration
protected virtual void OnAssociatedRichTextBoxChanged(RadRichTextBox oldRichTextBox, RadRichTextBox newRichTextBox)
Parameters
oldRichTextBox
newRichTextBox
OnMouseMove(MouseEventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
e
Overrides
OnPropertyChanging(RadPropertyChangingEventArgs)
Called before a property value is changed, allowing for validation or cancellation.
Declaration
protected override void OnPropertyChanging(RadPropertyChangingEventArgs args)
Parameters
args
The property changing event arguments.
Overrides