Class RadSeparator
Represents a separator control which is displayed as a line separating one group of controls from another. The RadSeparator is a simple wrapper of the SeparatorElement class and provides both horizontal and vertical orientation support with optional shadow effects.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadSeparator : RadControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Constructors
RadSeparator()
Initializes a new instance of the RadSeparator class with default settings and minimum size.
Declaration
public RadSeparator()
Properties
AutoSize
This property is hidden from the designer and should not be used with RadSeparator.
Declaration
public override bool AutoSize { get; set; }
Property Value
|
System.Boolean
|
Overrides
DefaultSize
Gets the default size for the RadSeparator control when first created.
Declaration
protected override Size DefaultSize { get; }
Property Value
|
System.Drawing.Size
|
ForeColor
This property is hidden and not relevant for RadSeparator as it consists of multiple visual elements with separate color settings.
Declaration
public override Color ForeColor { get; set; }
Property Value
|
System.Drawing.Color
|
Overrides
Orientation
Gets or sets the orientation of the separator line, either horizontal or vertical.
Declaration
public Orientation Orientation { get; set; }
Property Value
|
System.Windows.Forms.Orientation
|
SeparatorElement
Gets the instance of SeparatorElement wrapped by this control. SeparatorElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadSeparator.
Declaration
public SeparatorElement SeparatorElement { get; }
Property Value
|
SeparatorElement
|
ShadowOffset
Gets or sets the offset position of the shadow effect when ShowShadow is enabled. The offset is specified in pixels relative to the main separator line.
Declaration
public Point ShadowOffset { get; set; }
Property Value
|
System.Drawing.Point
|
ShowShadow
Gets or sets a value indicating whether to display a shadow effect under the separator line.
Declaration
public bool ShowShadow { get; set; }
Property Value
|
System.Boolean
|
Text
This property is not relevant for RadSeparator and is hidden from the designer.
Declaration
public override string Text { get; set; }
Property Value
|
System.String
|
Overrides
Methods
CreateChildItems(RadElement)
Creates the child elements that make up the RadSeparator control, specifically the SeparatorElement that handles the visual representation.
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
|
RadElement
parent
The parent RadElement that will contain the separator element |