45 references to HorizontalAlignment
Microsoft.Maui.Graphics (17)
AbstractCanvas.cs (3)
181 public abstract void DrawString(string value, float x, float y, HorizontalAlignment horizontalAlignment); 189 HorizontalAlignment horizontalAlignment, 320 public SizeF GetStringSize(string aString, IFont font, float aFontSize, HorizontalAlignment aHorizontalAlignment, VerticalAlignment aVerticalAlignment) =>
CanvasExtensions.cs (2)
160 HorizontalAlignment horizontalAlignment, 172 HorizontalAlignment horizontalAlignment,
ICanvas.cs (3)
222 public void DrawString(string value, float x, float y, HorizontalAlignment horizontalAlignment); 242 HorizontalAlignment horizontalAlignment, 358 public SizeF GetStringSize(string value, IFont font, float fontSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment);
IStringSizeService.cs (1)
7 SizeF GetStringSize(string value, IFont font, float fontSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment);
ITextAttributes.cs (1)
13 HorizontalAlignment HorizontalAlignment { get; set; }
PictureCanvas.cs (3)
168 public void DrawString(string value, float x, float y, HorizontalAlignment horizontalAlignment) 173 public void DrawString(string value, float x, float y, float width, float height, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, 269 public SizeF GetStringSize(string value, IFont font, float fontSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)
ScalingCanvas.cs (3)
144 public void DrawString(string value, float x, float y, HorizontalAlignment horizontalAlignment) 149 public void DrawString(string value, float x, float y, float width, float height, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, 284 public SizeF GetStringSize(string value, IFont font, float fontSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)
StandardTextAttributes.cs (1)
9 public HorizontalAlignment HorizontalAlignment { get; set; }
Microsoft.Maui.Graphics.Skia (14)
SkiaCanvas.cs (5)
620 HorizontalAlignment horizAlignment) 625 if (horizAlignment == HorizontalAlignment.Left) 629 else if (horizAlignment == HorizontalAlignment.Right) 651 HorizontalAlignment horizAlignment, 689 DrawString(value?.Text, x, y, width, height, HorizontalAlignment.Left, VerticalAlignment.Top);
SkiaStringSizeService.cs (1)
22 public SizeF GetStringSize(string value, IFont font, float fontSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)
SkiaTextLayout.cs (8)
70 if (_textAttributes.HorizontalAlignment == HorizontalAlignment.Right) 72 else if (_textAttributes.HorizontalAlignment == HorizontalAlignment.Center) 133 case HorizontalAlignment.Center: 136 case HorizontalAlignment.Right: 164 case HorizontalAlignment.Center: 167 case HorizontalAlignment.Right: 193 case HorizontalAlignment.Center: 196 case HorizontalAlignment.Right:
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (14)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (8)
251 public override void DrawString(string value, float x, float y, HorizontalAlignment horizontalAlignment) 263 case HorizontalAlignment.Left: 268 case HorizontalAlignment.Right: 311 HorizontalAlignment horizontalAlignment, 320 case HorizontalAlignment.Left: 323 case HorizontalAlignment.Center: 326 case HorizontalAlignment.Right: 329 case HorizontalAlignment.Justified:
src\Graphics\src\Graphics\Platforms\Windows\PlatformStringSizeService.cs (6)
23 => GetStringSize(value, font, textSize, HorizontalAlignment.Left, VerticalAlignment.Top); 25 public SizeF GetStringSize(string value, IFont font, float textSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment) 47 HorizontalAlignment.Left => CanvasHorizontalAlignment.Left, 48 HorizontalAlignment.Center => CanvasHorizontalAlignment.Center, 49 HorizontalAlignment.Right => CanvasHorizontalAlignment.Right, 50 HorizontalAlignment.Justified => CanvasHorizontalAlignment.Justified,