Back to Devexpress

DxChartAnnotationBase<T>.TextOverflow Property

blazor-devexpress-dot-blazor-dot-dxchartannotationbase-1-699def0a.md

latest2.4 KB
Original Source

DxChartAnnotationBase<T>.TextOverflow Property

Specifies how the annotation displays its overflowing text.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(ChartTextOverflow.Ellipsis)]
[Parameter]
public ChartTextOverflow TextOverflow { get; set; }

Property Value

TypeDefaultDescription
ChartTextOverflowEllipsis

An enumeration value.

|

Available values:

NameDescription
Ellipsis

Truncates text with an ellipsis.

| | Hide |

Hides overflowing text.

| | None |

Truncates text at the boundary of the content area.

|

Remarks

Use the TextOverflow property to define how the chart displays the annotation text that overflows the content area. This property value applies when the Type property is set to Text.

The following example uses drop-down menus to choose how to display the annotation’s text:

razor
<DxChart Data="@DataSource">
    @* ... *@
    <DxChartLineSeries ValueField="@((ApplePrice i) => i.Close)"
                       ArgumentField="@((ApplePrice i) => i.Date)"
                       Name="AAPL" />
    <DxChartAnnotation Argument="new DateTime(2021, 4, 20)"
                       Series="AAPL"
                       Text="Fifth generation of iPad Pro"
                       TextOverflow="@CurrentTextOverflow"
                       WordWrap="@CurrentWordWrap"
                       VerticalOffset="75"
                       Width="50"/>
</DxChart>

@code {
    ChartTextOverflow CurrentTextOverflow = ChartTextOverflow.None;
    ChartWordWrap CurrentWordWrap = ChartWordWrap.None;
    // ...
}

Refer to the following section for additional information about annotations: Annotations in Blazor Charts.

See Also

DxChartAnnotationBase<T> Class

DxChartAnnotationBase<T> Members

DevExpress.Blazor Namespace