# Vertical Scrollbars

## **Overview**

The **SiticoneTextArea** control includes a **built-in vertical scrollbar**, allowing users to **navigate long text input effortlessly**. This feature **prevents the need for resizing** and ensures a **clean, efficient layout**.

✅ **Auto-enabled vertical scrollbars** – No additional configuration required.\
✅ **Efficient text navigation** – Users can scroll through long content smoothly.\
✅ **No horizontal scrollbar by default** – Keeps the UI **clean and readable**.\
✅ **Scrollbars appear only when needed** – Prevents **unnecessary clutter**.

***

### **Behavior**

| Feature                         | Description                                                                   |
| ------------------------------- | ----------------------------------------------------------------------------- |
| **Vertical Scrollbars Enabled** | Scrollbars appear **automatically** when content overflows.                   |
| **No Horizontal Scrollbars**    | Ensures **better readability** by avoiding horizontal scrolling.              |
| **Adjustable Scroll Behavior**  | Developers can **modify scrollbar settings** using the `ScrollBars` property. |
| **Auto-Hide Feature**           | Scrollbars **only appear when necessary**, keeping the UI clean.              |

📌 **Use Case:** **SiticoneTextArea** efficiently handles **long text input** for **chat logs, document editors, debugging consoles, and more**.

***

### **Usage Example**

#### **Enable Both Vertical & Horizontal Scrollbars (If Needed)**

```csharp
SiticoneTextArea textArea = new SiticoneTextArea();
textArea.ScrollBars = ScrollBars.Both; // Enable both vertical and horizontal scrolling
this.Controls.Add(textArea);
```

📌 **Behavior:**\
✔ **Vertical scrolling remains default** for long text.\
✔ **Horizontal scrolling is enabled manually** (if necessary).

***

### **Best Practices**

| Best Practice                              | Description                                                            |
| ------------------------------------------ | ---------------------------------------------------------------------- |
| ✅ **Keep control height reasonable**       | Encourage **proper scrolling behavior** instead of excessive resizing. |
| ✅ **Avoid horizontal scrolling**           | It can **reduce readability** and cause a poor user experience.        |
| ✅ **Use word wrap**                        | Ensure text **remains within the visible area** for better UX.         |
| ✅ **Provide instructions or placeholders** | Guide users when expecting **large text input**.                       |

***

### **Other Scenarios Where Vertical Scrollbars Are Useful**

| Use Case                         | Description                                                               |
| -------------------------------- | ------------------------------------------------------------------------- |
| 📌 **Chat Applications**         | Allows users to **scroll through message history** efficiently.           |
| 📌 **Log Displays**              | View **system logs, debugging output, or event logs** without truncation. |
| 📌 **Document Editors**          | Handle **large text inputs** in note-taking or writing applications.      |
| 📌 **Forms with Detailed Input** | Collect **long user feedback or reports** without UI constraints.         |

***

### **Summary**

The **SiticoneTextArea** control **automatically enables vertical scrollbars**, making it **effortless to handle large text input** without resizing the control. This feature enhances **usability** in scenarios like **chat logs, document editors, and debugging consoles**.

### **Conclusion**

With **built-in scrolling support**, developers can **ensure smooth navigation** through large text content while keeping the UI **clean and user-friendly**. 🚀


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-siticoneframework.gitbook.io/home/net-framework-or-net-core-ui/input-controls/siticone-textarea/vertical-scrollbars.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
