RadMenuSeparatorItem
Represents a menu separation item. Use it to separate logically unrelated items in the menu.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadMenuSeparatorItem : RadMenuItemBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IButtonControl, IImageElement, IHierarchicalItem, IItemsOwner, ISiteProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadButtonItemRadMenuItemBaseRadMenuSeparatorItem...
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadMenuSeparatorItem class.
public RadMenuSeparatorItem()
Fields
Identifies the property that offsets the line from the menu's left-column content.
public static RadProperty LineOffsetProperty
Identifies the property that controls the separator line's thickness.
public static RadProperty LineWidthProperty
Identifies the property that controls the separator line's orientation.
public static RadProperty OrientationProperty
Identifies the property that shows or hides the separator line.
public static RadProperty ShowFillProperty
Identifies the property bound to the separator's line sweep angle.
public static RadProperty SweepAngleProperty
Identifies the property that controls the visibility of the separator's text element.
public static RadProperty TextVisibilityProperty
Properties
Gets or sets the offset of the location where the draw of the line should start
public virtual float LineOffset { get; set; }
Gets a value indicating whether the RadMenuSeparator can be selected.
public override bool Selectable { get; }
Overrides:
Gets or sets the Telerik.WinControls.SepOrientation?text=separator ++++++++++++++++orientation. Possible values are members of SepOrientation enumeration.
public virtual SepOrientation SeparatorOrientation { get; set; }
Gets or set the sweep angle in degrees.
public virtual int SweepAngle { get; set; }
Gets or sets a value indicating whether the text should be visible.
public ElementVisibility TextVisibility { get; set; }
Methods
Creates the separator line and optional text element, binding their appearance to this item.
protected override void CreateChildElements()
Overrides:
Hides separator text by default and assigns the theme class used by separator styles.
protected override void InitializeFields()
Overrides:
Keeps the line primitive's visibility synchronized with ShowFillProperty.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Overrides:
Omits the default theme class from serialized output and delegates other properties to the base implementation.
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
The property being checked for serialization.
Returns:bool?
false for the default class name; otherwise, the base implementation's result for the property.
Overrides: