Brush.RelativeTransform 属性

定义

获取或设置使用相对坐标应用到画笔的转换。Gets or sets the transformation that is applied to the brush using relative coordinates.

public:
 property System::Windows::Media::Transform ^ RelativeTransform { System::Windows::Media::Transform ^ get(); void set(System::Windows::Media::Transform ^ value); };
public System.Windows.Media.Transform RelativeTransform { get; set; }
member this.RelativeTransform : System.Windows.Media.Transform with get, set
Public Property RelativeTransform As Transform

属性值

使用相对坐标应用到画笔的转换。The transformation that is applied to the brush using relative coordinates. 默认值为 Identity 转换。The default value is the Identity transformation.

注解

当你想要旋转、缩放、倾斜或以其他方式围绕中心来变换画笔时, 此属性特别有用, 但你不知道使用画笔绘制区域的大小, 或者使用相同的画笔绘制不同大小的不同区域。This property is especially useful when you want to rotate, scale, skew, or otherwise transform a brush about its center, but you don't know the size of the area painted with the brush, or you are using the same brush to paint different areas with different sizes.

有关此属性的详细信息, 请参阅刷子转换概述For detailed information about this property, see the Brush Transformation Overview.

依赖项属性信息Dependency Property Information

标识符字段Identifier field RelativeTransformProperty
元数据属性设置为trueMetadata properties set to true NoneNone

适用于

另请参阅