TargetScreenSize.Val Property

Target Screen Size 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 EnumValue(Of TargetScreenSizeValues)
    Get
    Set
'Usage
Dim instance As TargetScreenSize
Dim value As EnumValue(Of TargetScreenSizeValues)

value = instance.Val

instance.Val = value
[SchemaAttrAttribute(, "val")]
public EnumValue<TargetScreenSizeValues> Val { get; set; }

Property Value

Type: DocumentFormat.OpenXml.EnumValue<TargetScreenSizeValues>
Returns EnumValue<T>.

Remarks

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

Specifies the target screen size for web pages produced by this document, as defined by the simple type referenced below.

Consider a WordprocessingML document which contains the following content within the web settings part:

<w:webSettings>
  <w:targetScreenSz w:val="1024x768" />
</w:webSettings>

The val attribute has a value of 1024x768, which specifies that a target screen size of 1024 by 768 pixels shall be assumed when saving this document as a web page.

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

See Also

Reference

TargetScreenSize Class

TargetScreenSize Members

DocumentFormat.OpenXml.Wordprocessing Namespace