RadMenuItemLayout
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadMenuItemLayout : LayoutPanel, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementLayoutPanelRadMenuItemLayout...
Implements:
Inherited Members
Constructors
public RadMenuItemLayout()
Properties
public ArrowPrimitive ArrowPrimitive { get; }
Checkmark
RadMenuCheckmark
public RadMenuCheckmark Checkmark { get; }
public TextPrimitive Description { get; }
public ImagePrimitive ImagePrimitive { get; }
public ImageAndTextLayoutPanel InternalLayoutPanel { get; }
public TextPrimitive Shortcut { get; }
public TextPrimitive Text { get; }
public StackLayoutPanel TextPanel { get; }
public LinePrimitive TextSeparator { get; }
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:
protected override RectangleF GetClientRectangle(SizeF finalSize)
Overrides:
protected virtual bool IsLeftColumnElement(RadElement element)
protected virtual bool IsRightColumnElement(RadElement element)
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.
Raises the RadPropertyChanged event and the standard .NET PropertyChanged event to notify subscribers of property value changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The RadPropertyChangedEventArgs containing information about the property change.
Overrides: