1 instantiation of TextAlignment
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11704bamlType.DefaultConstructor = delegate() { return new System.Windows.TextAlignment(); };
133 references to TextAlignment
PresentationCore (14)
MS\Internal\TextFormatting\GenericTextProperties.cs (4)
239TextAlignment textAlignment, 289public override TextAlignment TextAlignment 371internal void SetTextAlignment(TextAlignment textAlignment) 394private TextAlignment _textAlignment;
MS\Internal\TextFormatting\SimpleTextLine.cs (3)
360if(pap.Align != TextAlignment.Left) 364case TextAlignment.Right: 368case TextAlignment.Center:
MS\Internal\TextFormatting\TextMetrics.cs (2)
249case TextAlignment.Right: 260case TextAlignment.Center:
MS\Internal\TextFormatting\TextProperties.cs (2)
109internal TextAlignment Align 116get { return _paragraphProperties.TextAlignment == TextAlignment.Justify; }
System\Windows\Media\FormattedText.cs (2)
249TextAlignment.Left, 1253public TextAlignment TextAlignment
System\Windows\Media\textformatting\TextParagraphProperties.cs (1)
37public abstract TextAlignment TextAlignment
PresentationFramework (115)
MS\Internal\Documents\TextBoxLine.cs (6)
189lineProperties.IgnoreTextAlignment = (lineProperties.TextAlignment != TextAlignment.Justify); 537if (_lineProperties.TextAlignmentInternal == TextAlignment.Right) 541else if (_lineProperties.TextAlignmentInternal == TextAlignment.Center) 548if (_lineProperties.TextAlignmentInternal == TextAlignment.Center) 579return ((_lineProperties.TextAlignmentInternal == TextAlignment.Right || _lineProperties.TextAlignmentInternal == TextAlignment.Center) && IsWidthAdjusted);
MS\Internal\Documents\TextBoxView.cs (19)
434if (widthChanged && lineProperties.TextAlignment != TextAlignment.Left) 493if (oldWidth != desiredSize.Width && lineProperties.TextAlignment != TextAlignment.Left) 721TextAlignment alignment = this.CalculatedTextAlignment; 2045private void GetTightBoundingGeometryFromLineIndex(int lineIndex, int unclippedStartOffset, int unclippedEndOffset, TextAlignment alignment, double endOfParaGlyphWidth, ref Geometry geometry) 2131private void GetTightBoundingGeometryFromLineIndexForSelection(TextBoxLine line, int lineIndex, int unclippedStartOffset, int unclippedEndOffset, TextAlignment alignment, double endOfParaGlyphWidth, ref Geometry geometry) 2865private double GetContentOffset(double lineWidth, TextAlignment aligment) 2872case TextAlignment.Right: 2876case TextAlignment.Center: 2890private TextAlignment HorizontalAlignmentToTextAlignment(HorizontalAlignment horizontalAlignment) 2892TextAlignment textAlignment; 2898textAlignment = TextAlignment.Left; 2902textAlignment = TextAlignment.Right; 2906textAlignment = TextAlignment.Center; 2910textAlignment = TextAlignment.Justify; 2958private double GetTextAlignmentCorrection(TextAlignment textAlignment, double width) 2962if (textAlignment != TextAlignment.Left && 3079private TextAlignment CalculatedTextAlignment 3092return (TextAlignment)host.GetValue(TextBox.TextAlignmentProperty); 3111return (TextAlignment)host.GetValue(TextBox.TextAlignmentProperty);
MS\Internal\PtsHost\Line.cs (7)
64_textAlignment = (TextAlignment)TextParagraph.Element.GetValue(Block.TextAlignmentProperty); 1124if ((_textAlignment == TextAlignment.Center || _textAlignment == TextAlignment.Right) && !ShowEllipses) 1136if (_textAlignment == TextAlignment.Center) 1176return ((_textAlignment == TextAlignment.Right || _textAlignment == TextAlignment.Center) && IsWidthAdjusted); 1299private TextAlignment _textAlignment;
MS\Internal\PtsHost\TextParagraph.cs (2)
219isParagraphJustified = ((TextAlignment)Element.GetValue(Block.TextAlignmentProperty)) == TextAlignment.Justify;
MS\Internal\Text\Line.cs (4)
529if (_textAlignment == TextAlignment.Center) 592return ((_textAlignment == TextAlignment.Right || _textAlignment == TextAlignment.Center) && IsWidthAdjusted); 658protected TextAlignment _textAlignment;
MS\Internal\Text\LineProperties.cs (8)
45public override TextAlignment TextAlignment { get { return IgnoreTextAlignment ? TextAlignment.Left : _textAlignment; } } 112: this(element, contentHost, defaultTextProperties, markerProperties, (TextAlignment)element.GetValue(Block.TextAlignmentProperty)) 124TextAlignment textAlignment) 239internal TextAlignment TextAlignmentInternal 312private TextAlignment _textAlignment; 340public override TextAlignment TextAlignment { get { return _lp.TextAlignment; } } 416public override TextAlignment TextAlignment { get { return _lp.TextAlignment; } }
System\Windows\Controls\AccessText.cs (2)
347public TextAlignment TextAlignment 349get { return (TextAlignment) GetValue(TextAlignmentProperty); }
System\Windows\Controls\TextBlock.cs (7)
1034public TextAlignment TextAlignment 1036get { return (TextAlignment)GetValue(TextAlignmentProperty); } 1045public static void SetTextAlignment(DependencyObject element, TextAlignment value) 1056public static TextAlignment GetTextAlignment(DependencyObject element) 1060return (TextAlignment)element.GetValue(TextAlignmentProperty); 3121case TextAlignment.Right: 3125case TextAlignment.Center:
System\Windows\Controls\TextBox.cs (2)
754public TextAlignment TextAlignment 758return (TextAlignment)GetValue(TextAlignmentProperty);
System\Windows\Controls\TextRangeAdaptor.cs (6)
204TextAlignment alignmentWCP = (TextAlignment)tp.GetValue(Block.TextAlignmentProperty); 208case TextAlignment.Left: 212case TextAlignment.Right: 215case TextAlignment.Center: 218case TextAlignment.Justify:
System\Windows\Documents\AnchoredBlock.cs (2)
182public TextAlignment TextAlignment 184get { return (TextAlignment)GetValue(TextAlignmentProperty); }
System\Windows\Documents\Block.cs (13)
214typeof(TextAlignment), 217TextAlignment.Left, 224public TextAlignment TextAlignment 226get { return (TextAlignment)GetValue(TextAlignmentProperty); } 235public static void SetTextAlignment(DependencyObject element, TextAlignment value) 246public static TextAlignment GetTextAlignment(DependencyObject element) 250return (TextAlignment)element.GetValue(TextAlignmentProperty); 515TextAlignment value = (TextAlignment)o; 516return value == TextAlignment.Center 517|| value == TextAlignment.Justify 518|| value == TextAlignment.Left 519|| value == TextAlignment.Right;
System\Windows\Documents\FlowDocument.cs (2)
341public TextAlignment TextAlignment 343get { return (TextAlignment)GetValue(TextAlignmentProperty); }
System\Windows\Documents\ListItem.cs (2)
219public TextAlignment TextAlignment 221get { return (TextAlignment)GetValue(TextAlignmentProperty); }
System\Windows\Documents\TableCell.cs (2)
250public TextAlignment TextAlignment 252get { return (TextAlignment)GetValue(TextAlignmentProperty); }
System\windows\Documents\TextEditorParagraphs.cs (4)
89TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Left, /*applyToParagraphs*/true); 104TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Center, /*applyToParagraphs*/true); 119TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Right, /*applyToParagraphs*/true); 134TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Justify, /*applyToParagraphs*/true);
System\Windows\Documents\TextRangeEdit.cs (22)
871Invariant.Assert(value is TextAlignment, "Expecting TextAlignment as a value of a Paragraph.TextAlignmentProperty"); 874newValue = ComputeNewTextAlignmentValue((TextAlignment)value, flowDirection); 883HorizontalAlignment horizontalAlignment = GetHorizontalAlignmentFromTextAlignment((TextAlignment)newValue); 1101private static TextAlignment ComputeNewTextAlignmentValue(TextAlignment textAlignment, FlowDirection flowDirection) 1103if (textAlignment == TextAlignment.Left) 1105textAlignment = (flowDirection == FlowDirection.LeftToRight) ? TextAlignment.Left : TextAlignment.Right; 1107else if (textAlignment == TextAlignment.Right) 1109textAlignment = (flowDirection == FlowDirection.LeftToRight) ? TextAlignment.Right : TextAlignment.Left; 1158internal static HorizontalAlignment GetHorizontalAlignmentFromTextAlignment(TextAlignment textAlignment) 1164case TextAlignment.Left: 1167case TextAlignment.Center: 1170case TextAlignment.Right: 1173case TextAlignment.Justify: 1182internal static TextAlignment GetTextAlignmentFromHorizontalAlignment(HorizontalAlignment horizontalAlignment) 1184TextAlignment textAlignment; 1188textAlignment = TextAlignment.Left; 1191textAlignment = TextAlignment.Center; 1194textAlignment = TextAlignment.Right; 1198textAlignment = TextAlignment.Justify;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
7393bamlMember.TypeConverterType = typeof(System.Windows.TextAlignment); 7410bamlMember.TypeConverterType = typeof(System.Windows.TextAlignment); 7761bamlMember.TypeConverterType = typeof(System.Windows.TextAlignment);
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
11702typeof(System.Windows.TextAlignment), 11705bamlType.TypeConverterType = typeof(System.Windows.TextAlignment);
PresentationUI (2)
MS\Internal\Documents\Application\PageTextBox.cs (1)
340TextAlignment = TextAlignment.Right;
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
121_editableTextBox.TextAlignment = TextAlignment.Right;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (2)
96public TextAlignment TextAlignment 98get { return (TextAlignment)GetValue(TextAlignmentProperty); }