Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Product Class Structure
   [Expand]Getting Started
   [Expand]RichEditControl Document
   [Expand]Fields
    Text Formatting
    Import and Export
   [Expand]Page Layout
    Printing
    Spell Checking
    AutoCorrect
    Mail Merge
    Restrictions and Protection
    Syntax Highlighting
    Traversing the Document
   [Expand]Visual Elements
    Services
    Events
    Commands
   [Expand]Member Tables
    Keyboard Shortcuts
    HTML Tag Interpretation
   [Collapse]Examples
    [Expand]Files
    [Expand]Text
    [Expand]Formatting
    [Expand]Styles
    [Expand]Lists
    [Expand]Pictures
    [Expand]Text Boxes
    [Expand]Tables
    [Expand]Layout
    [Expand]Automation
    [Expand]Search and Replace
    [Expand]Mail Merge
    [Expand]Spell Check
    [Expand]Export-Import
    [Expand]Printing
    [Expand]Protection
    [Collapse]User Interface Customization
      How to: Hide or Show ScrollBars and Rulers
      How to: Customize the Search Form
      How to: Customize the Hyperlink Form
      How to: Add Custom Menu Items (Spelling Suggestions) to the Context Menu
      How to: Assign Custom Action to the Group Caption Button
      How to: Customize and Hide the Popup Menu
    [Expand]Miscellaneous
    [Expand]Commands
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Assign Custom Action to the Group Caption Button

The Ribbon interface groups containing commands which provide- the RichEditControl functionality, utilize the Caption Button element of the RibbonPageGroup in their own way. So, you should not use the RibbonPageGroup.ShowCaptionButton property to change the button's visibility. The ShowCaptionButtonMode property is implemented instead.

Set the ShowCaptionButtonMode value to DevExpress.XtraBars.Commands.Ribbon.ShowCaptionButtonMode.Hide, to hide the caption button. If the value is set to DevExpress.XtraBars.Commands.Ribbon.ShowCaptionButtonMode.Show, the default action assigned to the button is not executed, and you can handle the RibbonPageGroup.CaptionButtonClick event to perform custom tasks.

The default value is DevExpress.XtraBars.Commands.Ribbon.ShowCaptionButtonMode.Auto, and it enables the default action along with the execution of the CaptionButtonClick event handler. The following code snippet illustrates the use of the CaptionButtonClick event for the Paragraph Ribbon Group.

Expanded See Also

How would you rate this topic?​​​​​​​