New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

This partial class RibbonBarMenu that inherits RibbonBarMenuBaseItem.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class RibbonBarMenu : RibbonBarMenuBaseItem, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IRibbonBarSubComponent, IXmlSerializable

Inheritance: objectControlWebControlRibbonBarItemRibbonBarClickableItemRibbonBarMenuBaseItemRibbonBarMenu...

Implements: IAttributeAccessorIComponentIControlBuilderAccessorIControlDesignerAccessorIDataBindingsAccessorIDisposableIExpressionsAccessorIParserAccessorIRibbonBarSubComponentIUrlResolutionServiceIXmlSerializable...

Inherited Members RibbonBarMenuBaseItem.Render(HtmlTextWriter)RibbonBarClickableItem.GetCssClass()RibbonBarClickableItem.AddAttributesToRender(HtmlTextWriter)RibbonBarClickableItem.RenderContents(HtmlTextWriter)RibbonBarClickableItem.RenderBeginTag(HtmlTextWriter)RibbonBarClickableItem.ImageUrlRibbonBarClickableItem.AccessKeyRibbonBarClickableItem.ToolTipRibbonBarClickableItem.DisabledImageUrlRibbonBarClickableItem.ImageUrlLargeRibbonBarClickableItem.DisabledImageUrlLargeRibbonBarClickableItem.SizeRibbonBarClickableItem.ImageRenderingModeRibbonBarClickableItem.TextRibbonBarClickableItem.ImageAltTextRibbonBarClickableItem.QuickAccessRibbonBarClickableItem.TagKeyRibbonBarItem.ContainerRibbonBarItem.ParentRibbonBarItem.RibbonBarRibbonBarItem.GroupRibbonBarItem.RendererWebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.LoadViewState(object)WebControl.TrackViewState()WebControl.MergeStyle(Style)WebControl.RenderEndTag(HtmlTextWriter)WebControl.SaveViewState()WebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.HeightWebControl.IsEnabledWebControl.SupportsDisabledAttributeWebControl.SkinIDWebControl.TabIndexWebControl.TagNameWebControl.WidthControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind()Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.OnInit(EventArgs)Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.OnLoad(EventArgs)Control.OnPreRender(EventArgs)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.OnBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.CreateChildControls()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RibbonBarMenu()

Properties

Gets a RibbonBarMenuItemCollection object that contains the items of the Menu.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public RibbonBarMenuItemCollection Items { get; }
Property Value:

A RibbonBarMenuItemCollection that contains the items of the Menu. By default the collection is empty (the Menu has no items).

Use the Items property to access the items of the Menu. You can also use the Items property to manage the items. You can add, remove or modify items from the Items collection.

Example:
cs-api-definition
menu.Items[0].Text = "SampleMenuItemText";

Gets the type of the RibbonBarItem. Usefull when iterating through the Items collection of RibbonBarGroup

C#
public override RibbonBarItemType ItemType { get; }

Overrides: RibbonBarItem.ItemType

Gets or sets the parent web control.

C#
public override WebControl ParentWebControl { get; }
Property Value:

The parent web control.

Overrides: RibbonBarItem.ParentWebControl

Methods

C#
protected override IRenderer CreateControlRenderer()
Returns:

IRenderer

Overrides: RibbonBarItem.CreateControlRenderer()

Searches the RibbonBarMenu for the first RibbonBarMenuItem which Value property is equal to the specified value.

C#
public RibbonBarMenuItem FindMenuItemByValue(string value)
Parameters:valuestring

The Value to search for.

Returns:

RibbonBarMenuItem

A RibbonBarMenuItem whose Value property is equal to the specifed value. If a button is not found, null (Nothing in Visual Basic) is returned.

Returns the Visible menu items.

C#
public IList<RibbonBarMenuItem> GetVisibleItems()
Returns:

IList<RibbonBarMenuItem>

All visible items in the Menu.

Reads the XML.

C#
public void ReadXml(XmlReader reader)
Parameters:readerXmlReader

The reader.

C#
protected virtual void ReadXmlForMenuItems(XmlReader reader)
Parameters:readerXmlReader
C#
protected void WriteXml(XmlWriter writer)
Parameters:writerXmlWriter
C#
protected virtual void WriteXmlForMenuItems(XmlWriter writer)
Parameters:writerXmlWriter