UnitConverter.TwipsToPoints(Int32) Method
In This Article
Converts a value from twips to points.
Namespace: DevExpress.Blazor.RichEdit
Assembly: DevExpress.Blazor.RichEdit.v24.2.dll
NuGet Package: DevExpress.Blazor.RichEdit
#Declaration
C#
public static float TwipsToPoints(
int value
)
#Parameters
Name | Type | Description |
---|---|---|
value | Int32 | The value in twips. |
#Returns
Type | Description |
---|---|
Single | The value in points. |
#Remarks
Razor
<DxRichEdit @ref="@richEdit" />
@code {
DxRichEdit richEdit { get; set; }
@* ... *@
/* Surround the code that contains an asynchronous operation with a try-catch block to handle
the OperationCanceledException. This exception is thrown when an asynchronous operation is canceled. */
try {
@* ... *@
float value = UnitConverter.TwipsToPoints(1000);
@* ... *@
}
catch (OperationCanceledException e) {
Console.WriteLine($"{nameof(OperationCanceledException)} thrown with message: {e.Message}");
}
}
See Also