RadMenuHeaderItem
Represents a non-interactive header item within a RadDropDownMenu that displays text and images to provide visual grouping and organization of menu content without supporting selection or user interaction.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadMenuHeaderItem : RadMenuItemBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IButtonControl, IImageElement, IHierarchicalItem, IItemsOwner, ISiteProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadButtonItemRadMenuItemBaseRadMenuHeaderItem...
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadMenuHeaderItem class with empty text.
public RadMenuHeaderItem()
Initializes a new instance of the RadMenuHeaderItem class with the specified text.
public RadMenuHeaderItem(string text)
The text to display in the header item.
Properties
Gets the BorderPrimitive of this RadMenuHeaderItem.
[Browsable(true)]
public BorderPrimitive BorderPrimitive { get; }
Gets the FillPrimitive of this RadMenuHeaderItem.
[Browsable(true)]
public FillPrimitive FillPrimitive { get; }
Gets or sets the index value of the image that is displayed on the item.
[Browsable(true)]
[RelatedImageList("MenuElement.ElementTree.Control.ImageList")]
public override int ImageIndex { get; set; }
Overrides:
Gets or sets the key accessor for the image in the ImageList.
[Browsable(true)]
[RelatedImageList("MenuElement.ElementTree.Control.ImageList")]
public override string ImageKey { get; set; }
Overrides:
Gets the ImagePrimitive of this RadMenuHeaderItem.
[Browsable(true)]
public ImagePrimitive ImagePrimitive { get; }
Gets a value indicating whether this RadMenuHeaderItem can be selected. Always returns false since header items are non-interactive.
public override bool Selectable { get; }
Always false for header items.
Overrides:
Gets the TextPrimitive of this RadMenuHeaderItem.
[Browsable(true)]
public TextPrimitive TextPrimitive { get; }
Methods
Arranges the child elements within the specified final size, positioning image and text elements according to menu layout constraints and RTL support.
Creates the child elements that comprise the visual structure of the RadMenuHeaderItem. Initializes fill, border, image, and text primitives with proper bindings and layout settings.
protected override void CreateChildElements()
Overrides:
Initializes the fields and properties specific to the RadMenuHeaderItem. Sets the class name and disables mouse input handling for the header.
protected override void InitializeFields()
Overrides:
Determines whether the specified property should be serialized during design-time or persistence operations. Customizes serialization behavior for the Class property.
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
The property descriptor to check for serialization.
Returns:bool?
True if the property should be serialized; false if it should use default value; null for default behavior.
Overrides: