Class ArrowPrimitive
Represents a primitive element that renders directional arrows.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Primitives
Assembly: Telerik.WinControls.dll
Syntax
public class ArrowPrimitive : BasePrimitive, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IPrimitive
Remarks
ArrowPrimitive provides rendering capabilities for arrows pointing in various directions (up, down, left, right). It's commonly used in dropdown buttons, scroll bars, menus, and other UI elements that require directional indicators.
The primitive extends BasePrimitive and supports various arrow styles, sizes, and colors. It automatically handles arrow direction and scales appropriately based on the available space.
The class defines minimum sizes for horizontal and vertical arrows to ensure proper visual representation even in constrained layouts.
Constructors
ArrowPrimitive()
Declaration
public ArrowPrimitive()
ArrowPrimitive(ArrowDirection)
Initializes a new instance of the ArrowPrimitive class using the ArrowDirection enumeration. Possible directions are up, bottom, left, and right.
Declaration
public ArrowPrimitive(ArrowDirection arrowDirection)
Parameters
ArrowDirection
arrowDirection
|
Fields
DirectionProperty
MinHorizontalSize
Declaration
public static readonly Size MinHorizontalSize
Field Value
System.Drawing.Size
|
MinVerticalSize
Declaration
public static readonly Size MinVerticalSize
Field Value
System.Drawing.Size
|
UseSmoothPaintProperty
Properties
Direction
Gets or sets the arrow direction. The possible values are contained in the ArrowDirection enumeration: up, left, right, and bottom.
Declaration
[RadPropertyDefaultValue("Direction", typeof(ArrowPrimitive))]
public ArrowDirection Direction { get; set; }
Property Value
ArrowDirection
|
StretchHorizontally
Declaration
public override bool StretchHorizontally { get; set; }
Property Value
System.Boolean
|
Overrides
StretchVertically
Declaration
public override bool StretchVertically { get; set; }
Property Value
System.Boolean
|
Overrides
UseSmoothPaint
Determines whether to paint the arrow using anti-aliasing. Default value is false.
Declaration
[RadPropertyDefaultValue("UseSmoothPaint", typeof(ArrowPrimitive))]
public bool UseSmoothPaint { get; set; }
Property Value
System.Boolean
|
Methods
InitializeFields()
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
PaintPrimitive(IGraphics, Single, SizeF)
Draws the primitive on the screen.
Declaration
public override void PaintPrimitive(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.Single
angle
|
System.Drawing.SizeF
scale
|