public RectanlgeQuestions Create() { RectanlgeQuestions rectanlge = new RectanlgeQuestions { TextPlace = "Your question" }; return(rectanlge); }
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; } }