RowColumnHeadingBase
Provides a base for the row and column heading controls.
Definition
Namespace:Telerik.WinForms.Controls.Spreadsheet.Worksheets.Margins
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public abstract class RowColumnHeadingBase : UIElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIElementRowColumnHeadingBase...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the RowColumnHeadingBase class.
protected RowColumnHeadingBase()
Fields
Identifies the dependency property that stores the FullySelectedFill color.
public static readonly RadProperty FullySelectedFillProperty
Identifies the dependency property that stores the heading's selection state and refreshes its fill when the state changes.
public static readonly RadProperty HeadingStateProperty
Identifies the dependency property that stores the HoverFill color.
public static readonly RadProperty HoverFillProperty
Identifies the dependency property that stores the NormalFill color.
public static readonly RadProperty NormalFillProperty
Identifies the dependency property used by RectangleStrokeBrush.
public static readonly RadProperty RectangleStrokeProperty
Identifies the dependency property used by RectangleStrokeThickness.
public static readonly RadProperty RectangleStrokeThicknessProperty
Identifies the dependency property that stores the SelectedFill color.
public static readonly RadProperty SelectedFillProperty
The thumb length.
protected static readonly double ThumbLength
Properties
Gets or sets the size of the current heading.
public double CurrentHeadingSize { get; set; }
The size of the current heading.
Gets the first resize thumb.
protected ResizeThumb FirstResizeThumb { get; }
The first resize thumb.
Gets or sets the fully selected fill brush.
public Color FullySelectedFill { get; set; }
The fully selected fill brush.
Gets or sets the state of the heading.
public RowColumnHeadingState HeadingState { get; }
The state of the heading.
Gets or sets the hover fill brush.
public Color HoverFill { get; set; }
The hover fill brush.
Gets or sets the the max size of heading.
public double MaxHeadingSize { get; set; }
The the max size of heading.
Gets or sets the normal fill brush.
public Color NormalFill { get; set; }
The normal fill brush.
Gets or sets the size of the previous heading.
public double PreviousHeadingSize { get; set; }
The size of the previous heading.
Gets or sets the rectangle stroke brush.
public Color RectangleStrokeBrush { get; set; }
The rectangle stroke brush.
Gets or sets the rectangle stroke thickness.
public double RectangleStrokeThickness { get; set; }
The rectangle stroke thickness.
Gets the second resize thumb.
protected ResizeThumb SecondResizeThumb { get; }
The second resize thumb.
Gets or sets the selected fill brush.
public Color SelectedFill { get; set; }
The selected fill brush.
Methods
Applies the thumbs properties.
protected abstract void ApplyThumbsProperties()
Determines whether the pointer is inside thumb.
protected abstract bool IsPointInsideThumb(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Returns:True if the pointer is inside thumb.
Raises the event.
protected virtual void OnResizeCompleted(RowColumnHeadingResizeEventArgs e)
The RowColumnHeadingResizeEventArgs instance containing the event data.
Raises the event.
protected virtual void OnResizeDelta(RowColumnHeadingResizeEventArgs e)
The RowColumnHeadingResizeEventArgs instance containing the event data.
Raises the event.
protected virtual void OnResizeStarted(RowColumnHeadingResizeEventArgs e)
The RowColumnHeadingResizeEventArgs instance containing the event data.
Draws the heading text centered in the element bounds after the base painting operation.
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
The graphics context used to measure and draw the text.
anglefloatThe rotation angle passed to the base painting operation.
scaleSizeFThe scale passed to the base painting operation.
Overrides:
Events
Occurs when the resize is completed.
public event EventHandler<RowColumnHeadingResizeEventArgs> ResizeCompleted
Occurs when the resize delta is changed.
public event EventHandler<RowColumnHeadingResizeEventArgs> ResizeDelta
Occurs when the resize is started.
public event EventHandler<RowColumnHeadingResizeEventArgs> ResizeStarted