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