Share via


Block.HorizontalTextAlignment Propriété

Définition

Obtient ou définit une valeur qui indique comment le texte est aligné dans le bloc.

public:
 property TextAlignment HorizontalTextAlignment { TextAlignment get(); void set(TextAlignment value); };
TextAlignment HorizontalTextAlignment();

void HorizontalTextAlignment(TextAlignment value);
public TextAlignment HorizontalTextAlignment { get; set; }
var textAlignment = block.horizontalTextAlignment;
block.horizontalTextAlignment = textAlignment;
Public Property HorizontalTextAlignment As TextAlignment
<Paragraph HorizontalTextAlignment="textAlignmentValue"/>

Valeur de propriété

Une des valeurs d’énumération TextAlignment qui spécifie la façon dont le texte est aligné. La valeur par défaut est Left.

Remarques

Cette propriété prend en charge XAML Standard. Il fournit les mêmes fonctionnalités que la propriété TextAlignement . Si les deux propriétés sont définies sur des valeurs en conflit, le dernier jeu est utilisé.

S’applique à