TextAlignment Enumeración

Definición

Especifica si el texto del objeto está alineado a la izquierda, a la derecha, centrado o justificado.Specifies whether the text in the object is left-aligned, right-aligned, centered, or justified.

public enum class TextAlignment
[System.Windows.Localizability(System.Windows.LocalizationCategory.None, Readability=System.Windows.Readability.Unreadable)]
public enum TextAlignment
[<System.Windows.Localizability(System.Windows.LocalizationCategory.None, Readability=System.Windows.Readability.Unreadable)>]
type TextAlignment = 
Public Enum TextAlignment
Herencia
TextAlignment
Atributos

Campos

Center 2

Texto centrado.Text is centered.

Justify 3

Texto justificado.Text is justified.

Left 0

PredeterminadoDefault. Texto alineado a la izquierda.Text is aligned to the left.

Right 1

Texto alineado a la derecha.Text is aligned to the right.

Ejemplos

En el ejemplo siguiente, la TextAlignment propiedad se establece en left.In the following example, the TextAlignment property is set to Left.

<FlowDocumentReader>
  <FlowDocument
    FontSize="24"
    LineHeight="48"
  >
    <Paragraph TextAlignment="Left" Background="AliceBlue">
      One<LineBreak/>
      two two<LineBreak/>
      Three Three Three<LineBreak/>
      four four four four<LineBreak/>
      Five Five Five Five Five
    </Paragraph>
  </FlowDocument>
</FlowDocumentReader>

Comentarios

Los valores enumerados para la TextAlignment clase son Left, Right, Center y Justify.The enumerated values for the TextAlignment class are Left, Right, Center, and Justify.

Se aplica a