Share via


PercentageType.Val Property

Value.Represents the attribte in schema: val

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

Syntax

'Declaration
<SchemaAttrAttribute(, "val")> _
Public Property Val As Int32Value
    Get
    Set
'Usage
Dim instance As PercentageType
Dim value As Int32Value

value = instance.Val

instance.Val = value
[SchemaAttrAttribute(, "val")]
public Int32Value Val { get; set; }

Property Value

Type: DocumentFormat.OpenXml.Int32Value
Returns Int32Value.

Remarks

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

Specifies the value of the blue component. The assigned value is specified as a percentage with 0% indicating minimal blue and 100% indicating maximum blue.

The following manipulates the fill from having RGB value RRGGBB = (00, FF, 00) to value RRGGBB= (00, FF, FF):

<a:solidFill>
  <a:srgbClr val="00FF00">
    <a:blue val="100000"/>
  </a:srgbClr>
</a:solidFill>

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

See Also

Reference

PercentageType Class

PercentageType Members

DocumentFormat.OpenXml.Drawing Namespace