TileBrush.AlignmentX 属性

定义

获取或设置 TileBrush 基本图块中内容的水平对齐。Gets or sets the horizontal alignment of content in the TileBrush base tile.

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

属性值

一个值,指定 TileBrush 内容在其基本图块中的水平位置。A value that specifies the horizontal position of TileBrush content in its base tile. 默认值为 CenterThe default value is Center.

注解

如果满足以下任一条件,则使用 TileBrushAlignmentX 和 @no__t 属性:The AlignmentX and AlignmentY properties of a TileBrush are used when either of the following conditions is true:

请注意,可以使用 @no__t 属性指定 TileBrush 内容的尺寸;使用 @no__t 属性指定 TileBrush 基本图块的位置和大小。Note that you specify the dimensions of TileBrush content by using the Viewbox property; you specify the position and size of the TileBrush base tile by using the Viewport property.

依赖项属性信息Dependency Property Information

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

适用于

另请参阅