1 instantiation of TextAlignment
PresentationFramework (1)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11700bamlType.DefaultConstructor = delegate() { return new System.Windows.TextAlignment(); };
129 references to TextAlignment
PresentationCore (14)
Core\CSharp\MS\Internal\TextFormatting\GenericTextProperties.cs (4)
240TextAlignment textAlignment, 290public override TextAlignment TextAlignment 372internal void SetTextAlignment(TextAlignment textAlignment) 395private TextAlignment _textAlignment;
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (3)
364if(pap.Align != TextAlignment.Left) 368case TextAlignment.Right: 372case TextAlignment.Center:
Core\CSharp\MS\Internal\TextFormatting\TextMetrics.cs (2)
255case TextAlignment.Right: 266case TextAlignment.Center:
Core\CSharp\MS\Internal\TextFormatting\TextProperties.cs (2)
111internal TextAlignment Align 118get { return _paragraphProperties.TextAlignment == TextAlignment.Justify; }
Core\CSharp\System\Windows\Media\FormattedText.cs (2)
253TextAlignment.Left, 1266public TextAlignment TextAlignment
Core\CSharp\System\Windows\Media\TextFormatting\TextParagraphProperties.cs (1)
42public abstract TextAlignment TextAlignment
PresentationFramework (115)
src\Framework\MS\Internal\Documents\TextBoxLine.cs (6)
191lineProperties.IgnoreTextAlignment = (lineProperties.TextAlignment != TextAlignment.Justify); 539if (_lineProperties.TextAlignmentInternal == TextAlignment.Right) 543else if (_lineProperties.TextAlignmentInternal == TextAlignment.Center) 550if (_lineProperties.TextAlignmentInternal == TextAlignment.Center) 581return ((_lineProperties.TextAlignmentInternal == TextAlignment.Right || _lineProperties.TextAlignmentInternal == TextAlignment.Center) && IsWidthAdjusted);
src\Framework\MS\Internal\Documents\TextBoxView.cs (19)
436if (widthChanged && lineProperties.TextAlignment != TextAlignment.Left) 494if (oldWidth != desiredSize.Width && lineProperties.TextAlignment != TextAlignment.Left) 725TextAlignment alignment = this.CalculatedTextAlignment; 2041private void GetTightBoundingGeometryFromLineIndex(int lineIndex, int unclippedStartOffset, int unclippedEndOffset, TextAlignment alignment, double endOfParaGlyphWidth, ref Geometry geometry) 2127private void GetTightBoundingGeometryFromLineIndexForSelection(TextBoxLine line, int lineIndex, int unclippedStartOffset, int unclippedEndOffset, TextAlignment alignment, double endOfParaGlyphWidth, ref Geometry geometry) 2843private double GetContentOffset(double lineWidth, TextAlignment aligment) 2850case TextAlignment.Right: 2854case TextAlignment.Center: 2868private TextAlignment HorizontalAlignmentToTextAlignment(HorizontalAlignment horizontalAlignment) 2870TextAlignment textAlignment; 2876textAlignment = TextAlignment.Left; 2880textAlignment = TextAlignment.Right; 2884textAlignment = TextAlignment.Center; 2888textAlignment = TextAlignment.Justify; 2935private double GetTextAlignmentCorrection(TextAlignment textAlignment, double width) 2939if (textAlignment != TextAlignment.Left && 3056private TextAlignment CalculatedTextAlignment 3069return (TextAlignment)host.GetValue(TextBox.TextAlignmentProperty); 3088return (TextAlignment)host.GetValue(TextBox.TextAlignmentProperty);
src\Framework\MS\Internal\PtsHost\Line.cs (7)
67_textAlignment = (TextAlignment)TextParagraph.Element.GetValue(Block.TextAlignmentProperty); 1132if ((_textAlignment == TextAlignment.Center || _textAlignment == TextAlignment.Right) && !ShowEllipses) 1144if (_textAlignment == TextAlignment.Center) 1184return ((_textAlignment == TextAlignment.Right || _textAlignment == TextAlignment.Center) && IsWidthAdjusted); 1307private TextAlignment _textAlignment;
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (2)
224isParagraphJustified = ((TextAlignment)Element.GetValue(Block.TextAlignmentProperty)) == TextAlignment.Justify;
src\Framework\MS\Internal\Text\Line.cs (4)
532if (_textAlignment == TextAlignment.Center) 595return ((_textAlignment == TextAlignment.Right || _textAlignment == TextAlignment.Center) && IsWidthAdjusted); 661protected TextAlignment _textAlignment;
src\Framework\MS\Internal\Text\LineProperties.cs (8)
48public override TextAlignment TextAlignment { get { return IgnoreTextAlignment ? TextAlignment.Left : _textAlignment; } } 115: this(element, contentHost, defaultTextProperties, markerProperties, (TextAlignment)element.GetValue(Block.TextAlignmentProperty)) 127TextAlignment textAlignment) 242internal TextAlignment TextAlignmentInternal 315private TextAlignment _textAlignment; 343public override TextAlignment TextAlignment { get { return _lp.TextAlignment; } } 419public override TextAlignment TextAlignment { get { return _lp.TextAlignment; } }
src\Framework\System\Windows\Controls\AccessText.cs (2)
347public TextAlignment TextAlignment 349get { return (TextAlignment) GetValue(TextAlignmentProperty); }
src\Framework\System\Windows\Controls\TextBlock.cs (7)
1106public TextAlignment TextAlignment 1108get { return (TextAlignment)GetValue(TextAlignmentProperty); } 1117public static void SetTextAlignment(DependencyObject element, TextAlignment value) 1131public static TextAlignment GetTextAlignment(DependencyObject element) 1138return (TextAlignment)element.GetValue(TextAlignmentProperty); 3211case TextAlignment.Right: 3215case TextAlignment.Center:
src\Framework\System\Windows\Controls\TextBox.cs (2)
783public TextAlignment TextAlignment 787return (TextAlignment)GetValue(TextAlignmentProperty);
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (6)
212TextAlignment alignmentWCP = (TextAlignment)tp.GetValue(Block.TextAlignmentProperty); 216case TextAlignment.Left: 220case TextAlignment.Right: 223case TextAlignment.Center: 226case TextAlignment.Justify:
src\Framework\System\Windows\Documents\AnchoredBlock.cs (2)
182public TextAlignment TextAlignment 184get { return (TextAlignment)GetValue(TextAlignmentProperty); }
src\Framework\System\Windows\Documents\Block.cs (13)
220typeof(TextAlignment), 223TextAlignment.Left, 230public TextAlignment TextAlignment 232get { return (TextAlignment)GetValue(TextAlignmentProperty); } 241public static void SetTextAlignment(DependencyObject element, TextAlignment value) 255public static TextAlignment GetTextAlignment(DependencyObject element) 262return (TextAlignment)element.GetValue(TextAlignmentProperty); 539TextAlignment value = (TextAlignment)o; 540return value == TextAlignment.Center 541|| value == TextAlignment.Justify 542|| value == TextAlignment.Left 543|| value == TextAlignment.Right;
src\Framework\System\Windows\Documents\FlowDocument.cs (2)
349public TextAlignment TextAlignment 351get { return (TextAlignment)GetValue(TextAlignmentProperty); }
src\Framework\System\Windows\Documents\ListItem.cs (2)
226public TextAlignment TextAlignment 228get { return (TextAlignment)GetValue(TextAlignmentProperty); }
src\Framework\System\Windows\Documents\TableCell.cs (2)
257public TextAlignment TextAlignment 259get { return (TextAlignment)GetValue(TextAlignmentProperty); }
src\Framework\System\windows\Documents\TextEditorParagraphs.cs (4)
90TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Left, /*applyToParagraphs*/true); 105TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Center, /*applyToParagraphs*/true); 120TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Right, /*applyToParagraphs*/true); 135TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Justify, /*applyToParagraphs*/true);
src\Framework\System\Windows\Documents\TextRangeEdit.cs (22)
873Invariant.Assert(value is TextAlignment, "Expecting TextAlignment as a value of a Paragraph.TextAlignmentProperty"); 876newValue = ComputeNewTextAlignmentValue((TextAlignment)value, flowDirection); 885HorizontalAlignment horizontalAlignment = GetHorizontalAlignmentFromTextAlignment((TextAlignment)newValue); 1103private static TextAlignment ComputeNewTextAlignmentValue(TextAlignment textAlignment, FlowDirection flowDirection) 1105if (textAlignment == TextAlignment.Left) 1107textAlignment = (flowDirection == FlowDirection.LeftToRight) ? TextAlignment.Left : TextAlignment.Right; 1109else if (textAlignment == TextAlignment.Right) 1111textAlignment = (flowDirection == FlowDirection.LeftToRight) ? TextAlignment.Right : TextAlignment.Left; 1160internal static HorizontalAlignment GetHorizontalAlignmentFromTextAlignment(TextAlignment textAlignment) 1166case TextAlignment.Left: 1169case TextAlignment.Center: 1172case TextAlignment.Right: 1175case TextAlignment.Justify: 1184internal static TextAlignment GetTextAlignmentFromHorizontalAlignment(HorizontalAlignment horizontalAlignment) 1186TextAlignment textAlignment; 1190textAlignment = TextAlignment.Left; 1193textAlignment = TextAlignment.Center; 1196textAlignment = TextAlignment.Right; 1200textAlignment = TextAlignment.Justify;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
7351bamlMember.TypeConverterType = typeof(System.Windows.TextAlignment); 7368bamlMember.TypeConverterType = typeof(System.Windows.TextAlignment); 7719bamlMember.TypeConverterType = typeof(System.Windows.TextAlignment);
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
11698typeof(System.Windows.TextAlignment), 11701bamlType.TypeConverterType = typeof(System.Windows.TextAlignment);