示例#1
0
        public XPlatLabelStyle(XPlatStyle style, XPlatFont font = null, XPlatTextAlignType?textAlign = null)
            : base(style)
        {
            this.Font = font;

            if (textAlign.HasValue)
            {
                this.TextAlign = textAlign.Value;
            }
        }
示例#2
0
 public XPlatLabelStyle(XPlatColor color = null, XPlatFont font = null, XPlatTextAlignType textAlign = XPlatTextAlignType.Default)
     : base(color)
 {
     this.Font      = font;
     this.TextAlign = textAlign;
 }
示例#3
0
 public XPlatLabelStyle(XPlatLabelStyle style, XPlatFont font = null, XPlatTextAlignType?textAlign = null)
     : this((XPlatStyle)style, font ?? style.Font, textAlign ?? style.TextAlign)
 {
 }