ClassLinePrimitive
Represents a primitive element that renders lines and separators with configurable orientation and styling.
Definition
Namespace:Telerik.WinControls.Primitives
Assembly:Telerik.WinControls.dll
Syntax:
public class LinePrimitive : FillPrimitive, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IPrimitive, IFillElement, IPrimitiveElement, IShapedElement
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementBasePrimitiveFillPrimitiveLinePrimitive
Implements:
Inherited Members
Constructors
LinePrimitive()
Declaration
public LinePrimitive()
Fields
Properties
LineWidth
Gets or sets the line width in pixels.
SeparatorOrientation
Gets or sets the line orientation. Possible values are defined in the SepOrientation enumeration.
Declaration
public virtual SepOrientation SeparatorOrientation { get; set; }
Property Value
SweepAngle
Gets or sets the line angle in degrees.
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.
PaintPrimitive(IGraphics, float, SizeF)
Draws the primitive on the screen.