FrameworkElement
Provides layout, rendering, alignment, template, and drop-related properties for Spreadsheet UI elements.
Definition
Namespace:Telerik.WinControls.Spreadsheet.UI
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public class FrameworkElement : UIElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, IShortcutProvider, IStylableElement, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIElementFrameworkElement...
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 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 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 a drop-related flag. The base drop callbacks do not implement drop handling.
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 stored on this element. Changing it raises a property-change notification.
public Cursor Cursor { get; set; }
Gets the effective flow 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 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 stored transform-origin point. Changing it raises a property-change notification; this class does not apply the origin when updating its transforms.
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 does not arrange child content from it.
public VerticalAlignment VerticalContentAlignment { get; set; }
Methods
Receives a drop callback; the base implementation performs no action.
public void DragDrop(Point dropLocation, ISupportDrag dragObject)
The pointer location reported for the drop.
dragObjectISupportDragThe object being dragged.
Implements:
Receives a drag-enter callback; the base implementation performs no action.
public void DragEnter(Point currentMouseLocation, ISupportDrag dragObject)
The pointer location where the drag entered.
dragObjectISupportDragThe object being dragged.
Implements:
Receives a drag-leave callback; the base implementation performs no action.
public void DragLeave(Point oldMouseLocation, ISupportDrag dragObject)
The pointer location before the drag left.
dragObjectISupportDragThe object being dragged.
Implements:
Receives a drag-over callback. The base implementation always rejects the operation.
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:
Enables centered angle transforms and initializes the element with 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 element background and invokes its Spreadsheet painting context after the base paint operation.
Paints the element border after its children when BorderBrush is set.
protected override void PostPaintChildren(IGraphics graphics, Rectangle clipRectange, float angle, SizeF scale)
The graphics context supplied by the visual tree.
clipRectangeRectangleThe clip rectangle for the paint pass.
anglefloatThe element's current rotation angle.
scaleSizeFThe scale transform applied to the element.
Overrides: