Exemple #1
0
 private static TextBoxInfo parseRawTextBoxInfo(RawControlInfo rawInfo)
 {
     TextBoxInfo textBoxInfo = new TextBoxInfo();
     textBoxInfo.groupNum = Parser.parseGroupNum(rawInfo.infoStr);
     textBoxInfo.groupName = Parser.parseGroupName(rawInfo.infoStr);
     textBoxInfo.zindex = Parser.parseZIndex(rawInfo.imageTag);
     textBoxInfo.fadeIn = Parser.parseFadeIn(rawInfo.infoStr);
     textBoxInfo.fadeOut = Parser.parseFadeOut(rawInfo.infoStr);
     textBoxInfo.location = Parser.parseLocation(rawInfo.imageTag);
     textBoxInfo.size = getTextBoxSize(Parser.parsePath(rawInfo.imageTag));
     textBoxInfo.text = Parser.parseText(rawInfo.infoStr);
     return textBoxInfo;
 }
Exemple #2
0
 private static ResizableTextBox createResizableTextBox(TextBoxInfo textBoxInfo)
 {
     ResizableTextBox resizableTextBox = editor.CreateResizableTextBox();
     resizableTextBox.Location = textBoxInfo.location;
     resizableTextBox.Size = textBoxInfo.size;
     resizableTextBox.Text = textBoxInfo.text;
     if (!String.IsNullOrEmpty(resizableTextBox.Text))
         resizableTextBox.Name = resizableTextBox.Text;
     return resizableTextBox;
 }