MonoGameUi.Border.All C# (CSharp) Method

All() public static method

Erstellt einen Border mit gleichem Abstand auf allen vier Seiten.
public static All ( int value ) : Border
value int Wert für alle vier Seiten.
return Border
        public static Border All(int value)
        {
            return new Border()
            {
                Bottom = value,
                Left = value,
                Right = value,
                Top = value
            };
        }

Same methods

Border::All ( int horizontal, int vertical ) : 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