Edit

Share via


StringUnit Enum

Definition

Specifies the units of measure for a text string.

C#
public enum StringUnit
Inheritance
StringUnit

Fields

Name Value Description
World 0

Specifies world units as the unit of measure.

Display 1

Specifies the device unit as the unit of measure.

Pixel 2

Specifies a pixel as the unit of measure.

Point 3

Specifies a printer's point (1/72 inch) as the unit of measure.

Inch 4

Specifies an inch as the unit of measure.

Document 5

Specifies 1/300 of an inch as the unit of measure.

Millimeter 6

Specifies a millimeter as the unit of measure.

Em 32

Specifies a printer's em size of 32 as the unit of measure.

Remarks

This enumeration is not currently used in the .NET Framework.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9