1 instantiation of TextAlignment
PresentationFramework (1)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11700
bamlType.DefaultConstructor = delegate() { return new System.Windows.
TextAlignment
(); };
129 references to TextAlignment
PresentationCore (14)
Core\CSharp\MS\Internal\TextFormatting\GenericTextProperties.cs (4)
240
TextAlignment
textAlignment,
290
public override
TextAlignment
TextAlignment
372
internal void SetTextAlignment(
TextAlignment
textAlignment)
395
private
TextAlignment
_textAlignment;
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (3)
364
if(pap.Align !=
TextAlignment
.Left)
368
case
TextAlignment
.Right:
372
case
TextAlignment
.Center:
Core\CSharp\MS\Internal\TextFormatting\TextMetrics.cs (2)
255
case
TextAlignment
.Right:
266
case
TextAlignment
.Center:
Core\CSharp\MS\Internal\TextFormatting\TextProperties.cs (2)
111
internal
TextAlignment
Align
118
get { return _paragraphProperties.TextAlignment ==
TextAlignment
.Justify; }
Core\CSharp\System\Windows\Media\FormattedText.cs (2)
253
TextAlignment
.Left,
1266
public
TextAlignment
TextAlignment
Core\CSharp\System\Windows\Media\TextFormatting\TextParagraphProperties.cs (1)
42
public abstract
TextAlignment
TextAlignment
PresentationFramework (115)
src\Framework\MS\Internal\Documents\TextBoxLine.cs (6)
191
lineProperties.IgnoreTextAlignment = (lineProperties.TextAlignment !=
TextAlignment
.Justify);
539
if (_lineProperties.TextAlignmentInternal ==
TextAlignment
.Right)
543
else if (_lineProperties.TextAlignmentInternal ==
TextAlignment
.Center)
550
if (_lineProperties.TextAlignmentInternal ==
TextAlignment
.Center)
581
return ((_lineProperties.TextAlignmentInternal ==
TextAlignment
.Right || _lineProperties.TextAlignmentInternal ==
TextAlignment
.Center) && IsWidthAdjusted);
src\Framework\MS\Internal\Documents\TextBoxView.cs (19)
436
if (widthChanged && lineProperties.TextAlignment !=
TextAlignment
.Left)
494
if (oldWidth != desiredSize.Width && lineProperties.TextAlignment !=
TextAlignment
.Left)
725
TextAlignment
alignment = this.CalculatedTextAlignment;
2041
private void GetTightBoundingGeometryFromLineIndex(int lineIndex, int unclippedStartOffset, int unclippedEndOffset,
TextAlignment
alignment, double endOfParaGlyphWidth, ref Geometry geometry)
2127
private void GetTightBoundingGeometryFromLineIndexForSelection(TextBoxLine line, int lineIndex, int unclippedStartOffset, int unclippedEndOffset,
TextAlignment
alignment, double endOfParaGlyphWidth, ref Geometry geometry)
2843
private double GetContentOffset(double lineWidth,
TextAlignment
aligment)
2850
case
TextAlignment
.Right:
2854
case
TextAlignment
.Center:
2868
private
TextAlignment
HorizontalAlignmentToTextAlignment(HorizontalAlignment horizontalAlignment)
2870
TextAlignment
textAlignment;
2876
textAlignment =
TextAlignment
.Left;
2880
textAlignment =
TextAlignment
.Right;
2884
textAlignment =
TextAlignment
.Center;
2888
textAlignment =
TextAlignment
.Justify;
2935
private double GetTextAlignmentCorrection(
TextAlignment
textAlignment, double width)
2939
if (textAlignment !=
TextAlignment
.Left &&
3056
private
TextAlignment
CalculatedTextAlignment
3069
return (
TextAlignment
)host.GetValue(TextBox.TextAlignmentProperty);
3088
return (
TextAlignment
)host.GetValue(TextBox.TextAlignmentProperty);
src\Framework\MS\Internal\PtsHost\Line.cs (7)
67
_textAlignment = (
TextAlignment
)TextParagraph.Element.GetValue(Block.TextAlignmentProperty);
1132
if ((_textAlignment ==
TextAlignment
.Center || _textAlignment ==
TextAlignment
.Right) && !ShowEllipses)
1144
if (_textAlignment ==
TextAlignment
.Center)
1184
return ((_textAlignment ==
TextAlignment
.Right || _textAlignment ==
TextAlignment
.Center) && IsWidthAdjusted);
1307
private
TextAlignment
_textAlignment;
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (2)
224
isParagraphJustified = ((
TextAlignment
)Element.GetValue(Block.TextAlignmentProperty)) ==
TextAlignment
.Justify;
src\Framework\MS\Internal\Text\Line.cs (4)
532
if (_textAlignment ==
TextAlignment
.Center)
595
return ((_textAlignment ==
TextAlignment
.Right || _textAlignment ==
TextAlignment
.Center) && IsWidthAdjusted);
661
protected
TextAlignment
_textAlignment;
src\Framework\MS\Internal\Text\LineProperties.cs (8)
48
public override
TextAlignment
TextAlignment { get { return IgnoreTextAlignment ?
TextAlignment
.Left : _textAlignment; } }
115
: this(element, contentHost, defaultTextProperties, markerProperties, (
TextAlignment
)element.GetValue(Block.TextAlignmentProperty))
127
TextAlignment
textAlignment)
242
internal
TextAlignment
TextAlignmentInternal
315
private
TextAlignment
_textAlignment;
343
public override
TextAlignment
TextAlignment { get { return _lp.TextAlignment; } }
419
public override
TextAlignment
TextAlignment { get { return _lp.TextAlignment; } }
src\Framework\System\Windows\Controls\AccessText.cs (2)
347
public
TextAlignment
TextAlignment
349
get { return (
TextAlignment
) GetValue(TextAlignmentProperty); }
src\Framework\System\Windows\Controls\TextBlock.cs (7)
1106
public
TextAlignment
TextAlignment
1108
get { return (
TextAlignment
)GetValue(TextAlignmentProperty); }
1117
public static void SetTextAlignment(DependencyObject element,
TextAlignment
value)
1131
public static
TextAlignment
GetTextAlignment(DependencyObject element)
1138
return (
TextAlignment
)element.GetValue(TextAlignmentProperty);
3211
case
TextAlignment
.Right:
3215
case
TextAlignment
.Center:
src\Framework\System\Windows\Controls\TextBox.cs (2)
783
public
TextAlignment
TextAlignment
787
return (
TextAlignment
)GetValue(TextAlignmentProperty);
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (6)
212
TextAlignment
alignmentWCP = (
TextAlignment
)tp.GetValue(Block.TextAlignmentProperty);
216
case
TextAlignment
.Left:
220
case
TextAlignment
.Right:
223
case
TextAlignment
.Center:
226
case
TextAlignment
.Justify:
src\Framework\System\Windows\Documents\AnchoredBlock.cs (2)
182
public
TextAlignment
TextAlignment
184
get { return (
TextAlignment
)GetValue(TextAlignmentProperty); }
src\Framework\System\Windows\Documents\Block.cs (13)
220
typeof(
TextAlignment
),
223
TextAlignment
.Left,
230
public
TextAlignment
TextAlignment
232
get { return (
TextAlignment
)GetValue(TextAlignmentProperty); }
241
public static void SetTextAlignment(DependencyObject element,
TextAlignment
value)
255
public static
TextAlignment
GetTextAlignment(DependencyObject element)
262
return (
TextAlignment
)element.GetValue(TextAlignmentProperty);
539
TextAlignment
value = (
TextAlignment
)o;
540
return value ==
TextAlignment
.Center
541
|| value ==
TextAlignment
.Justify
542
|| value ==
TextAlignment
.Left
543
|| value ==
TextAlignment
.Right;
src\Framework\System\Windows\Documents\FlowDocument.cs (2)
349
public
TextAlignment
TextAlignment
351
get { return (
TextAlignment
)GetValue(TextAlignmentProperty); }
src\Framework\System\Windows\Documents\ListItem.cs (2)
226
public
TextAlignment
TextAlignment
228
get { return (
TextAlignment
)GetValue(TextAlignmentProperty); }
src\Framework\System\Windows\Documents\TableCell.cs (2)
257
public
TextAlignment
TextAlignment
259
get { return (
TextAlignment
)GetValue(TextAlignmentProperty); }
src\Framework\System\windows\Documents\TextEditorParagraphs.cs (4)
90
TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty,
TextAlignment
.Left, /*applyToParagraphs*/true);
105
TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty,
TextAlignment
.Center, /*applyToParagraphs*/true);
120
TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty,
TextAlignment
.Right, /*applyToParagraphs*/true);
135
TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty,
TextAlignment
.Justify, /*applyToParagraphs*/true);
src\Framework\System\Windows\Documents\TextRangeEdit.cs (22)
873
Invariant.Assert(value is
TextAlignment
, "Expecting TextAlignment as a value of a Paragraph.TextAlignmentProperty");
876
newValue = ComputeNewTextAlignmentValue((
TextAlignment
)value, flowDirection);
885
HorizontalAlignment horizontalAlignment = GetHorizontalAlignmentFromTextAlignment((
TextAlignment
)newValue);
1103
private static
TextAlignment
ComputeNewTextAlignmentValue(
TextAlignment
textAlignment, FlowDirection flowDirection)
1105
if (textAlignment ==
TextAlignment
.Left)
1107
textAlignment = (flowDirection == FlowDirection.LeftToRight) ?
TextAlignment
.Left :
TextAlignment
.Right;
1109
else if (textAlignment ==
TextAlignment
.Right)
1111
textAlignment = (flowDirection == FlowDirection.LeftToRight) ?
TextAlignment
.Right :
TextAlignment
.Left;
1160
internal static HorizontalAlignment GetHorizontalAlignmentFromTextAlignment(
TextAlignment
textAlignment)
1166
case
TextAlignment
.Left:
1169
case
TextAlignment
.Center:
1172
case
TextAlignment
.Right:
1175
case
TextAlignment
.Justify:
1184
internal static
TextAlignment
GetTextAlignmentFromHorizontalAlignment(HorizontalAlignment horizontalAlignment)
1186
TextAlignment
textAlignment;
1190
textAlignment =
TextAlignment
.Left;
1193
textAlignment =
TextAlignment
.Center;
1196
textAlignment =
TextAlignment
.Right;
1200
textAlignment =
TextAlignment
.Justify;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
7351
bamlMember.TypeConverterType = typeof(System.Windows.
TextAlignment
);
7368
bamlMember.TypeConverterType = typeof(System.Windows.
TextAlignment
);
7719
bamlMember.TypeConverterType = typeof(System.Windows.
TextAlignment
);
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
11698
typeof(System.Windows.
TextAlignment
),
11701
bamlType.TypeConverterType = typeof(System.Windows.
TextAlignment
);