LinearGradientFill.Scaled Property

Scaled.Represents the attribte in schema: scaled

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

Syntax

'Declaration
<SchemaAttrAttribute(, "scaled")> _
Public Property Scaled As BooleanValue
    Get
    Set
'Usage
Dim instance As LinearGradientFill
Dim value As BooleanValue

value = instance.Scaled

instance.Scaled = value
[SchemaAttrAttribute(, "scaled")]
public BooleanValue Scaled { get; set; }

Property Value

Type: DocumentFormat.OpenXml.BooleanValue
Returns BooleanValue.

Remarks

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

Whether the gradient angle scales with the fill region. Mathematically, if this flag is true, then we scale the gradient vector ( cos x , sin x ) by the width (w) and height (h) of the fill region, so that the vector becomes ( w cos x, h sin x ) (before normalization). Observe that now if the gradient angle is 45 degrees, the gradient vector is ( w, h ), which goes from top-left to bottom-right of the fill region. If this flag is false, the gradient angle is independent of the fill region and will not be scaled using the manipulation described above. So a 45-degree gradient angle always give a gradient band whose line of constant color is parallel to the vector (1, -1).

The possible values for this attribute are defined by the XML Schema boolean datatype.

See Also

Reference

LinearGradientFill Class

LinearGradientFill Members

DocumentFormat.OpenXml.Drawing Namespace