Class RibbonPanelManager
Inheritance
System.Object
RibbonPanelManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Onbox.Revit.dll
Syntax
public class RibbonPanelManager : IRibbonPanelManager
Constructors
|
Improve this Doc
View Source
RibbonPanelManager(String, RibbonPanel, ImageManager)
Declaration
public RibbonPanelManager(string tabName, RibbonPanel panel, ImageManager imageManager)
Parameters
Type |
Name |
Description |
System.String |
tabName |
|
Autodesk.Revit.UI.RibbonPanel |
panel |
|
ImageManager |
imageManager |
|
Methods
|
Improve this Doc
View Source
Declaration
public PushButton AddPushButton<TExternalCommand>(string name, string image = null, string tooltip = null, string description = null)
where TExternalCommand : class, IExternalCommand, new()
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
image |
|
System.String |
tooltip |
|
System.String |
description |
|
Returns
Type |
Description |
Autodesk.Revit.UI.PushButton |
|
Type Parameters
Name |
Description |
TExternalCommand |
|
|
Improve this Doc
View Source
Declaration
public PushButton AddPushButton<TExternalCommand, TAvailability>(string name, string image = null, string tooltip = null, string description = null)
where TExternalCommand : class, IExternalCommand, new()
where TAvailability : class, IExternalCommandAvailability, new()
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
image |
|
System.String |
tooltip |
|
System.String |
description |
|
Returns
Type |
Description |
Autodesk.Revit.UI.PushButton |
|
Type Parameters
Name |
Description |
TExternalCommand |
|
TAvailability |
|
|
Improve this Doc
View Source
AddSeparator()
Declaration
public void AddSeparator()
|
Improve this Doc
View Source
AddSlideOut()
Declaration
public void AddSlideOut()
|
Improve this Doc
View Source
Declaration
public SplitButton AddSplitButton(List<PushButtonData> pushButtonDataList)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<Autodesk.Revit.UI.PushButtonData> |
pushButtonDataList |
|
Returns
Type |
Description |
Autodesk.Revit.UI.SplitButton |
|
|
Improve this Doc
View Source
AddStackedItems(RibbonItemData, RibbonItemData)
Declaration
public IList<RibbonItem> AddStackedItems(RibbonItemData item1, RibbonItemData item2)
Parameters
Type |
Name |
Description |
Autodesk.Revit.UI.RibbonItemData |
item1 |
|
Autodesk.Revit.UI.RibbonItemData |
item2 |
|
Returns
Type |
Description |
System.Collections.Generic.IList<Autodesk.Revit.UI.RibbonItem> |
|
|
Improve this Doc
View Source
AddStackedItems(RibbonItemData, RibbonItemData, RibbonItemData)
Declaration
public IList<RibbonItem> AddStackedItems(RibbonItemData item1, RibbonItemData item2, RibbonItemData item3)
Parameters
Type |
Name |
Description |
Autodesk.Revit.UI.RibbonItemData |
item1 |
|
Autodesk.Revit.UI.RibbonItemData |
item2 |
|
Autodesk.Revit.UI.RibbonItemData |
item3 |
|
Returns
Type |
Description |
System.Collections.Generic.IList<Autodesk.Revit.UI.RibbonItem> |
|
|
Improve this Doc
View Source
Declaration
public ToggleButton AddToggleButton<TExternalCommand>(string name, string image = null, string tooltip = null, string description = null)
where TExternalCommand : class, IExternalCommand, new()
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
image |
|
System.String |
tooltip |
|
System.String |
description |
|
Returns
Type |
Description |
Autodesk.Revit.UI.ToggleButton |
|
Type Parameters
Name |
Description |
TExternalCommand |
|
|
Improve this Doc
View Source
Declaration
public ToggleButton AddToggleButton<TExternalCommand, TAvailability>(string name, string image = null, string tooltip = null, string description = null)
where TExternalCommand : class, IExternalCommand, new()
where TAvailability : class, IExternalCommandAvailability, new()
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
image |
|
System.String |
tooltip |
|
System.String |
description |
|
Returns
Type |
Description |
Autodesk.Revit.UI.ToggleButton |
|
Type Parameters
Name |
Description |
TExternalCommand |
|
TAvailability |
|
|
Improve this Doc
View Source
Declaration
public PushButtonData CreatePushButtonData<TExternalCommand>(string name, string image = null, string tooltip = null, string description = null)
where TExternalCommand : class, IExternalCommand, new()
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
image |
|
System.String |
tooltip |
|
System.String |
description |
|
Returns
Type |
Description |
Autodesk.Revit.UI.PushButtonData |
|
Type Parameters
Name |
Description |
TExternalCommand |
|
|
Improve this Doc
View Source
Declaration
public PushButtonData CreatePushButtonData<TExternalCommand, TAvailability>(string name, string image = null, string tooltip = null, string description = null)
where TExternalCommand : class, IExternalCommand, new()
where TAvailability : class, IExternalCommandAvailability, new()
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
image |
|
System.String |
tooltip |
|
System.String |
description |
|
Returns
Type |
Description |
Autodesk.Revit.UI.PushButtonData |
|
Type Parameters
Name |
Description |
TExternalCommand |
|
TAvailability |
|
|
Improve this Doc
View Source
GetPanel()
Declaration
public RibbonPanel GetPanel()
Returns
Type |
Description |
Autodesk.Revit.UI.RibbonPanel |
|
|
Improve this Doc
View Source
GetTabName()
Declaration
public string GetTabName()
Returns
Type |
Description |
System.String |
|
Implements