1 instantiation of TextAlignment
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
13014DefaultConstructor = delegate () { return new System.Windows.TextAlignment(); },
133 references to TextAlignment
PresentationCore (14)
MS\Internal\TextFormatting\GenericTextProperties.cs (4)
236TextAlignment textAlignment, 286public override TextAlignment TextAlignment 368internal void SetTextAlignment(TextAlignment textAlignment) 391private TextAlignment _textAlignment;
MS\Internal\TextFormatting\SimpleTextLine.cs (3)
350if(pap.Align != TextAlignment.Left) 354case TextAlignment.Right: 358case TextAlignment.Center:
MS\Internal\TextFormatting\TextMetrics.cs (2)
233case TextAlignment.Right: 244case TextAlignment.Center:
MS\Internal\TextFormatting\TextProperties.cs (2)
102internal TextAlignment Align 109get { return _paragraphProperties.TextAlignment == TextAlignment.Justify; }
System\Windows\Media\FormattedText.cs (2)
229TextAlignment.Left, 1216public TextAlignment TextAlignment
System\Windows\Media\textformatting\TextParagraphProperties.cs (1)
32public abstract TextAlignment TextAlignment
PresentationFramework (115)
MS\Internal\Documents\TextBoxLine.cs (6)
181lineProperties.IgnoreTextAlignment = (lineProperties.TextAlignment != TextAlignment.Justify); 529if (_lineProperties.TextAlignmentInternal == TextAlignment.Right) 533else if (_lineProperties.TextAlignmentInternal == TextAlignment.Center) 540if (_lineProperties.TextAlignmentInternal == TextAlignment.Center) 571return ((_lineProperties.TextAlignmentInternal == TextAlignment.Right || _lineProperties.TextAlignmentInternal == TextAlignment.Center) && IsWidthAdjusted);
MS\Internal\Documents\TextBoxView.cs (19)
389if (widthChanged && lineProperties.TextAlignment != TextAlignment.Left) 448if (oldWidth != desiredSize.Width && lineProperties.TextAlignment != TextAlignment.Left) 676TextAlignment alignment = this.CalculatedTextAlignment; 2002private void GetTightBoundingGeometryFromLineIndex(int lineIndex, int unclippedStartOffset, int unclippedEndOffset, TextAlignment alignment, double endOfParaGlyphWidth, ref Geometry geometry) 2088private void GetTightBoundingGeometryFromLineIndexForSelection(TextBoxLine line, int lineIndex, int unclippedStartOffset, int unclippedEndOffset, TextAlignment alignment, double endOfParaGlyphWidth, ref Geometry geometry) 2822private double GetContentOffset(double lineWidth, TextAlignment aligment) 2829case TextAlignment.Right: 2833case TextAlignment.Center: 2847private TextAlignment HorizontalAlignmentToTextAlignment(HorizontalAlignment horizontalAlignment) 2849TextAlignment textAlignment; 2855textAlignment = TextAlignment.Left; 2859textAlignment = TextAlignment.Right; 2863textAlignment = TextAlignment.Center; 2867textAlignment = TextAlignment.Justify; 2915private double GetTextAlignmentCorrection(TextAlignment textAlignment, double width) 2919if (textAlignment != TextAlignment.Left && 3036private TextAlignment CalculatedTextAlignment 3049return (TextAlignment)host.GetValue(TextBox.TextAlignmentProperty); 3068return (TextAlignment)host.GetValue(TextBox.TextAlignmentProperty);
MS\Internal\PtsHost\Line.cs (7)
49_textAlignment = (TextAlignment)TextParagraph.Element.GetValue(Block.TextAlignmentProperty); 1105if ((_textAlignment == TextAlignment.Center || _textAlignment == TextAlignment.Right) && !ShowEllipses) 1117if (_textAlignment == TextAlignment.Center) 1157return ((_textAlignment == TextAlignment.Right || _textAlignment == TextAlignment.Center) && IsWidthAdjusted); 1280private TextAlignment _textAlignment;
MS\Internal\PtsHost\TextParagraph.cs (2)
200isParagraphJustified = ((TextAlignment)Element.GetValue(Block.TextAlignmentProperty)) == TextAlignment.Justify;
MS\Internal\Text\Line.cs (4)
521if (_textAlignment == TextAlignment.Center) 584return ((_textAlignment == TextAlignment.Right || _textAlignment == TextAlignment.Center) && IsWidthAdjusted); 650protected TextAlignment _textAlignment;
MS\Internal\Text\LineProperties.cs (8)
40public override TextAlignment TextAlignment { get { return IgnoreTextAlignment ? TextAlignment.Left : _textAlignment; } } 107: this(element, contentHost, defaultTextProperties, markerProperties, (TextAlignment)element.GetValue(Block.TextAlignmentProperty)) 119TextAlignment textAlignment) 234internal TextAlignment TextAlignmentInternal 307private TextAlignment _textAlignment; 335public override TextAlignment TextAlignment { get { return _lp.TextAlignment; } } 411public override TextAlignment TextAlignment { get { return _lp.TextAlignment; } }
System\Windows\Controls\AccessText.cs (2)
344public TextAlignment TextAlignment 346get { return (TextAlignment) GetValue(TextAlignmentProperty); }
System\Windows\Controls\TextBlock.cs (7)
1021public TextAlignment TextAlignment 1023get { return (TextAlignment)GetValue(TextAlignmentProperty); } 1032public static void SetTextAlignment(DependencyObject element, TextAlignment value) 1043public static TextAlignment GetTextAlignment(DependencyObject element) 1047return (TextAlignment)element.GetValue(TextAlignmentProperty); 3101case TextAlignment.Right: 3105case TextAlignment.Center:
System\Windows\Controls\TextBox.cs (2)
748public TextAlignment TextAlignment 752return (TextAlignment)GetValue(TextAlignmentProperty);
System\Windows\Controls\TextRangeAdaptor.cs (6)
201TextAlignment alignmentWCP = (TextAlignment)tp.GetValue(Block.TextAlignmentProperty); 205case TextAlignment.Left: 209case TextAlignment.Right: 212case TextAlignment.Center: 215case TextAlignment.Justify:
System\Windows\Documents\AnchoredBlock.cs (2)
171public TextAlignment TextAlignment 173get { return (TextAlignment)GetValue(TextAlignmentProperty); }
System\Windows\Documents\Block.cs (13)
211typeof(TextAlignment), 214TextAlignment.Left, 221public TextAlignment TextAlignment 223get { return (TextAlignment)GetValue(TextAlignmentProperty); } 232public static void SetTextAlignment(DependencyObject element, TextAlignment value) 243public static TextAlignment GetTextAlignment(DependencyObject element) 247return (TextAlignment)element.GetValue(TextAlignmentProperty); 512TextAlignment value = (TextAlignment)o; 513return value == TextAlignment.Center 514|| value == TextAlignment.Justify 515|| value == TextAlignment.Left 516|| value == TextAlignment.Right;
System\Windows\Documents\FlowDocument.cs (2)
340public TextAlignment TextAlignment 342get { return (TextAlignment)GetValue(TextAlignmentProperty); }
System\Windows\Documents\ListItem.cs (2)
217public TextAlignment TextAlignment 219get { return (TextAlignment)GetValue(TextAlignmentProperty); }
System\Windows\Documents\TableCell.cs (2)
236public TextAlignment TextAlignment 238get { return (TextAlignment)GetValue(TextAlignmentProperty); }
System\windows\Documents\TextEditorParagraphs.cs (4)
71TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Left, /*applyToParagraphs*/true); 86TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Center, /*applyToParagraphs*/true); 101TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Right, /*applyToParagraphs*/true); 116TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Justify, /*applyToParagraphs*/true);
System\Windows\Documents\TextRangeEdit.cs (22)
868Invariant.Assert(value is TextAlignment, "Expecting TextAlignment as a value of a Paragraph.TextAlignmentProperty"); 871newValue = ComputeNewTextAlignmentValue((TextAlignment)value, flowDirection); 880HorizontalAlignment horizontalAlignment = GetHorizontalAlignmentFromTextAlignment((TextAlignment)newValue); 1098private static TextAlignment ComputeNewTextAlignmentValue(TextAlignment textAlignment, FlowDirection flowDirection) 1100if (textAlignment == TextAlignment.Left) 1102textAlignment = (flowDirection == FlowDirection.LeftToRight) ? TextAlignment.Left : TextAlignment.Right; 1104else if (textAlignment == TextAlignment.Right) 1106textAlignment = (flowDirection == FlowDirection.LeftToRight) ? TextAlignment.Right : TextAlignment.Left; 1155internal static HorizontalAlignment GetHorizontalAlignmentFromTextAlignment(TextAlignment textAlignment) 1161case TextAlignment.Left: 1164case TextAlignment.Center: 1167case TextAlignment.Right: 1170case TextAlignment.Justify: 1179internal static TextAlignment GetTextAlignmentFromHorizontalAlignment(HorizontalAlignment horizontalAlignment) 1181TextAlignment textAlignment; 1185textAlignment = TextAlignment.Left; 1188textAlignment = TextAlignment.Center; 1191textAlignment = TextAlignment.Right; 1195textAlignment = TextAlignment.Justify;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
7969TypeConverterType = typeof(System.Windows.TextAlignment) 7988TypeConverterType = typeof(System.Windows.TextAlignment) 8379TypeConverterType = typeof(System.Windows.TextAlignment)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
13011typeof(System.Windows.TextAlignment), 13015TypeConverterType = typeof(System.Windows.TextAlignment)
PresentationUI (2)
MS\Internal\Documents\Application\PageTextBox.cs (1)
337TextAlignment = TextAlignment.Right;
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
114_editableTextBox.TextAlignment = TextAlignment.Right;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (2)
92public TextAlignment TextAlignment 94get { return (TextAlignment)GetValue(TextAlignmentProperty); }