共用方式為


LinearGradientFill.Scaled Property

Definition

Scaled

Represents the following attribute in the schema: scaled

[DocumentFormat.OpenXml.SchemaAttr(0, "scaled")]
public DocumentFormat.OpenXml.BooleanValue Scaled { get; set; }
public DocumentFormat.OpenXml.BooleanValue Scaled { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(0, "scaled")]
public DocumentFormat.OpenXml.BooleanValue? Scaled { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("scaled")]
public DocumentFormat.OpenXml.BooleanValue? Scaled { get; set; }
public DocumentFormat.OpenXml.BooleanValue? Scaled { get; set; }
member this.Scaled : DocumentFormat.OpenXml.BooleanValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr(0, "scaled")>]
member this.Scaled : DocumentFormat.OpenXml.BooleanValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr("scaled")>]
member this.Scaled : DocumentFormat.OpenXml.BooleanValue with get, set
Public Property Scaled As BooleanValue

Property Value

Returns BooleanValue.

Attributes

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.

Applies to