ClassRadMenuButtonItem
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadMenuButtonItem : RadMenuItemBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IButtonControl, IImageElement, IHierarchicalItem, IItemsOwner, ISiteProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadButtonItemRadMenuItemBaseRadMenuButtonItem
Implements:
Inherited Members
Constructors
RadMenuButtonItem()
Declaration
public RadMenuButtonItem()
Properties
AutoToolTip
Declaration
public override bool AutoToolTip { get; set; }
Property Value
Overrides
ButtonElement
Provides a reference to the ButtonElement element in the menu item.
Declaration
[Browsable(true)]
public RadButtonElement ButtonElement { 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
ToolTipText
Declaration
public override string ToolTipText { get; set; }
Property Value
Overrides
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
DisposeManagedResources()
Disposes managed resources, including the associated image if it's not shared with other items.
Declaration
protected override void DisposeManagedResources()
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.
OnClick(EventArgs)
Handles the click event, managing dialog result assignment and ensuring proper form behavior for button controls.
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