コード例 #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)
 {
 }