aspnetcore-js-devexpress-dot-richedit-189d9796.md
Contains methods to convert different units of measurement.
export class UnitConverter
var size = new DevExpress.RichEdit.Size(
richEdit.unitConverter.centimetersToTwips(24),
richEdit.unitConverter.centimetersToTwips(18));
richEdit.document.sections.getByIndex(0).pageSize = size;
Converts a measurement from centimeters to twips.
centimetersToTwips(
value: number
): number
| Name | Type | Description |
|---|---|---|
| value | number |
The value in centimeters to convert.
|
| Type | Description |
|---|---|
| number |
The value in twips.
|
Converts a measurement from inches to twips.
inchesToTwips(
value: number
): number
| Name | Type | Description |
|---|---|---|
| value | number |
The value in inches (floating) to convert.
|
| Type | Description |
|---|---|
| number |
The value in twips.
|
Converts a measurement from pixels to centimeters.
pixelsToCentimeters(
value: number
): number
| Name | Type | Description |
|---|---|---|
| value | number |
The value in pixels to convert.
|
| Type | Description |
|---|---|
| number |
The value in centimeters.
|
Converts a measurement from pixels to inches.
pixelsToInches(
value: number
): number
| Name | Type | Description |
|---|---|---|
| value | number |
The value in pixels to convert.
|
| Type | Description |
|---|---|
| number |
The value in inches.
|
Converts a measurement from pixels to points.
pixelsToPoints(
value: number
): number
| Name | Type | Description |
|---|---|---|
| value | number |
The value in pixels to convert.
|
| Type | Description |
|---|---|
| number |
The value in points.
|
Converts a measurement from pixels to twips.
pixelsToTwips(
value: number
): number
| Name | Type | Description |
|---|---|---|
| value | number |
The value in pixels to convert.
|
| Type | Description |
|---|---|
| number |
The value in twips.
|
Converts a measurement from points to twips.
pointsToTwips(
value: number
): number
| Name | Type | Description |
|---|---|---|
| value | number |
The value in points to convert.
|
| Type | Description |
|---|---|
| number |
The value in twips.
|
Converts a measurement from twips to centimeters.
twipsToCentimeters(
value: number
): number
| Name | Type | Description |
|---|---|---|
| value | number |
The value in twips to convert.
|
| Type | Description |
|---|---|
| number |
The value in centimeters.
|
Converts a measurement from twips to inches.
twipsToInches(
value: number
): number
| Name | Type | Description |
|---|---|---|
| value | number |
The value in twips to convert.
|
| Type | Description |
|---|---|
| number |
The value in inches.
|
Converts a measurement from twips to pixels.
twipsToPixels(
value: number
): number
| Name | Type | Description |
|---|---|---|
| value | number |
The twips value that should be converted.
|
| Type | Description |
|---|---|
| number |
The value in pixels.
|
Converts a measurement from twips to points.
twipsToPoints(
value: number
): number
| Name | Type | Description |
|---|---|---|
| value | number |
The value in twips to convert.
|
| Type | Description |
|---|---|
| number |
The value in points.
|