1 instantiation of TextAlignment
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11702
bamlType.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)
233
TextAlignment
.Left,
1237
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)
432
if (widthChanged && lineProperties.TextAlignment !=
TextAlignment
.Left)
491
if (oldWidth != desiredSize.Width && lineProperties.TextAlignment !=
TextAlignment
.Left)
719
TextAlignment
alignment = this.CalculatedTextAlignment;
2043
private void GetTightBoundingGeometryFromLineIndex(int lineIndex, int unclippedStartOffset, int unclippedEndOffset,
TextAlignment
alignment, double endOfParaGlyphWidth, ref Geometry geometry)
2129
private void GetTightBoundingGeometryFromLineIndexForSelection(TextBoxLine line, int lineIndex, int unclippedStartOffset, int unclippedEndOffset,
TextAlignment
alignment, double endOfParaGlyphWidth, ref Geometry geometry)
2863
private double GetContentOffset(double lineWidth,
TextAlignment
aligment)
2870
case
TextAlignment
.Right:
2874
case
TextAlignment
.Center:
2888
private
TextAlignment
HorizontalAlignmentToTextAlignment(HorizontalAlignment horizontalAlignment)
2890
TextAlignment
textAlignment;
2896
textAlignment =
TextAlignment
.Left;
2900
textAlignment =
TextAlignment
.Right;
2904
textAlignment =
TextAlignment
.Center;
2908
textAlignment =
TextAlignment
.Justify;
2956
private double GetTextAlignmentCorrection(
TextAlignment
textAlignment, double width)
2960
if (textAlignment !=
TextAlignment
.Left &&
3077
private
TextAlignment
CalculatedTextAlignment
3090
return (
TextAlignment
)host.GetValue(TextBox.TextAlignmentProperty);
3109
return (
TextAlignment
)host.GetValue(TextBox.TextAlignmentProperty);
MS\Internal\PtsHost\Line.cs (7)
58
_textAlignment = (
TextAlignment
)TextParagraph.Element.GetValue(Block.TextAlignmentProperty);
1118
if ((_textAlignment ==
TextAlignment
.Center || _textAlignment ==
TextAlignment
.Right) && !ShowEllipses)
1130
if (_textAlignment ==
TextAlignment
.Center)
1170
return ((_textAlignment ==
TextAlignment
.Right || _textAlignment ==
TextAlignment
.Center) && IsWidthAdjusted);
1293
private
TextAlignment
_textAlignment;
MS\Internal\PtsHost\TextParagraph.cs (2)
212
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)
1024
public
TextAlignment
TextAlignment
1026
get { return (
TextAlignment
)GetValue(TextAlignmentProperty); }
1035
public static void SetTextAlignment(DependencyObject element,
TextAlignment
value)
1046
public static
TextAlignment
GetTextAlignment(DependencyObject element)
1050
return (
TextAlignment
)element.GetValue(TextAlignmentProperty);
3111
case
TextAlignment
.Right:
3115
case
TextAlignment
.Center:
System\Windows\Controls\TextBox.cs (2)
747
public
TextAlignment
TextAlignment
751
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)
181
public
TextAlignment
TextAlignment
183
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)
7391
bamlMember.TypeConverterType = typeof(System.Windows.
TextAlignment
);
7408
bamlMember.TypeConverterType = typeof(System.Windows.
TextAlignment
);
7759
bamlMember.TypeConverterType = typeof(System.Windows.
TextAlignment
);
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
11700
typeof(System.Windows.
TextAlignment
),
11703
bamlType.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)
119
_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); }