Share via


CharacterScale.Val Property

Definition

Text Expansion/Compression Value

Represents the following attribute in the schema: w:val

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

Property Value

Returns Int32Value.

Attributes

Remarks

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

Specifies the percentage by which the contents of this run shall be expanded or compressed with respect to its normal (100%) character width.

If this attribute is omitted, then the contents of this run shall be displayed at 100% of its normal size.

Consider a run of text which shall be compressed to 50% when displaying each character within the contents of the run. This constraint is specified using the following WordprocessingML:

<w:rPr>  
  <w:w w:val="50"/>  
</w:rPr>  

This run explicitly declares that the w value is 50, so the contents of this run will appear at 50% of their normal character width by compressing the width of each character.

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

Applies to