DxMemo.TextAreaCssClass Property

Specifies CSS classes applied to the Memo's text area.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

Declaration

[Parameter]
public string TextAreaCssClass { get; set; }

Property Value

Type Description
String

The text area's CSS class names separated by a space.

Remarks

Use the TextAreaCssClass property to apply pre-defined (for example, Bootstrap utilities) or custom CSS classes to the Memo's text area.

Pre-defined CSS classes

The following example applies the .bg-secondary contextual class to the text area's background color and hides the area's borders.

<DxMemo @bind-Text="TextValue" TextAreaCssClass="bg-secondary border-0"></DxMemo>

@code {
    string TextValue { get; set; } = "Prepare 2020 Marketing Plan: We need to double revenues in 2020 and our marketing strategy is going to be key here. " +
            "R&D is improving existing products and creating new products so we can deliver great AV equipment to our customers. " +
            "Robert, please make certain to create a PowerPoint presentation for the members of the executive team.";
}

Memo - Text Area CSS Class

Custom CSS classes

The following example demonstrates how to apply a custom style (my-style) to the Memo's text area:

<style>
    .my-style {
        opacity: 0.5;
        color: white;
        background-color: grey;
    }
</style>

<DxMemo @bind-Text="TextValue" TextAreaCssClass="my-style"></DxMemo>

@code {
    string TextValue { get; set; } = "Prepare 2020 Marketing Plan: We need to double revenues in 2020 and our marketing strategy is going to be key here. " +
            "R&D is improving existing products and creating new products so we can deliver great AV equipment to our customers. " +
            "Robert, please make certain to create a PowerPoint presentation for the members of the executive team.";
}

Memo - Text Area CSS Class

For more information about how to apply custom CSS classes to DevExpress Blazor components, refer to the following help topic: CSS Classes.

See Also