1 instantiation of TextAlignment
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
13015
DefaultConstructor = delegate () { return new System.Windows.
TextAlignment
(); },
133 references to TextAlignment
PresentationCore (14)
MS\Internal\TextFormatting\GenericTextProperties.cs (4)
237
TextAlignment
textAlignment,
287
public override
TextAlignment
TextAlignment
369
internal void SetTextAlignment(
TextAlignment
textAlignment)
392
private
TextAlignment
_textAlignment;
MS\Internal\TextFormatting\SimpleTextLine.cs (3)
351
if(pap.Align !=
TextAlignment
.Left)
355
case
TextAlignment
.Right:
359
case
TextAlignment
.Center:
MS\Internal\TextFormatting\TextMetrics.cs (2)
234
case
TextAlignment
.Right:
245
case
TextAlignment
.Center:
MS\Internal\TextFormatting\TextProperties.cs (2)
103
internal
TextAlignment
Align
110
get { return _paragraphProperties.TextAlignment ==
TextAlignment
.Justify; }
System\Windows\Media\FormattedText.cs (2)
230
TextAlignment
.Left,
1217
public
TextAlignment
TextAlignment
System\Windows\Media\textformatting\TextParagraphProperties.cs (1)
33
public abstract
TextAlignment
TextAlignment
PresentationFramework (115)
MS\Internal\Documents\TextBoxLine.cs (6)
182
lineProperties.IgnoreTextAlignment = (lineProperties.TextAlignment !=
TextAlignment
.Justify);
530
if (_lineProperties.TextAlignmentInternal ==
TextAlignment
.Right)
534
else if (_lineProperties.TextAlignmentInternal ==
TextAlignment
.Center)
541
if (_lineProperties.TextAlignmentInternal ==
TextAlignment
.Center)
572
return ((_lineProperties.TextAlignmentInternal ==
TextAlignment
.Right || _lineProperties.TextAlignmentInternal ==
TextAlignment
.Center) && IsWidthAdjusted);
MS\Internal\Documents\TextBoxView.cs (19)
390
if (widthChanged && lineProperties.TextAlignment !=
TextAlignment
.Left)
449
if (oldWidth != desiredSize.Width && lineProperties.TextAlignment !=
TextAlignment
.Left)
677
TextAlignment
alignment = this.CalculatedTextAlignment;
2003
private void GetTightBoundingGeometryFromLineIndex(int lineIndex, int unclippedStartOffset, int unclippedEndOffset,
TextAlignment
alignment, double endOfParaGlyphWidth, ref Geometry geometry)
2089
private void GetTightBoundingGeometryFromLineIndexForSelection(TextBoxLine line, int lineIndex, int unclippedStartOffset, int unclippedEndOffset,
TextAlignment
alignment, double endOfParaGlyphWidth, ref Geometry geometry)
2823
private double GetContentOffset(double lineWidth,
TextAlignment
aligment)
2830
case
TextAlignment
.Right:
2834
case
TextAlignment
.Center:
2848
private
TextAlignment
HorizontalAlignmentToTextAlignment(HorizontalAlignment horizontalAlignment)
2850
TextAlignment
textAlignment;
2856
textAlignment =
TextAlignment
.Left;
2860
textAlignment =
TextAlignment
.Right;
2864
textAlignment =
TextAlignment
.Center;
2868
textAlignment =
TextAlignment
.Justify;
2916
private double GetTextAlignmentCorrection(
TextAlignment
textAlignment, double width)
2920
if (textAlignment !=
TextAlignment
.Left &&
3037
private
TextAlignment
CalculatedTextAlignment
3050
return (
TextAlignment
)host.GetValue(TextBox.TextAlignmentProperty);
3069
return (
TextAlignment
)host.GetValue(TextBox.TextAlignmentProperty);
MS\Internal\PtsHost\Line.cs (7)
50
_textAlignment = (
TextAlignment
)TextParagraph.Element.GetValue(Block.TextAlignmentProperty);
1106
if ((_textAlignment ==
TextAlignment
.Center || _textAlignment ==
TextAlignment
.Right) && !ShowEllipses)
1118
if (_textAlignment ==
TextAlignment
.Center)
1158
return ((_textAlignment ==
TextAlignment
.Right || _textAlignment ==
TextAlignment
.Center) && IsWidthAdjusted);
1281
private
TextAlignment
_textAlignment;
MS\Internal\PtsHost\TextParagraph.cs (2)
201
isParagraphJustified = ((
TextAlignment
)Element.GetValue(Block.TextAlignmentProperty)) ==
TextAlignment
.Justify;
MS\Internal\Text\Line.cs (4)
522
if (_textAlignment ==
TextAlignment
.Center)
585
return ((_textAlignment ==
TextAlignment
.Right || _textAlignment ==
TextAlignment
.Center) && IsWidthAdjusted);
651
protected
TextAlignment
_textAlignment;
MS\Internal\Text\LineProperties.cs (8)
41
public override
TextAlignment
TextAlignment { get { return IgnoreTextAlignment ?
TextAlignment
.Left : _textAlignment; } }
108
: this(element, contentHost, defaultTextProperties, markerProperties, (
TextAlignment
)element.GetValue(Block.TextAlignmentProperty))
120
TextAlignment
textAlignment)
235
internal
TextAlignment
TextAlignmentInternal
308
private
TextAlignment
_textAlignment;
336
public override
TextAlignment
TextAlignment { get { return _lp.TextAlignment; } }
412
public override
TextAlignment
TextAlignment { get { return _lp.TextAlignment; } }
System\Windows\Controls\AccessText.cs (2)
345
public
TextAlignment
TextAlignment
347
get { return (
TextAlignment
) GetValue(TextAlignmentProperty); }
System\Windows\Controls\TextBlock.cs (7)
1022
public
TextAlignment
TextAlignment
1024
get { return (
TextAlignment
)GetValue(TextAlignmentProperty); }
1033
public static void SetTextAlignment(DependencyObject element,
TextAlignment
value)
1044
public static
TextAlignment
GetTextAlignment(DependencyObject element)
1048
return (
TextAlignment
)element.GetValue(TextAlignmentProperty);
3102
case
TextAlignment
.Right:
3106
case
TextAlignment
.Center:
System\Windows\Controls\TextBox.cs (2)
749
public
TextAlignment
TextAlignment
753
return (
TextAlignment
)GetValue(TextAlignmentProperty);
System\Windows\Controls\TextRangeAdaptor.cs (6)
202
TextAlignment
alignmentWCP = (
TextAlignment
)tp.GetValue(Block.TextAlignmentProperty);
206
case
TextAlignment
.Left:
210
case
TextAlignment
.Right:
213
case
TextAlignment
.Center:
216
case
TextAlignment
.Justify:
System\Windows\Documents\AnchoredBlock.cs (2)
172
public
TextAlignment
TextAlignment
174
get { return (
TextAlignment
)GetValue(TextAlignmentProperty); }
System\Windows\Documents\Block.cs (13)
212
typeof(
TextAlignment
),
215
TextAlignment
.Left,
222
public
TextAlignment
TextAlignment
224
get { return (
TextAlignment
)GetValue(TextAlignmentProperty); }
233
public static void SetTextAlignment(DependencyObject element,
TextAlignment
value)
244
public static
TextAlignment
GetTextAlignment(DependencyObject element)
248
return (
TextAlignment
)element.GetValue(TextAlignmentProperty);
513
TextAlignment
value = (
TextAlignment
)o;
514
return value ==
TextAlignment
.Center
515
|| value ==
TextAlignment
.Justify
516
|| value ==
TextAlignment
.Left
517
|| value ==
TextAlignment
.Right;
System\Windows\Documents\FlowDocument.cs (2)
341
public
TextAlignment
TextAlignment
343
get { return (
TextAlignment
)GetValue(TextAlignmentProperty); }
System\Windows\Documents\ListItem.cs (2)
218
public
TextAlignment
TextAlignment
220
get { return (
TextAlignment
)GetValue(TextAlignmentProperty); }
System\Windows\Documents\TableCell.cs (2)
237
public
TextAlignment
TextAlignment
239
get { return (
TextAlignment
)GetValue(TextAlignmentProperty); }
System\windows\Documents\TextEditorParagraphs.cs (4)
72
TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty,
TextAlignment
.Left, /*applyToParagraphs*/true);
87
TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty,
TextAlignment
.Center, /*applyToParagraphs*/true);
102
TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty,
TextAlignment
.Right, /*applyToParagraphs*/true);
117
TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty,
TextAlignment
.Justify, /*applyToParagraphs*/true);
System\Windows\Documents\TextRangeEdit.cs (22)
869
Invariant.Assert(value is
TextAlignment
, "Expecting TextAlignment as a value of a Paragraph.TextAlignmentProperty");
872
newValue = ComputeNewTextAlignmentValue((
TextAlignment
)value, flowDirection);
881
HorizontalAlignment horizontalAlignment = GetHorizontalAlignmentFromTextAlignment((
TextAlignment
)newValue);
1099
private static
TextAlignment
ComputeNewTextAlignmentValue(
TextAlignment
textAlignment, FlowDirection flowDirection)
1101
if (textAlignment ==
TextAlignment
.Left)
1103
textAlignment = (flowDirection == FlowDirection.LeftToRight) ?
TextAlignment
.Left :
TextAlignment
.Right;
1105
else if (textAlignment ==
TextAlignment
.Right)
1107
textAlignment = (flowDirection == FlowDirection.LeftToRight) ?
TextAlignment
.Right :
TextAlignment
.Left;
1156
internal static HorizontalAlignment GetHorizontalAlignmentFromTextAlignment(
TextAlignment
textAlignment)
1162
case
TextAlignment
.Left:
1165
case
TextAlignment
.Center:
1168
case
TextAlignment
.Right:
1171
case
TextAlignment
.Justify:
1180
internal static
TextAlignment
GetTextAlignmentFromHorizontalAlignment(HorizontalAlignment horizontalAlignment)
1182
TextAlignment
textAlignment;
1186
textAlignment =
TextAlignment
.Left;
1189
textAlignment =
TextAlignment
.Center;
1192
textAlignment =
TextAlignment
.Right;
1196
textAlignment =
TextAlignment
.Justify;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
7970
TypeConverterType = typeof(System.Windows.
TextAlignment
)
7989
TypeConverterType = typeof(System.Windows.
TextAlignment
)
8380
TypeConverterType = typeof(System.Windows.
TextAlignment
)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
13012
typeof(System.Windows.
TextAlignment
),
13016
TypeConverterType = typeof(System.Windows.
TextAlignment
)
PresentationUI (2)
MS\Internal\Documents\Application\PageTextBox.cs (1)
338
TextAlignment =
TextAlignment
.Right;
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
115
_editableTextBox.TextAlignment =
TextAlignment
.Right;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (2)
93
public
TextAlignment
TextAlignment
95
get { return (
TextAlignment
)GetValue(TextAlignmentProperty); }