76 references to HorizontalAlignment
PresentationFramework (71)
src\Framework\MS\Internal\Documents\TextBoxView.cs (7)
2868
private TextAlignment HorizontalAlignmentToTextAlignment(
HorizontalAlignment
horizontalAlignment)
2874
case
HorizontalAlignment
.Left:
2879
case
HorizontalAlignment
.Right:
2883
case
HorizontalAlignment
.Center:
2887
case
HorizontalAlignment
.Stretch:
3075
return HorizontalAlignmentToTextAlignment((
HorizontalAlignment
)o);
3084
return HorizontalAlignmentToTextAlignment((
HorizontalAlignment
)o);
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (1)
893
if(floater.HorizontalAlignment !=
HorizontalAlignment
.Stretch)
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (12)
136
case
HorizontalAlignment
.Right:
139
case
HorizontalAlignment
.Center:
142
case
HorizontalAlignment
.Left:
279
if(fsbbox.fsrc.du < subpageWidth && Double.IsNaN(specifiedWidth) && HorizontalAlignment !=
HorizontalAlignment
.Stretch)
462
if(fsbbox.fsrc.du < subpageWidth && Double.IsNaN(specifiedWidth) && HorizontalAlignment !=
HorizontalAlignment
.Stretch)
820
private
HorizontalAlignment
HorizontalAlignment
836
return
HorizontalAlignment
.Left;
842
return
HorizontalAlignment
.Right;
848
return
HorizontalAlignment
.Center;
853
return
HorizontalAlignment
.Center;
870
if (HorizontalAlignment ==
HorizontalAlignment
.Stretch)
926
if(Element is Floater && HorizontalAlignment !=
HorizontalAlignment
.Stretch)
src\Framework\System\Windows\Controls\Control.cs (4)
293
typeof(
HorizontalAlignment
),
295
new FrameworkPropertyMetadata(
HorizontalAlignment
.Left),
304
public
HorizontalAlignment
HorizontalContentAlignment
306
get { return (
HorizontalAlignment
) GetValue(HorizontalContentAlignmentProperty); }
src\Framework\System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
43
style.Setters.Add(new Setter(CheckBox.HorizontalAlignmentProperty,
HorizontalAlignment
.Center));
66
style.Setters.Add(new Setter(CheckBox.HorizontalAlignmentProperty,
HorizontalAlignment
.Center));
src\Framework\System\Windows\Controls\DatePicker.cs (1)
1072
_calendar.HorizontalAlignment =
HorizontalAlignment
.Left;
src\Framework\System\Windows\Controls\GridSplitter.cs (4)
99
FrameworkElement.HorizontalAlignmentProperty.OverrideMetadata(typeof(GridSplitter), new FrameworkPropertyMetadata(
HorizontalAlignment
.Right));
314
if (HorizontalAlignment !=
HorizontalAlignment
.Stretch)
346
case
HorizontalAlignment
.Left:
349
case
HorizontalAlignment
.Right:
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1129
paddingHeader.HorizontalAlignment =
HorizontalAlignment
.Stretch;
src\Framework\System\Windows\Controls\RichTextBox.cs (2)
804
if (this.RenderScope.HorizontalAlignment !=
HorizontalAlignment
.Stretch)
806
this.RenderScope.HorizontalAlignment =
HorizontalAlignment
.Stretch;
src\Framework\System\Windows\Controls\Separator.cs (1)
36
container.HorizontalContentAlignment =
HorizontalAlignment
.Stretch;
src\Framework\System\Windows\Controls\UserControl.cs (1)
34
HorizontalContentAlignmentProperty.OverrideMetadata(typeof(UserControl), new FrameworkPropertyMetadata(
HorizontalAlignment
.Stretch));
src\Framework\System\Windows\Documents\Floater.cs (3)
85
HorizontalAlignment
.Stretch,
91
public
HorizontalAlignment
HorizontalAlignment
93
get { return (
HorizontalAlignment
)GetValue(HorizontalAlignmentProperty); }
src\Framework\System\Windows\Documents\TextRangeEdit.cs (12)
885
HorizontalAlignment
horizontalAlignment = GetHorizontalAlignmentFromTextAlignment((TextAlignment)newValue);
1160
internal static
HorizontalAlignment
GetHorizontalAlignmentFromTextAlignment(TextAlignment textAlignment)
1162
HorizontalAlignment
horizontalAlignment;
1167
horizontalAlignment =
HorizontalAlignment
.Left;
1170
horizontalAlignment =
HorizontalAlignment
.Center;
1173
horizontalAlignment =
HorizontalAlignment
.Right;
1176
horizontalAlignment =
HorizontalAlignment
.Stretch;
1184
internal static TextAlignment GetTextAlignmentFromHorizontalAlignment(
HorizontalAlignment
horizontalAlignment)
1189
case
HorizontalAlignment
.Left:
1192
case
HorizontalAlignment
.Center:
1195
case
HorizontalAlignment
.Right:
1199
case
HorizontalAlignment
.Stretch:
src\Framework\System\windows\Documents\UIElementPropertyUndoUnit.cs (1)
107
internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property,
HorizontalAlignment
newValue)
src\Framework\System\Windows\FrameworkElement.cs (17)
3764
typeof(
HorizontalAlignment
),
3767
HorizontalAlignment
.Stretch,
3773
HorizontalAlignment
ha = (
HorizontalAlignment
)value;
3774
return ( ha ==
HorizontalAlignment
.Left
3775
|| ha ==
HorizontalAlignment
.Center
3776
|| ha ==
HorizontalAlignment
.Right
3777
|| ha ==
HorizontalAlignment
.Stretch );
3783
public
HorizontalAlignment
HorizontalAlignment
3785
get { return (
HorizontalAlignment
) GetValue(HorizontalAlignmentProperty); }
4630
if (HorizontalAlignment !=
HorizontalAlignment
.Stretch)
4826
HorizontalAlignment
ha = HorizontalAlignment;
4831
if( ha ==
HorizontalAlignment
.Stretch
4834
ha =
HorizontalAlignment
.Left;
4844
if ( ha ==
HorizontalAlignment
.Center
4845
|| ha ==
HorizontalAlignment
.Stretch )
4849
else if (ha ==
HorizontalAlignment
.Right)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (2)
2263
bamlMember.TypeConverterType = typeof(System.Windows.
HorizontalAlignment
);
2512
bamlMember.TypeConverterType = typeof(System.Windows.
HorizontalAlignment
);
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\FlowSwitchCaseEditorDialog.cs (1)
54
HorizontalContentAlignment =
HorizontalAlignment
.Stretch,
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
860
HorizontalAlignment =
HorizontalAlignment
.Left
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (2)
76
this.text.HorizontalAlignment =
HorizontalAlignment
.Center;
87
this.stackPanel.HorizontalAlignment =
HorizontalAlignment
.Center;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
91
text.HorizontalAlignment =
HorizontalAlignment
.Center;