ClassRadMenuHeaderItem
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
RadMenuHeaderItem()
Initializes a new instance of the RadMenuHeaderItem class with empty text.
Declaration
public RadMenuHeaderItem()
RadMenuHeaderItem(string)
Initializes a new instance of the RadMenuHeaderItem class with the specified text.
Declaration
public RadMenuHeaderItem(string text)
Parameters
text
The text to display in the header item.
Properties
BorderPrimitive
Gets the BorderPrimitive of this RadMenuHeaderItem.
Declaration
[Browsable(true)]
public BorderPrimitive BorderPrimitive { get; }
Property Value
FillPrimitive
Gets the FillPrimitive of this RadMenuHeaderItem.
Declaration
[Browsable(true)]
public FillPrimitive FillPrimitive { get; }
Property Value
ImageIndex
Gets or sets the index value of the image that is displayed on the item.
Declaration
[Browsable(true)]
[RelatedImageList("MenuElement.ElementTree.Control.ImageList")]
public override int ImageIndex { get; set; }
Property Value
Overrides
ImageKey
Gets or sets the key accessor for the image in the ImageList.
Declaration
[Browsable(true)]
[RelatedImageList("MenuElement.ElementTree.Control.ImageList")]
public override string ImageKey { get; set; }
Property Value
Overrides
ImagePrimitive
Gets the ImagePrimitive of this RadMenuHeaderItem.
Declaration
[Browsable(true)]
public ImagePrimitive ImagePrimitive { get; }
Property Value
Selectable
Gets a value indicating whether this RadMenuHeaderItem can be selected. Always returns false since header items are non-interactive.
Declaration
public override bool Selectable { get; }
Property Value
Always false for header items.
Overrides
TextPrimitive
Gets the TextPrimitive of this RadMenuHeaderItem.
Declaration
[Browsable(true)]
public TextPrimitive TextPrimitive { get; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges the child elements within the specified final size, positioning image and text elements according to menu layout constraints and RTL support.
CreateChildElements()
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.
Declaration
protected override void CreateChildElements()
Overrides
InitializeFields()
Initializes the fields and properties specific to the RadMenuHeaderItem. Sets the class name and disables mouse input handling for the header.
Declaration
protected override void InitializeFields()
Overrides
ShouldSerializeProperty(PropertyDescriptor)
Determines whether the specified property should be serialized during design-time or persistence operations. Customizes serialization behavior for the Class property.
Declaration
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
Parameters
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