Example #1
0
 public Container SetPad(float top, float left, float bottom, float right)
 {
     _padTop    = new Value.Fixed(top);
     _padLeft   = new Value.Fixed(left);
     _padBottom = new Value.Fixed(bottom);
     _padRight  = new Value.Fixed(right);
     return(this);
 }
Example #2
0
        /// <summary>
        /// Sets the padTop, padLeft, padBottom, and padRight to the specified value
        /// </summary>
        /// <param name="pad">Pad.</param>
        public Container SetPad(float pad)
        {
            Value value = new Value.Fixed(pad);

            _padTop    = value;
            _padLeft   = value;
            _padBottom = value;
            _padRight  = value;
            return(this);
        }
Example #3
0
 public Container SetPadRight(float padRight)
 {
     _padRight = new Value.Fixed(padRight);
     return(this);
 }
Example #4
0
 public Container SetPadBottom(float padBottom)
 {
     _padBottom = new Value.Fixed(padBottom);
     return(this);
 }
Example #5
0
 public Container SetMaxHeight(float maxHeight)
 {
     _maxHeightValue = new Value.Fixed(maxHeight);
     return(this);
 }
Example #6
0
 public Container SetPrefHeight(float prefHeight)
 {
     _prefHeightValue = new Value.Fixed(prefHeight);
     return(this);
 }