HpsMeasureType.Val HpsMeasureType.Val HpsMeasureType.Val Property


Half Point Measurement.Represents the following attribute in the schema: w:val

[DocumentFormat.OpenXml.SchemaAttr(23, "val")]
public DocumentFormat.OpenXml.StringValue Val { get; set; }
member this.Val : DocumentFormat.OpenXml.StringValue with get, set
Public Property Val As StringValue

Property Value


The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

Specifies a positive measurement specified in half-points (1/144 of an inch).

The contents of this attribute value are interpreted based on the context of the parent XML element.

Consider the following WordprocessingML fragment:

  <w:sz w:val="28" />   

The value of the val attribute is the font size of the run's contents.

However, consider the following fragment:

  <w:kern w:val="30" />  

In this case, the value in the val attribute is the minimum size for which font characters shall be automatically kerned.

In each case, the value is interpreted in the context of the parent element.

The possible values for this attribute are defined by the ST_HpsMeasure simple type.

Applies to