Class PivotViewTextWrapSettings
Specifies text-wrapping options for pivot table cells.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.PivotView
Assembly: Syncfusion.Blazor.dll
Syntax
public class PivotViewTextWrapSettings : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Remarks
Use the WrapMode property to control whether wrapping applies to row and column headers, value cells, or both.
Constructors
PivotViewTextWrapSettings()
Declaration
public PivotViewTextWrapSettings()
Properties
WrapMode
Gets or sets the wrap mode used by the PivotView for cell text.
Declaration
[Parameter]
[JsonPropertyName("wrapMode")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public WrapMode WrapMode { get; set; }
Property Value
| Type | Description |
|---|---|
| WrapMode | A WrapMode value that indicates whether wrapping applies to headers, content, or both. The default is Both. |
Remarks
Examples
The following example demonstrates how to enable text wrapping for value cells only in a Pivot Table:
<SfPivotView TValue="PivotProductDetails" Width="800" Height="340">
<PivotViewDataSourceSettings DataSource="@data">
<PivotViewColumns>
<PivotViewColumn Name="Year"></PivotViewColumn>
<PivotViewColumn Name="Quarter"></PivotViewColumn>
</PivotViewColumns>
<PivotViewRows>
<PivotViewRow Name="Country"></PivotViewRow>
<PivotViewRow Name="Products"></PivotViewRow>
</PivotViewRows>
<PivotViewValues>
<PivotViewValue Name="Sold" Caption="Units Sold"></PivotViewValue>
<PivotViewValue Name="Amount" Caption="Sold Amount"></PivotViewValue>
</PivotViewValues>
</PivotViewDataSourceSettings>
<PivotViewGridSettings AllowTextWrap="true">
<PivotViewTextWrapSettings WrapMode="WrapMode.Content"></PivotViewTextWrapSettings>
</PivotViewGridSettings>
</SfPivotView>
Methods
Dispose(bool)
Dispose unmanaged resources in the component.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
OnInitializedAsync()
Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree. Override this method if you will perform an asynchronous operation and want the component to refresh when that operation is completed.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type | Description |
|---|---|
| Task | A System.Threading.Tasks.Task representing any asynchronous operation. |
Overrides
OnParametersSetAsync()
Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties.
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type | Description |
|---|---|
| Task | A System.Threading.Tasks.Task representing any asynchronous operation. |