private void PersonalDetailsSection(RadFlowDocumentEditor editor, Section firstSection) { double tabStopPosition = Unit.InchToDip(6); #region Name & Photo Paragraph nameAndPhotoParagraph = firstSection.Blocks.AddParagraph(); nameAndPhotoParagraph.TabStops = nameAndPhotoParagraph.TabStops.Insert(new TabStop(tabStopPosition, TabStopType.Right)); nameAndPhotoParagraph.StyleId = Heading1StyleId; Run nameRun = nameAndPhotoParagraph.Inlines.AddRun(); this.SetupAndInsertSdt(editor, nameRun, "Enter your name", SdtType.RichText); nameAndPhotoParagraph.Inlines.AddRun("\t"); ImageInline imageInline = new ImageInline(firstSection.Document); imageInline.Image.Size = new Size(200, 200); imageInline.Image.ImageSource = new ImageSource(File.ReadAllBytes(ImagePath), ".png"); nameAndPhotoParagraph.Inlines.Add(imageInline); this.SetupAndInsertSdt(editor, imageInline, null, SdtType.Picture); #endregion #region Role Paragraph roleParagraph = firstSection.Blocks.AddParagraph(); Run roleRun = roleParagraph.Inlines.AddRun(); this.SetupAndInsertSdt(editor, roleRun, "Your desired role?", SdtType.RichText); #endregion #region Phone & Email Paragraph phoneAndEmailParagraph = firstSection.Blocks.AddParagraph(); phoneAndEmailParagraph.TabStops = phoneAndEmailParagraph.TabStops.Insert(new TabStop(tabStopPosition, TabStopType.Right)); Run phoneRun = phoneAndEmailParagraph.Inlines.AddRun(); this.SetupAndInsertSdt(editor, phoneRun, "Phone number", SdtType.RichText); phoneAndEmailParagraph.Inlines.AddRun("\t"); Run emailRun = phoneAndEmailParagraph.Inlines.AddRun(); this.SetupAndInsertSdt(editor, emailRun, "Email address", SdtType.RichText); #endregion #region Website & Location Paragraph websiteAndLocationParagraph = firstSection.Blocks.AddParagraph(); websiteAndLocationParagraph.TabStops = websiteAndLocationParagraph.TabStops.Insert(new TabStop(tabStopPosition, TabStopType.Right)); InlineCollection websiteAndLocationInlines = websiteAndLocationParagraph.Inlines; Run websiteRun = websiteAndLocationInlines.AddRun(); this.SetupAndInsertSdt(editor, websiteRun, "Website", SdtType.RichText); websiteAndLocationInlines.AddRun("\t"); Run locationRun = websiteAndLocationInlines.AddRun(); this.SetupAndInsertSdt(editor, locationRun, "Location", SdtType.RichText); #endregion }