Example #1
0
        public RectanlgeQuestions Create()
        {
            RectanlgeQuestions rectanlge = new RectanlgeQuestions
            {
                TextPlace = "Your question"
            };

            return(rectanlge);
        }
Example #2
0
 public void TextInsideRct(ref RectanlgeQuestions rectanlge, string text)
 {
     if (text.Length > 35)
     {
         rectanlge.TextPlace = text.Substring(0, 35) + "...";
     }
     else
     {
         rectanlge.HorizontalAlignment = HorizontalAlignment.Center;
         rectanlge.VerticalAlignment   = VerticalAlignment.Center;
         rectanlge.TextPlace           = text;
     }
 }