# Ribbon Object

> The type of the ribbon property of the TXTextControl object. Provides functions and properties for manipulating the control's ribbon bar.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 24.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Ribbon Object
- **457 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/ribbon/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/ribbon/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/ribbon/llms-full.txt

---

### Description

The type of the [ribbon property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/ribbon-property/llms-full.txt) of the TXTextControl object. Provides functions and properties for manipulating the control's ribbon bar.

### Syntax

```javascript
{
   selectedTab: <string>,
   minimize: <function>,
   expand: <function>
}
```

### Examples

The following example demonstrates `Ribbon` in a practical document-editing workflow. The type of the ribbon property of the TXTextControl object. Provides functions and properties for manipulating the control's ribbon bar.

```javascript
function inspectRibbon(ribbon) {
    console.log("selected tab:", ribbon.selectedTab);
    console.log("minimize:", ribbon.minimize);
    console.log("expand:", ribbon.expand);
}
```

---

## In This Section

- [Javascript: Ribbon.expand Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/ribbon/expand-method/llms-full.txt): Expands the ribbon bar if it is currently minimized.
- [Javascript: Ribbon.minimize Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/ribbon/minimize-method/llms-full.txt): Minimizes the ribbon bar so that only the tab names stay visible.
- [Javascript: Ribbon.selectedTab Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/ribbon/selectedtab-property/llms-full.txt): Gets or sets the currently selected ribbon tab name. Possible values are: "tabDefault", "tabInsert", "tabPageLayout", "tabMailings", "tabView", "tabTableLayout", "tabObjectFormat", "tabShapeFormat", "tabPermissions", "tabFormula" and "tabChartFormatting".

---

## Nearby

- **Previous:** [RequestViewModeCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestviewmodecallback/llms-full.txt)
- **Next:** [Javascript: Ribbon.expand Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/ribbon/expand-method/llms-full.txt)
