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