CharacterScale.Val Property
Text Expansion/Compression Value.Represents the attribte in schema: w:val
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<SchemaAttrAttribute(, "val")> _
Public Property Val As IntegerValue
Get
Set
'Usage
Dim instance As CharacterScale
Dim value As IntegerValue
value = instance.Val
instance.Val = value
[SchemaAttrAttribute(, "val")]
public IntegerValue Val { get; set; }
Property Value
Type: DocumentFormat.OpenXml.IntegerValue
Returns Int32Value.
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.