RibbonBarGroup
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class RibbonBarGroup : WebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IRibbonBarSubComponent, IXmlSerializable
Inheritance: objectControlWebControlRibbonBarGroup
Implements:
Inherited Members
Constructors
public RibbonBarGroup()
Properties
Gets or sets the url to an image displayed when the group is collapsed.
public string CollapsedImageUrl { get; set; }
URL. The default value is empty string.
Use the property to set the image for a collapsed group.
public IRibbonBarSubComponent Container { get; }
Determines if the group's launcher will be available or not.
public bool EnableLauncher { get; set; }
Boolean. The default value is true.
Use the property to enable/disable the group's launcher button.
Gets a RibbonBarItemCollection object that contains the items of the group.
[PersistenceMode(PersistenceMode.InnerProperty)]
public RibbonBarItemCollection Items { get; }
A RibbonBarItemCollection that contains the items of the group. By default the collection is empty (the group has no items).
Use the Items property to access the items of the group. You can also use the Items property to manage the items. You can add, remove or modify items from the Items collection.
public WebControl ParentWebControl { get; }
Implements:
Gets a reference to the RibbonBar instance.
public RadRibbonBar RibbonBar { get; }
RadRibbonBar instance. If not set, the returned is null.
Implements:
Use the property to get the RibbonBar instance.
Gets a reference to the RibbonBarTab instance holding this group.
public RibbonBarTab Tab { get; }
RibbonBarTab instance. If not set, the returned is null.
Use the property to get the RibbonBarTab holding the group.
Gets or sets the text of the group.
public string Text { get; set; }
The text of a group. The default value is empty string.
Use the property to set the displayed text of the group.
Methods
Searches the RibbonBarGroup for the first RibbonBarButton which Value property is equal to the specified value.
public RibbonBarButton FindButtonByValue(string value)
The Value to search for.
Returns:A RibbonBarButton whose Value property is equal to the specified value. If a button is not found, null (Nothing in Visual Basic) is returned.
Searches the RibbonBarGroup for the first RibbonBarMenuItem which Value property is equal to the specified value.
public RibbonBarMenuItem FindMenuItemByValue(string value)
The Value to search for.
Returns:A RibbonBarMenuItem whose Value property is equal to the specified value. If a menu item is not found, null (Nothing in Visual Basic) is returned.
Searches the RibbonBarGroup for the first RibbonBarToggleButton which Value property is equal to the specified value.
public RibbonBarToggleButton FindToggleButtonByValue(string value)
The Value to search for.
Returns:A RibbonBarToggleButton whose Value property is equal to the specifed value. If a toggle button is not found, null (Nothing in Visual Basic) is returned.
Returns all functional Items in the Group. This excludes ButtonStrips and ToggleLists.
public List<RibbonBarItem> GetFunctionalItems()
A list with functional Items.
Returns functionl Items in the Group depending on their visibility.
public List<RibbonBarItem> GetFunctionalItems(bool visibleOnly)
Tells the method whether to filter out invisible functionl Items.
Returns:All functionl Items in the Group if visibleOnly is false.
If visibleOnly is true, returns only the visible Items.
Gets all RibbonBarToggleList items in the Group.
Returns strictly the Visible functionl Items in the Group.
public List<RibbonBarItem> GetVisibleFunctionalItems()
All visible functional Items in the Group.
public override void RenderBeginTag(HtmlTextWriter writer)
Overrides:
protected override void RenderContents(HtmlTextWriter writer)
Overrides: