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
public static RadProperty LineOffsetProperty
public static RadProperty LineWidthProperty
public static RadProperty OrientationProperty
public static RadProperty ShowFillProperty
public static RadProperty SweepAngleProperty
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
Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.
protected override SizeF ArrangeOverride(SizeF finalSize)
The size that is available for element.
Returns:The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.
Overrides:
In this method call to the Arrange method of each child must be made.
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Initializes the internal state fields for the button item, setting default values for shared image and capture behavior.
protected override void InitializeFields()
Overrides:
Measures the space required by the RadElement
Used by the layout system.
protected override SizeF MeasureOverride(SizeF 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:
In this method call to the Measure method of each child must be made.
Handles property changes, specifically releasing the pressed state when the button is disabled.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The RadPropertyChangedEventArgs containing event data.
Overrides:
Determines whether the specified property should be serialized, with special handling for the SvgImageXml property.
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
The PropertyDescriptor representing the property to check for serialization.
Returns:bool?
True if the property should be serialized, false if it should not be serialized, or null for default behavior.
Overrides: