UnitType UnitType UnitType UnitType Enum

Definition

Specifies the unit of measurement.

public enum class UnitType
public enum UnitType
type UnitType = 
Public Enum UnitType
Inheritance

Fields

Cm Cm Cm Cm 6

Measurement is in centimeters.

Em Em Em Em 8

Measurement is relative to the height of the parent element's font.

Ex Ex Ex Ex 9

Measurement is relative to the height of the lowercase letter x of the parent element's font.

Inch Inch Inch Inch 4

Measurement is in inches.

Mm Mm Mm Mm 5

Measurement is in millimeters.

Percentage Percentage Percentage Percentage 7

Measurement is a percentage relative to the parent element.

Pica Pica Pica Pica 3

Measurement is in picas. A pica represents 12 points.

Pixel Pixel Pixel Pixel 1

Measurement is in pixels.

Point Point Point Point 2

Measurement is in points. A point represents 1/72 of an inch.

Remarks

The UnitType enumeration represents the different supported measurement units. Measurements can be represented in pixels, points, picas, inches, millimeters, centimeters, percentages, em, or ex.

A Point is a unit of measurement that represents 1/72 of an inch.

A Pica is a unit that equals 12 points.

A Percentage is a unit of measurement that is relative to a parent element. For example, if the font size of a paragraph is 10 pixels, you can place a phrase inside the paragraph with a font size specified as 200%. The font size of the phrase becomes twice the font size of the paragraph, or 20 pixels.

An Em is a unit of measurement that is relative to the height of a parent element's font. For example, if the font size of a paragraph is 10 pixels, you can place a phrase inside the paragraph with a font size specified as 2 em. The font size of the phrase becomes twice the font size of the paragraph, or 20 pixels.

An Ex is a unit of measurement that is relative to the height of the lowercase letter x of the parent element's font. For example if the font size of a paragraph is 10 pixels, you can place a phrase inside the paragraph with a font size specified as 2 ex. The font size of the phrase becomes twice the font size of a lowercase letter x in the paragraph.

Applies to

See also