Class RibbonHelpers
Inheritance
System.Object
RibbonHelpers
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()
Namespace: Onbox.Revit.V8.UI
Assembly: Onbox.Revit.dll
Syntax
public class RibbonHelpers
Constructors
| Improve this Doc View SourceRibbonHelpers(ImageManager)
Declaration
public RibbonHelpers(ImageManager imageManager)
Parameters
| Type | Name | Description |
|---|---|---|
| ImageManager | imageManager |
Methods
| Improve this Doc View SourceCreatePushButton(RibbonPanel, String, String, Type, String, String)
Declaration
public PushButton CreatePushButton(RibbonPanel targetPanel, string targetName, string targetImage, Type commandType, string targetToolTip = "", string targetDescrip = "")
Parameters
| Type | Name | Description |
|---|---|---|
| Autodesk.Revit.UI.RibbonPanel | targetPanel | |
| System.String | targetName | |
| System.String | targetImage | |
| System.Type | commandType | |
| System.String | targetToolTip | |
| System.String | targetDescrip |
Returns
| Type | Description |
|---|---|
| Autodesk.Revit.UI.PushButton |
CreatePushButtonData(String, String, Type, String, String)
Declaration
public PushButtonData CreatePushButtonData(string targetName, string targetImage, Type commandType, string targetToolTip = "", string targetDescrip = "")
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | targetName | |
| System.String | targetImage | |
| System.Type | commandType | |
| System.String | targetToolTip | |
| System.String | targetDescrip |
Returns
| Type | Description |
|---|---|
| Autodesk.Revit.UI.PushButtonData |
CreateSplitButton(RibbonPanel, IList<PushButtonData>)
Declaration
public SplitButton CreateSplitButton(RibbonPanel targetPanel, IList<PushButtonData> targetPushButtons)
Parameters
| Type | Name | Description |
|---|---|---|
| Autodesk.Revit.UI.RibbonPanel | targetPanel | |
| System.Collections.Generic.IList<Autodesk.Revit.UI.PushButtonData> | targetPushButtons |
Returns
| Type | Description |
|---|---|
| Autodesk.Revit.UI.SplitButton |
CreateToggleButton(RibbonPanel, String, String, Type, String, String)
Declaration
public ToggleButton CreateToggleButton(RibbonPanel targetPanel, string targetName, string targetImage, Type commandType, string targetToolTip = "", string targetDescrip = "")
Parameters
| Type | Name | Description |
|---|---|---|
| Autodesk.Revit.UI.RibbonPanel | targetPanel | |
| System.String | targetName | |
| System.String | targetImage | |
| System.Type | commandType | |
| System.String | targetToolTip | |
| System.String | targetDescrip |
Returns
| Type | Description |
|---|---|
| Autodesk.Revit.UI.ToggleButton |