80 references to TextAlignment
Microsoft.Maui (2)
Core\ITextAlignment.cs (2)
11
TextAlignment
HorizontalTextAlignment { get; }
16
TextAlignment
VerticalTextAlignment { get; }
Microsoft.Maui.Controls (78)
BindableLayout\BindableLayout.cs (2)
235
var label = new Label { HorizontalTextAlignment =
TextAlignment
.Center };
499
return new Label { Text = emptyView?.ToString(), HorizontalTextAlignment =
TextAlignment
.Center };
Cells\EntryCell.cs (6)
33
public
TextAlignment
HorizontalTextAlignment
35
get { return (
TextAlignment
)GetValue(TextAlignmentElement.HorizontalTextAlignmentProperty); }
40
public
TextAlignment
VerticalTextAlignment
42
get { return (
TextAlignment
)GetValue(TextAlignmentElement.VerticalTextAlignmentProperty); }
89
void ITextAlignmentElement.OnHorizontalTextAlignmentPropertyChanged(
TextAlignment
oldValue,
TextAlignment
newValue)
Editor\Editor.cs (8)
58
public static readonly BindableProperty VerticalTextAlignmentProperty = BindableProperty.Create(nameof(VerticalTextAlignment), typeof(
TextAlignment
), typeof(Editor),
TextAlignment
.Start);
69
public
TextAlignment
HorizontalTextAlignment
71
get { return (
TextAlignment
)GetValue(HorizontalTextAlignmentProperty); }
75
public
TextAlignment
VerticalTextAlignment
77
get { return (
TextAlignment
)GetValue(VerticalTextAlignmentProperty); }
124
public void OnHorizontalTextAlignmentPropertyChanged(
TextAlignment
oldValue,
TextAlignment
newValue)
Entry\Entry.cs (6)
101
public
TextAlignment
HorizontalTextAlignment
103
get { return (
TextAlignment
)GetValue(TextAlignmentElement.HorizontalTextAlignmentProperty); }
110
public
TextAlignment
VerticalTextAlignment
112
get { return (
TextAlignment
)GetValue(TextAlignmentElement.VerticalTextAlignmentProperty); }
195
void ITextAlignmentElement.OnHorizontalTextAlignmentPropertyChanged(
TextAlignment
oldValue,
TextAlignment
newValue)
ITextAlignmentElement.cs (4)
7
TextAlignment
HorizontalTextAlignment { get; }
9
TextAlignment
VerticalTextAlignment { get; }
12
void OnHorizontalTextAlignmentPropertyChanged(
TextAlignment
oldValue,
TextAlignment
newValue);
Label\Label.cs (8)
24
public static readonly BindableProperty VerticalTextAlignmentProperty = BindableProperty.Create(nameof(VerticalTextAlignment), typeof(
TextAlignment
), typeof(Label),
TextAlignment
.Start);
141
public
TextAlignment
HorizontalTextAlignment
143
get { return (
TextAlignment
)GetValue(TextAlignmentElement.HorizontalTextAlignmentProperty); }
176
public
TextAlignment
VerticalTextAlignment
178
get { return (
TextAlignment
)GetValue(VerticalTextAlignmentProperty); }
356
void ITextAlignmentElement.OnHorizontalTextAlignmentPropertyChanged(
TextAlignment
oldValue,
TextAlignment
newValue)
Picker\Picker.cs (6)
191
public
TextAlignment
HorizontalTextAlignment
193
get { return (
TextAlignment
)GetValue(TextAlignmentElement.HorizontalTextAlignmentProperty); }
198
public
TextAlignment
VerticalTextAlignment
200
get { return (
TextAlignment
)GetValue(TextAlignmentElement.VerticalTextAlignmentProperty); }
428
void ITextAlignmentElement.OnHorizontalTextAlignmentPropertyChanged(
TextAlignment
oldValue,
TextAlignment
newValue)
SearchBar\SearchBar.cs (6)
83
public
TextAlignment
HorizontalTextAlignment
85
get { return (
TextAlignment
)GetValue(TextAlignmentElement.HorizontalTextAlignmentProperty); }
90
public
TextAlignment
VerticalTextAlignment
92
get { return (
TextAlignment
)GetValue(TextAlignmentElement.VerticalTextAlignmentProperty); }
147
void ITextAlignmentElement.OnHorizontalTextAlignmentPropertyChanged(
TextAlignment
oldValue,
TextAlignment
newValue)
Shell\BaseShellItem.cs (3)
369
new Setter { Property = Label.VerticalTextAlignmentProperty, Value =
TextAlignment
.Center }
514
defaultLabelClass.Setters.Add(new Setter { Property = Label.HorizontalTextAlignmentProperty, Value =
TextAlignment
.Start });
519
defaultLabelClass.Setters.Add(new Setter { Property = Label.HorizontalTextAlignmentProperty, Value =
TextAlignment
.Start });
Shell\SearchHandler.cs (6)
113
void ITextAlignmentElement.OnHorizontalTextAlignmentPropertyChanged(
TextAlignment
oldValue,
TextAlignment
newValue)
118
public
TextAlignment
HorizontalTextAlignment
120
get { return (
TextAlignment
)GetValue(TextAlignmentElement.HorizontalTextAlignmentProperty); }
125
public
TextAlignment
VerticalTextAlignment
127
get { return (
TextAlignment
)GetValue(TextAlignmentElement.VerticalTextAlignmentProperty); }
TextAlignment.cs (17)
22
return
TextAlignment
.Start;
24
return
TextAlignment
.Start;
26
return
TextAlignment
.End;
28
return
TextAlignment
.End;
30
return
TextAlignment
.Center;
32
return
TextAlignment
.Center;
34
return
TextAlignment
.End;
36
return
TextAlignment
.Center;
38
if (Enum.TryParse(strValue, out
TextAlignment
direction))
41
throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(
TextAlignment
)));
46
if (value is not
TextAlignment
ta)
48
if (ta ==
TextAlignment
.Start)
49
return nameof(
TextAlignment
.Start);
50
if (ta ==
TextAlignment
.Center)
51
return nameof(
TextAlignment
.Center);
52
if (ta ==
TextAlignment
.End)
53
return nameof(
TextAlignment
.End);
TextAlignmentElement.cs (6)
8
BindableProperty.Create(nameof(ITextAlignmentElement.HorizontalTextAlignment), typeof(
TextAlignment
), typeof(ITextAlignmentElement),
TextAlignment
.Start,
13
BindableProperty.Create(nameof(ITextAlignmentElement.VerticalTextAlignment), typeof(
TextAlignment
), typeof(ITextAlignmentElement),
TextAlignment
.Center);
17
((ITextAlignmentElement)bindable).OnHorizontalTextAlignmentPropertyChanged((
TextAlignment
)oldValue, (
TextAlignment
)newValue);