FrameworkElement
Provides layout, rendering, alignment, template, and drop-related properties for UI elements in the RichTextEditor presentation layer.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class FrameworkElement : UIElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElement...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes the element with painting enabled.
public FrameworkElement()
Fields
Identifies the Telerik property-system registration for the cursor.
public static readonly RadProperty CursorProperty
Identifies the Telerik property-system registration for the foreground color.
public static readonly RadProperty ForegroundProperty
Identifies the Telerik property-system registration for the element height.
public static readonly RadProperty HeightProperty
Identifies the Telerik property-system registration for the render-transform origin.
public static readonly RadProperty RenderTransformOriginProperty
Identifies the Telerik property-system registration for the render transform.
public static readonly RadProperty RenderTransformProperty
Identifies the Telerik property-system registration for the element width.
public static readonly RadProperty WidthProperty
Properties
Gets the height of the element's current control bounding rectangle after layout.
public double ActualHeight { get; }
Gets the width of the element's current control bounding rectangle after layout.
public double ActualWidth { get; }
Gets or sets the value reported by this element's drop-support interface. The default drag callbacks do not process drop operations.
public bool AllowDrop { get; set; }
Implements:
Gets or sets the brush used to fill the element's bounds during painting.
public Brush Background { get; set; }
Gets or sets the brush used to draw the element's border. A non-null brush also reserves
BorderThickness inside the client rectangle.
public Brush BorderBrush { get; set; }
Gets or sets the cursor value associated with this element. Changing it raises a property-change notification.
public Cursor Cursor { get; set; }
Gets the effective text direction from the element's RightToLeft setting.
public virtual FlowDirection FlowDirection { get; }
Gets or sets the element height. A non-NaN value is rounded to an integer for the underlying WinForms size and disables AutoSize.
public double Height { get; set; }
Gets or sets the stored horizontal alignment value. The base layout implementation only notifies observers and does not use it to arrange the element.
public HorizontalAlignment HorizontalAlignment { get; set; }
Gets or sets the stored horizontal content-alignment value. The base layout implementation only notifies observers and does not arrange child content from it.
public HorizontalAlignment HorizontalContentAlignment { get; set; }
Gets or sets a mouse-over border thickness value and notifies observers when it changes. This class does not render a mouse-over border from this property.
public Thickness MouseOverBorderThickness { get; set; }
Gets or sets the transform-origin point stored by this element. Changing it raises a property-change notification.
public Point RenderTransformOrigin { get; set; }
Gets or sets the stored vertical alignment value. The base layout implementation only notifies observers and does not use it to arrange the element.
public VerticalAlignment VerticalAlignment { get; set; }
Gets or sets the stored vertical content-alignment value. The base layout implementation only notifies observers and does not arrange child content from it.
public VerticalAlignment VerticalContentAlignment { get; set; }
Methods
Handles a completed drop; the base implementation performs no action.
public void DragDrop(Point dropLocation, ISupportDrag dragObject)
The location where the object was dropped.
dragObjectISupportDragThe object being dropped.
Implements:
Handles a drag entering the element; the base implementation performs no action.
public void DragEnter(Point currentMouseLocation, ISupportDrag dragObject)
The pointer location when the drag entered.
dragObjectISupportDragThe object being dragged.
Implements:
Handles a drag leaving the element; the base implementation performs no action.
public void DragLeave(Point oldMouseLocation, ISupportDrag dragObject)
The pointer location when the drag left.
dragObjectISupportDragThe object being dragged.
Implements:
Determines whether a drag object can be dropped; the base implementation always rejects the drop.
public bool DragOver(Point currentMouseLocation, ISupportDrag dragObject)
The current pointer location.
dragObjectISupportDragThe object being dragged.
Returns:Implements:
Reduces the client rectangle by the border thickness when a border brush is set and clamps its dimensions to zero or greater.
protected override RectangleF GetClientRectangle(SizeF finalSize)
The final size assigned to the element.
Returns:The content rectangle inside the element's border.
Overrides:
Initializes the base element fields, enables centered angle transforms, and sets a transparent background.
protected override void InitializeFields()
Overrides:
Applies the template once before delegating measurement to the base element.
Marks the template as applied. The first measure pass calls this method; overrides should call the base implementation so it is not called again on later measure passes.
public virtual void OnApplyTemplate()
Paints the background when present and invokes UI-element painting with a GDI+ painting context.
Draws the four border edges after the child elements when a border brush is set.
protected override void PostPaintChildren(IGraphics graphics, Rectangle clipRectange, float angle, SizeF scale)
The graphics context used by the visual tree.
clipRectangeRectangleThe clipping rectangle supplied by the visual tree.
anglefloatThe element's rotation angle.
scaleSizeFThe scale applied to the element.
Overrides: