次の方法で共有


Highlight.Val Property

Highlighting Color.Represents the attribte in schema: w:val

Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'宣言
<SchemaAttrAttribute(, "val")> _
Public Property Val As EnumValue(Of HighlightColorValues)
    Get
    Set
'使用
Dim instance As Highlight
Dim value As EnumValue(Of HighlightColorValues)

value = instance.Val

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

Property Value

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

Remarks

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

Specifies the color of the text highlighting which shall be applied to the contents of this run.

Consider a text run which shall be displayed with colored text highlighting. This highlighting would be specified using the following WordprocessingML:

<w:rPr>
  <w:highlight w:val="red" />
</w:rPr>

The resulting text highlighting would be red, as this is the color specified by the val attribute.

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

See Also

Reference

Highlight Class

Highlight Members

DocumentFormat.OpenXml.Wordprocessing Namespace