Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxBorderSettings Class

Contains the element’s border settings.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public class DxBorderSettings :
    DxSettingsComponent<BorderSettingsModel>

#Remarks

Use DxBorderSettings objects to customize border settings of the following components:

To display a target component’s borders, add a DxBorderSettings object to component markup and enable the DxBorderSettings.Visible property.

#Component-Level Settings

The DxBorderSettings component allows you to specify the following properties at the component level:

Color | Opacity
Specify the border color and its transparency.
LineStyle | Width
Allow you to customize style and width of the border line.
Visible
Specifies border visibility.

#Example

The following code snippet configures borders for DxBarGauge tooltips:

Razor
<DxBarGauge Width="100%"
            Height="500px"
            StartValue="0"
            EndValue="100"
            Values="@Values">
    @* ... *@
    <DxTooltipSettings Enabled="true" Color="lightyellow" >
        <DxTextFormatSettings LdmlString="@LabelFormat" />
        <DxBorderSettings Color="green" LineStyle="LineStyle.DashDotDot"
                          Opacity="0.7" Width="3"/>
    </DxTooltipSettings>
</DxBarGauge>

@code {
    double[] Values = new double[] { 47.27, 65.32, 84.59, 81.86, 99 };
    string LabelFormat = "##.# '%' ";
}

#Inheritance

Object
ComponentBase
DxSettingsComponent<DevExpress.Blazor.ClientComponents.Internal.BorderSettingsModel>
DxBorderSettings
See Also