blazor-devexpress-dot-blazor-dot-dxchartannotationbase-1-4d7732bb.md
Specifies how the annotation wraps its overflowing text.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(ChartWordWrap.Normal)]
[Parameter]
public ChartWordWrap WordWrap { get; set; }
| Type | Default | Description |
|---|---|---|
| ChartWordWrap | Normal |
An enumeration value.
|
Available values:
| Name | Description |
|---|---|
| Normal |
Wraps text at standard breakpoints (spaces).
| | BreakWord |
Wraps text and breaks words.
| | None |
Keeps text on a single line.
|
Use the WordWrap property to define how to wrap 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:
<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