menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TextWrapElement - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TextWrapElement

    Defines which elements have text wrapping applied in the MultiColumnComboBox component.

    Inheritance
    System.Object
    TextWrapElement
    Namespace: Syncfusion.Blazor.MultiColumnComboBox
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class TextWrapElement : Enum
    Remarks

    Text wrapping allows long text to be displayed across multiple lines within cells, improving readability and ensuring all content is visible. Different wrapping strategies can be applied based on specific UI requirements and content characteristics.

    • BothDefault option. Applies text wrapping to both header and content cells.
    • HeaderApplies text wrapping only to header cells, keeping content cells on single lines.
    • ContentApplies text wrapping only to content cells, keeping header cells on single lines.
    Examples

    The following example demonstrates how to configure text wrapping:

    <SfMultiColumnComboBox TValue="string" TItem="Employee" 
                           DataSource="@Employees"
                           AllowTextWrap="true"
                           TextWrapElement="TextWrapElement.Content">
    </SfMultiColumnComboBox>

    Fields

    Both

    Applies text wrapping to both column headers and cell content throughout the MultiColumnComboBox.

    Declaration
    public const TextWrapElement Both
    Field Value
    Type
    TextWrapElement
    Remarks

    This is the default behavior that ensures comprehensive text visibility across all elements. Both headers and data cells will wrap their content across multiple lines when necessary, providing optimal content accessibility.

    Content

    Applies text wrapping only to content cells in the MultiColumnComboBox.

    Declaration
    public const TextWrapElement Content
    Field Value
    Type
    TextWrapElement
    Remarks

    This mode is ideal when data content may be lengthy but headers should remain concise. Header cells will display on single lines while content cells can wrap across multiple lines for full visibility.

    Header

    Applies text wrapping only to column header cells in the MultiColumnComboBox.

    Declaration
    public const TextWrapElement Header
    Field Value
    Type
    TextWrapElement
    Remarks

    This mode is useful when header text tends to be longer but content should remain compact. Content cells will display on single lines, potentially with overflow handling, while headers can expand vertically as needed.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved