private static PointF smethod_1(RectangleF A_0, SizeF A_1, TextBoxAnchor A_2) { SizeF size = A_0.Size; PointF location = A_0.Location; if (size.Height <= A_1.Height) { return(location); } switch (A_2) { case TextBoxAnchor.Top: case TextBoxAnchor.TopCentered: case TextBoxAnchor.MiddleCentered: case TextBoxAnchor.BottomCentered: case TextBoxAnchor.TopBaseline: case TextBoxAnchor.BottomBaseline: case TextBoxAnchor.TopCenteredBaseline: case TextBoxAnchor.BottomCenteredBaseline: return(location); case TextBoxAnchor.Middle: return(new PointF(location.X, location.Y + ((size.Height - A_1.Height) * 0.5f))); case TextBoxAnchor.Bottom: return(new PointF(location.X, location.Y + (size.Height - A_1.Height))); } throw new ArgumentOutOfRangeException(); }
private ShapeVerticalAlignment method_73(TextBoxAnchor A_0) { switch (A_0) { case TextBoxAnchor.Middle: return(ShapeVerticalAlignment.Center); case TextBoxAnchor.Bottom: return(ShapeVerticalAlignment.Bottom); } return(ShapeVerticalAlignment.Top); }
internal static TextAnchor smethod_51(TextBoxAnchor A_0) { switch (A_0) { case TextBoxAnchor.Middle: return(TextAnchor.Center); case TextBoxAnchor.Bottom: return(TextAnchor.Bottom); } return(TextAnchor.Top); }
internal static ShapeVerticalAlignment smethod_48(TextBoxAnchor A_0) { switch (A_0) { case TextBoxAnchor.Top: return(ShapeVerticalAlignment.Top); case TextBoxAnchor.Middle: return(ShapeVerticalAlignment.Center); case TextBoxAnchor.Bottom: return(ShapeVerticalAlignment.Bottom); } return(ShapeVerticalAlignment.None); }
private void method_5(TextBoxAnchor A_0) { PointF location = smethod_1(this.rectangleF_0, new SizeF(this.interface55_0.imethod_4(), this.interface55_0.imethod_0()), A_0); this.rectangleF_0 = new RectangleF(location, this.rectangleF_0.Size); }
internal void method_15(TextBoxAnchor A_0) { this.method_17(0x87, A_0); }
internal static string smethod_52(TextBoxAnchor A_0) { return((string)Class791.smethod_3(hashtable_47, A_0, "")); }