RadMenuButtonItem
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
public RadMenuButtonItem()
Properties
public override bool AutoToolTip { get; set; }
Overrides:
Provides a reference to the ButtonElement element in the menu item.
[Browsable(true)]
public RadButtonElement ButtonElement { 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:
public override string ToolTipText { get; set; }
Overrides:
Methods
Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.
protected override SizeF ArrangeOverride(SizeF 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:
In this method call to the Arrange method of each child must be made.
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Disposes managed resources, including the associated image if it's not shared with other items.
protected override void DisposeManagedResources()
Overrides:
Initializes the internal state fields for the button item, setting default values for shared image and capture behavior.
protected override void InitializeFields()
Overrides:
Measures the space required by the RadElement
Used by the layout system.
protected override SizeF MeasureOverride(SizeF 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:
In this method call to the Measure method of each child must be made.
Determines whether the specified property should be serialized, with special handling for the SvgImageXml property.
public override bool? ShouldSerializeProperty(PropertyDescriptor 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: