ClassRadMenuSeparatorItem
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
RadMenuSeparatorItem()
Initializes a new instance of the RadMenuSeparatorItem class.
Declaration
public RadMenuSeparatorItem()
Fields
TextVisibilityProperty
Declaration
public static RadProperty TextVisibilityProperty
Field Value
Properties
LineOffset
Gets or sets the offset of the location where the draw of the line should start
LineWidth
Gets or sets separators width in pixels.
Selectable
Gets a value indicating whether the RadMenuSeparator can be selected.
Declaration
public override bool Selectable { get; }
Property Value
Overrides
SeparatorOrientation
Gets or sets the Telerik.WinControls.SepOrientation?text=separator ++++++++++++++++orientation. Possible values are members of SepOrientation enumeration.
Declaration
public virtual SepOrientation SeparatorOrientation { get; set; }
Property Value
SweepAngle
Gets or set the sweep angle in degrees.
TextVisibility
Gets or sets a value indicating whether the text should be visible.
Declaration
public ElementVisibility TextVisibility { get; set; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
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
Remarks
In this method call to the Arrange method of each child must be made.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
InitializeFields()
Initializes the internal state fields for the button item, setting default values for shared image and capture behavior.
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)
Handles property changes, specifically releasing the pressed state when the button is disabled.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
The RadPropertyChangedEventArgs containing event data.
Overrides
ShouldSerializeProperty(PropertyDescriptor)
Determines whether the specified property should be serialized, with special handling for the SvgImageXml property.
Declaration
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
Parameters
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