Class 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.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadMenuHeaderItem : RadMenuItemBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IButtonControl, IImageElement, IHierarchicalItem, IItemsOwner, ISiteProvider
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
|
System.String
text
The text to display in the header item. |
Properties
BorderPrimitive
Gets the BorderPrimitive of this RadMenuHeaderItem.
Declaration
public BorderPrimitive BorderPrimitive { get; }
Property Value
|
BorderPrimitive
|
FillPrimitive
Gets the FillPrimitive of this RadMenuHeaderItem.
Declaration
public FillPrimitive FillPrimitive { get; }
Property Value
|
FillPrimitive
|
ImageIndex
Gets or sets the index value of the image that is displayed on the item.
Declaration
public override int ImageIndex { get; set; }
Property Value
|
System.Int32
|
Overrides
ImageKey
Gets or sets the key accessor for the image in the ImageList.
Declaration
public override string ImageKey { get; set; }
Property Value
|
System.String
|
Overrides
ImagePrimitive
Gets the ImagePrimitive of this RadMenuHeaderItem.
Declaration
public ImagePrimitive ImagePrimitive { get; }
Property Value
|
ImagePrimitive
|
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
|
System.Boolean
Always false for header items. |
Overrides
TextPrimitive
Gets the TextPrimitive of this RadMenuHeaderItem.
Declaration
public TextPrimitive TextPrimitive { get; }
Property Value
|
TextPrimitive
|
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.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
|
System.Drawing.SizeF
finalSize
The final area within which this element should arrange itself and its children. |
Returns
|
System.Drawing.SizeF
The actual size used by this element after arrangement. |
Overrides
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
|
System.ComponentModel.PropertyDescriptor
property
The property descriptor to check for serialization. |
Returns
|
System.Nullable<System.Boolean>
True if the property should be serialized; false if it should use default value; null for default behavior. |