1 instantiation of TextAlignment
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11702bamlType.DefaultConstructor = delegate() { return new System.Windows.TextAlignment(); };
133 references to TextAlignment
PresentationCore (14)
MS\Internal\TextFormatting\GenericTextProperties.cs (4)
237TextAlignment textAlignment, 287public override TextAlignment TextAlignment 369internal void SetTextAlignment(TextAlignment textAlignment) 392private TextAlignment _textAlignment;
MS\Internal\TextFormatting\SimpleTextLine.cs (3)
351if(pap.Align != TextAlignment.Left) 355case TextAlignment.Right: 359case TextAlignment.Center:
MS\Internal\TextFormatting\TextMetrics.cs (2)
234case TextAlignment.Right: 245case TextAlignment.Center:
MS\Internal\TextFormatting\TextProperties.cs (2)
103internal TextAlignment Align 110get { return _paragraphProperties.TextAlignment == TextAlignment.Justify; }
System\Windows\Media\FormattedText.cs (2)
233TextAlignment.Left, 1237public TextAlignment TextAlignment
System\Windows\Media\textformatting\TextParagraphProperties.cs (1)
33public abstract TextAlignment TextAlignment
PresentationFramework (115)
MS\Internal\Documents\TextBoxLine.cs (6)
182lineProperties.IgnoreTextAlignment = (lineProperties.TextAlignment != TextAlignment.Justify); 530if (_lineProperties.TextAlignmentInternal == TextAlignment.Right) 534else if (_lineProperties.TextAlignmentInternal == TextAlignment.Center) 541if (_lineProperties.TextAlignmentInternal == TextAlignment.Center) 572return ((_lineProperties.TextAlignmentInternal == TextAlignment.Right || _lineProperties.TextAlignmentInternal == TextAlignment.Center) && IsWidthAdjusted);
MS\Internal\Documents\TextBoxView.cs (19)
432if (widthChanged && lineProperties.TextAlignment != TextAlignment.Left) 491if (oldWidth != desiredSize.Width && lineProperties.TextAlignment != TextAlignment.Left) 719TextAlignment alignment = this.CalculatedTextAlignment; 2043private void GetTightBoundingGeometryFromLineIndex(int lineIndex, int unclippedStartOffset, int unclippedEndOffset, TextAlignment alignment, double endOfParaGlyphWidth, ref Geometry geometry) 2129private void GetTightBoundingGeometryFromLineIndexForSelection(TextBoxLine line, int lineIndex, int unclippedStartOffset, int unclippedEndOffset, TextAlignment alignment, double endOfParaGlyphWidth, ref Geometry geometry) 2863private double GetContentOffset(double lineWidth, TextAlignment aligment) 2870case TextAlignment.Right: 2874case TextAlignment.Center: 2888private TextAlignment HorizontalAlignmentToTextAlignment(HorizontalAlignment horizontalAlignment) 2890TextAlignment textAlignment; 2896textAlignment = TextAlignment.Left; 2900textAlignment = TextAlignment.Right; 2904textAlignment = TextAlignment.Center; 2908textAlignment = TextAlignment.Justify; 2956private double GetTextAlignmentCorrection(TextAlignment textAlignment, double width) 2960if (textAlignment != TextAlignment.Left && 3077private TextAlignment CalculatedTextAlignment 3090return (TextAlignment)host.GetValue(TextBox.TextAlignmentProperty); 3109return (TextAlignment)host.GetValue(TextBox.TextAlignmentProperty);
MS\Internal\PtsHost\Line.cs (7)
58_textAlignment = (TextAlignment)TextParagraph.Element.GetValue(Block.TextAlignmentProperty); 1118if ((_textAlignment == TextAlignment.Center || _textAlignment == TextAlignment.Right) && !ShowEllipses) 1130if (_textAlignment == TextAlignment.Center) 1170return ((_textAlignment == TextAlignment.Right || _textAlignment == TextAlignment.Center) && IsWidthAdjusted); 1293private TextAlignment _textAlignment;
MS\Internal\PtsHost\TextParagraph.cs (2)
212isParagraphJustified = ((TextAlignment)Element.GetValue(Block.TextAlignmentProperty)) == TextAlignment.Justify;
MS\Internal\Text\Line.cs (4)
522if (_textAlignment == TextAlignment.Center) 585return ((_textAlignment == TextAlignment.Right || _textAlignment == TextAlignment.Center) && IsWidthAdjusted); 651protected TextAlignment _textAlignment;
MS\Internal\Text\LineProperties.cs (8)
41public override TextAlignment TextAlignment { get { return IgnoreTextAlignment ? TextAlignment.Left : _textAlignment; } } 108: this(element, contentHost, defaultTextProperties, markerProperties, (TextAlignment)element.GetValue(Block.TextAlignmentProperty)) 120TextAlignment textAlignment) 235internal TextAlignment TextAlignmentInternal 308private TextAlignment _textAlignment; 336public override TextAlignment TextAlignment { get { return _lp.TextAlignment; } } 412public override TextAlignment TextAlignment { get { return _lp.TextAlignment; } }
System\Windows\Controls\AccessText.cs (2)
345public TextAlignment TextAlignment 347get { return (TextAlignment) GetValue(TextAlignmentProperty); }
System\Windows\Controls\TextBlock.cs (7)
1024public TextAlignment TextAlignment 1026get { return (TextAlignment)GetValue(TextAlignmentProperty); } 1035public static void SetTextAlignment(DependencyObject element, TextAlignment value) 1046public static TextAlignment GetTextAlignment(DependencyObject element) 1050return (TextAlignment)element.GetValue(TextAlignmentProperty); 3111case TextAlignment.Right: 3115case TextAlignment.Center:
System\Windows\Controls\TextBox.cs (2)
747public TextAlignment TextAlignment 751return (TextAlignment)GetValue(TextAlignmentProperty);
System\Windows\Controls\TextRangeAdaptor.cs (6)
202TextAlignment alignmentWCP = (TextAlignment)tp.GetValue(Block.TextAlignmentProperty); 206case TextAlignment.Left: 210case TextAlignment.Right: 213case TextAlignment.Center: 216case TextAlignment.Justify:
System\Windows\Documents\AnchoredBlock.cs (2)
181public TextAlignment TextAlignment 183get { return (TextAlignment)GetValue(TextAlignmentProperty); }
System\Windows\Documents\Block.cs (13)
212typeof(TextAlignment), 215TextAlignment.Left, 222public TextAlignment TextAlignment 224get { return (TextAlignment)GetValue(TextAlignmentProperty); } 233public static void SetTextAlignment(DependencyObject element, TextAlignment value) 244public static TextAlignment GetTextAlignment(DependencyObject element) 248return (TextAlignment)element.GetValue(TextAlignmentProperty); 513TextAlignment value = (TextAlignment)o; 514return value == TextAlignment.Center 515|| value == TextAlignment.Justify 516|| value == TextAlignment.Left 517|| value == TextAlignment.Right;
System\Windows\Documents\FlowDocument.cs (2)
341public TextAlignment TextAlignment 343get { return (TextAlignment)GetValue(TextAlignmentProperty); }
System\Windows\Documents\ListItem.cs (2)
218public TextAlignment TextAlignment 220get { return (TextAlignment)GetValue(TextAlignmentProperty); }
System\Windows\Documents\TableCell.cs (2)
237public TextAlignment TextAlignment 239get { return (TextAlignment)GetValue(TextAlignmentProperty); }
System\windows\Documents\TextEditorParagraphs.cs (4)
72TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Left, /*applyToParagraphs*/true); 87TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Center, /*applyToParagraphs*/true); 102TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Right, /*applyToParagraphs*/true); 117TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Justify, /*applyToParagraphs*/true);
System\Windows\Documents\TextRangeEdit.cs (22)
869Invariant.Assert(value is TextAlignment, "Expecting TextAlignment as a value of a Paragraph.TextAlignmentProperty"); 872newValue = ComputeNewTextAlignmentValue((TextAlignment)value, flowDirection); 881HorizontalAlignment horizontalAlignment = GetHorizontalAlignmentFromTextAlignment((TextAlignment)newValue); 1099private static TextAlignment ComputeNewTextAlignmentValue(TextAlignment textAlignment, FlowDirection flowDirection) 1101if (textAlignment == TextAlignment.Left) 1103textAlignment = (flowDirection == FlowDirection.LeftToRight) ? TextAlignment.Left : TextAlignment.Right; 1105else if (textAlignment == TextAlignment.Right) 1107textAlignment = (flowDirection == FlowDirection.LeftToRight) ? TextAlignment.Right : TextAlignment.Left; 1156internal static HorizontalAlignment GetHorizontalAlignmentFromTextAlignment(TextAlignment textAlignment) 1162case TextAlignment.Left: 1165case TextAlignment.Center: 1168case TextAlignment.Right: 1171case TextAlignment.Justify: 1180internal static TextAlignment GetTextAlignmentFromHorizontalAlignment(HorizontalAlignment horizontalAlignment) 1182TextAlignment textAlignment; 1186textAlignment = TextAlignment.Left; 1189textAlignment = TextAlignment.Center; 1192textAlignment = TextAlignment.Right; 1196textAlignment = TextAlignment.Justify;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
7391bamlMember.TypeConverterType = typeof(System.Windows.TextAlignment); 7408bamlMember.TypeConverterType = typeof(System.Windows.TextAlignment); 7759bamlMember.TypeConverterType = typeof(System.Windows.TextAlignment);
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
11700typeof(System.Windows.TextAlignment), 11703bamlType.TypeConverterType = typeof(System.Windows.TextAlignment);
PresentationUI (2)
MS\Internal\Documents\Application\PageTextBox.cs (1)
338TextAlignment = TextAlignment.Right;
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
119_editableTextBox.TextAlignment = TextAlignment.Right;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (2)
93public TextAlignment TextAlignment 95get { return (TextAlignment)GetValue(TextAlignmentProperty); }