MonoGameUi.Border.All C# (CSharp) Method

All() public static method

Erstellt einen Border auf Basis der Angaben für horizontale und vertikale Werte.
public static All ( int horizontal, int vertical ) : Border
horizontal int Abstand für horizontale Seiten (links, rechts)
vertical int Abstand für vertikale Seiten (oben, unten)
return Border
        public static Border All(int horizontal, int vertical)
        {
            return new Border()
            {
                Bottom = vertical,
                Left = horizontal,
                Right = horizontal,
                Top = vertical
            };
        }

Same methods

Border::All ( int value ) : Border
Border::All ( int left, int top, int right, int bottom ) : Border

Usage Example

Example #1
0
        public Textbox(IScreenManager manager, string style = "")
            : base(manager, style)
        {
            TextColor = Color.Black;
            TabStop   = true;
            CanFocus  = true;
            Padding   = Border.All(5);

            ApplySkin(typeof(Textbox));
        }
All Usage Examples Of MonoGameUi.Border::All