OnTime Extension SDK Documentation
OnTime.Extensions.SDK Namespace / RibbonButton Class / RibbonButton Constructor
The visible display text that appears below this ribbon button.
Additional display text that appears within the tooltip this ribbon button.
The primary visible image that appears within this button's hitbox.
The secondary visible image that appears whenever this button is pinned to the quick access toolbar.
The action that is invoked whenever this button is clicked in the user interface.



In This Topic
    RibbonButton Constructor
    In This Topic
    Initializes a new RibbonButton instance for usage within an OnTime 360 extension.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal caption As String, _
       ByVal description As String, _
       ByVal largeImage As Image, _
       ByVal smallImage As Image, _
       ByVal buttonCallback As RibbonButton.ButtonCallback _
    )
    'Usage
     
    
    Dim caption As String
    Dim description As String
    Dim largeImage As Image
    Dim smallImage As Image
    Dim buttonCallback As RibbonButton.ButtonCallback
     
    Dim instance As New RibbonButton(caption, description, largeImage, smallImage, buttonCallback)
    public RibbonButton( 
       string caption,
       string description,
       Image largeImage,
       Image smallImage,
       RibbonButton.ButtonCallback buttonCallback
    )
    public:
    RibbonButton( 
       String^ caption,
       String^ description,
       Image^ largeImage,
       Image^ smallImage,
       RibbonButton.ButtonCallback^ buttonCallback
    )

    Parameters

    caption
    The visible display text that appears below this ribbon button.
    description
    Additional display text that appears within the tooltip this ribbon button.
    largeImage
    The primary visible image that appears within this button's hitbox.
    smallImage
    The secondary visible image that appears whenever this button is pinned to the quick access toolbar.
    buttonCallback
    The action that is invoked whenever this button is clicked in the user interface.
    Requirements

    Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11, Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019, Windows Server 2022

    See Also