MappingMode (LinearGradientBrush)


Gets or sets a value that specifies whether the LinearGradientBrush positioning coordinates are absolute or relative to the output area.

<object MappingMode="BrushMappingMode"  .../>
value = object.MappingMode
object.MappingMode = value

Type: BrushMappingMode

A value of the enumeration that specifies how the LinearGradientBrush positioning coordinates are interpreted.

This property is read/write. The default value is RelativeToBoundingBox.

A value of Absolute indicates that the LinearGradientBrush coordinates are expressed in pixels.

The MappingMode of a LinearGradientBrush or RadialGradientBrush does not influence how the Offset values are interpreted. Regardless of mapping mode, the offset is always interpreted as a factor between 0 and 1 along the vector that defines the gradient.

Community Additions