ClassArrowPrimitive
Represents a primitive element that renders directional arrows.
Definition
Namespace:Telerik.WinControls.Primitives
Assembly:Telerik.WinControls.dll
Syntax:
public class ArrowPrimitive : BasePrimitive, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IPrimitive
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementBasePrimitiveArrowPrimitive
Implements:
Inherited Members
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
Fields
DirectionProperty
Declaration
public static readonly RadProperty DirectionProperty
Field Value
UseSmoothPaintProperty
Declaration
public static readonly RadProperty UseSmoothPaintProperty
Field Value
Properties
Direction
Gets or sets the arrow direction. The possible values are contained in the ArrowDirection enumeration: up, left, right, and bottom.
Declaration
public ArrowDirection Direction { get; set; }
Property Value
StretchHorizontally
Declaration
public override bool StretchHorizontally { get; set; }
Property Value
Overrides
StretchVertically
Declaration
public override bool StretchVertically { get; set; }
Property Value
Overrides
UseSmoothPaint
Determines whether to paint the arrow using anti-aliasing. Default value is false.
Methods
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the space required by the RadElement
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
availableSize
The size that is available to the RadElement. The available size can be infinity (to take the full size of the element)
Returns
The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides
Remarks
In this method call to the Measure method of each child must be made.
OnPropertyChanged(RadPropertyChangedEventArgs)
Called when a property value has changed, allowing for custom response to property changes.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
The property changed event arguments.
Overrides
PaintPrimitive(IGraphics, float, SizeF)
Draws the primitive on the screen.